microsoft / microsoft/vscode-java-dependency

An internal error occurred during: "Update classpath Job"

Open
#571 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When clicking the refresh button on "Referenced Libraries", the output console gives this error.

[Error - 11:05:36 p.m.] Dec. 9, 2021, 11:05:36 p.m. An internal error occurred during: "Update classpath Job".
null
java.lang.NullPointerException
	at org.eclipse.jdt.ls.core.internal.ProjectUtils.resolveGlobPath(ProjectUtils.java:481)
	at org.eclipse.jdt.ls.core.internal.ProjectUtils.groupGlobsByPrefix(ProjectUtils.java:492)
	at org.eclipse.jdt.ls.core.internal.ProjectUtils.collectBinaries(ProjectUtils.java:424)
	at org.eclipse.jdt.ls.core.internal.managers.UpdateClasspathJob.doUpdateClasspath(UpdateClasspathJob.java:96)
	at org.eclipse.jdt.ls.core.internal.managers.UpdateClasspathJob.runInWorkspace(UpdateClasspathJob.java:82)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

image

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

Reproduce the error by refreshing Referenced Libraries, then inspect ProjectUtils.java at resolveGlobPath, groupGlobsByPrefix, and collectBinaries, followed by UpdateClasspathJob.java. Trace the null value shown in the stack trace and verify that refreshing the classpath no longer raises the reported NullPointerException.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.