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
No declarations or definitions can be resolved #495
Comments
I get the same problem, but I'm on macos. My project compiles fine when I run |
@MagnusMG , would you like to share some logs? Would help a lot when debugging causes for the issues 🙂 My guess based upon this and my earlier experiences makes me think that the recently introduced caching solution (#337 ) have some bugs. Some projects have been behaving weirdly, and I've had to delete the symbol database to get it working again. This is usually found in the root of your project, called |
Absolutely. I put the log here. I'm afraid I cannot find the file |
Seems like VSCode saves the files in a special workspace directory, example on my Mac: |
I found the file I noticed that I don't have any problems in other, similar projects. So it is nothing particular with my VSCode setup, but just this project. I'll create a new project fresh from |
I created a new folder, ran |
I have VSCode setup on Windows remoting into WSL.
I have the fwcd extension installed, as well as Gradle for Java + others.
When I download a fresh gradle project from, say, spring initializr - I get some declaration/definition support immediately (I can go-to-definition of @SpringBootApplication for example) and the extension appears to work more-or-less like expected.
However on closing the project - it never works correctly again. Anytime I reopen the project, it either shows no errors, but I cannot go to any definition that is not local to the file I'm working on, or it cannot find any reference at all.
I do notice a big ol' stack trace in the Kotlin language server logs, but I'm unsure what the root cause of the compilation error is here.
I suspect that when I don't see the unresoved reference errors, but cannot go-to-definition as the definition is not found, this may be a different error and can open seperately.
Fresh startup logs from the Kotlin language server:
The text was updated successfully, but these errors were encountered: