question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document Class Not Located In Project's Source Path error when adding new folder to workspace

See original GitHub issue

I built a Python script to create a project folder and it’s dependencies (files/folders and config files).

Steps to reproduce:

  • Run the Python script in the terminal and create the project
  • After the project folder and its dependencies are created, the Python script then calls the VS Code terminal code Code --add {folder name} to add the folder to the current Workspace.
  • The folder is added to the Workspace successfully.
  • Compile the project with CTRL + ENTER as usual.
  • Error: “Document Class not located in project’s source path. Code intelligence will not be available for this file. (1, 1)”
  • Reload Window
  • Error goes away

https://youtu.be/CIBMzVwNlqc

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
joshtynjalacommented, Sep 7, 2018

Thanks! I determined that while I created a listener for when the workspace folders changed, I didn’t actually register it. It’s now fixed and will be included in the upcoming v0.14 update.

0reactions
joshtynjalacommented, Sep 7, 2018

@angelhdz Thank you for the very kind words!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code: Unable to add folder to untitled workspace (#89843)
Highlight Workspace; Click File > Add Folder to Workspace; File explorer opens; Enter folder name and click Add; Modal warning displays: Path ......
Read more >
Eclipse: The resource is not on the build path of a Java project
You can add the src folder to build path by: Select Java perspective. Right click on src folder. Select Build Path > Use...
Read more >
Eclipse guide
Make sure the workspace is not saved to a directory with a space in its name (Example: Documents and Settings). Create a new...
Read more >
210746 – Class folder in build path does not refresh properly
When we build this project, around half of these classes are packaged in a jar-file for client-side interface use. After the build process...
Read more >
Develop Azure Functions by using Visual Studio Code
Don't choose a project folder that is already part of a workspace. ... A new C# class library (.cs) file is added to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found