Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.project.sourcePaths doesn't refresh diagnostics #1769

Closed
snjeza opened this issue May 15, 2021 · 0 comments · Fixed by #1771
Closed

java.project.sourcePaths doesn't refresh diagnostics #1769

snjeza opened this issue May 15, 2021 · 0 comments · Fixed by #1771
Assignees
Milestone

Comments

@snjeza
Copy link
Contributor

snjeza commented May 15, 2021

Steps to reproduce:

{
    "java.project.sourcePaths": [
        "src1"
    ]
}
  • start VS Code
  • open Foo.java
    you will get the following error:
    Foo.java is not on the classpath of project wrong-packagename_XXX, only syntax errors are reported
    It is expected.
  • edit Foo.java; don't save
  • open .vscode/settings.json
  • change src1 to src
    The error should disappear.

Related issue: #1764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants