microsoft / microsoft/vscode-java-dependency

Error: Cannot resolve tree item for element

Open
#832 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
199
Forks
105
Avg merge
1d 22h
Merged PRs (30d)
27

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the error in a VS Code Java/Gradle project while viewing or changing non-Java files. Inspect the vscjava.vscode-java-dependency extension path associated with the reported “Cannot resolve tree item” error; done means project resources remain visible and available without reloading Java and Gradle.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.