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

Error: Cannot resolve tree item for element #832

Open
andersmmg opened this issue Apr 29, 2024 · 2 comments
Open

Error: Cannot resolve tree item for element #832

andersmmg opened this issue Apr 29, 2024 · 2 comments

Comments

@andersmmg
Copy link

I get this error often when I change or sometimes even view non-java files in my project. It makes all those resources disappear from the project and they will be unavailable when running it. I have to reload java and gradle and it usually fixes it but takes a while and it happens pretty often lately.

2024-04-28 18:26:15.812 [error] Error: Cannot resolve tree item for element 0/0:[redacted]/0:src//main/resources/0:assets/0:[redacted]/0:blockstates from extension vscjava.vscode-java-dependency
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:154:43373
@jdneo
Copy link
Member

jdneo commented May 8, 2024

Hi @andersmmg, would you mind providing reproduce steps for this issue?

It makes all those resources disappear

Do you mean the tree items in the Java Project explorer disappear?

@andersmmg
Copy link
Author

I mean some of the items in the project explorer disappear, and aren't included when I debug the code either. I have to manually try to get gradle and VSCode's to refresh the project to get them to appear again, but they go away after editing them externally or sometimes it just seems random. For now I've just switched to using IntelliJ IDEA and it works perfectly fine on the same project, which is why I figure it's an issue on VSCode's side.

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

No branches or pull requests

2 participants