Document Class Not Located In Project's Source Path error when adding new folder to workspace
See original GitHub issueI 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
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@angelhdz Thank you for the very kind words!