Title: Go to definition does not works · Issue #68 · zed-extensions/java · GitHub
Open Graph Title: Go to definition does not works · Issue #68 · zed-extensions/java
X Title: Go to definition does not works · Issue #68 · zed-extensions/java
Description: Relevance Confirmation I confirmed that this is not an issue with the Eclipse JDT Language Server itself What happened? When I try to go to definition any standard library class, for example String, an error occurs: org.eclipse.lsp4j.jso...
Open Graph Description: Relevance Confirmation I confirmed that this is not an issue with the Eclipse JDT Language Server itself What happened? When I try to go to definition any standard library class, for example String...
X Description: Relevance Confirmation I confirmed that this is not an issue with the Eclipse JDT Language Server itself What happened? When I try to go to definition any standard library class, for example String...
Opengraph URL: https://github.com/zed-extensions/java/issues/68
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Go to definition does not works","articleBody":"### Relevance Confirmation\n\n- [x] I confirmed that this is not an issue with the Eclipse JDT Language Server itself\n\n### What happened?\n\nWhen I try to go to definition any standard library class, for example `String`, an error occurs:\n```\norg.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError\nSEVERE: Internal error: java.lang.NullPointerException: Cannot invoke \"org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotations()\" because \"field\" is null\n```\n\u003cdetails>\n\n\u003csummary>Stack trace\u003c/summary>\n\n```\nJul 13, 2025 2:20:10 PM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint fallbackResponseError\nSEVERE: Internal error: java.lang.NullPointerException: Cannot invoke \"org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotations()\" because \"field\" is null\njava.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke \"org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotations()\" because \"field\" is null\n\tat java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)\n\tat java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)\n\tat java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:649)\n\tat java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:483)\n\tat java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)\n\tat java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)\n\tat java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)\n\tat java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)\n\tat java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)\nCaused by: java.lang.NullPointerException: Cannot invoke \"org.eclipse.jdt.internal.compiler.lookup.FieldBinding.getAnnotations()\" because \"field\" is null\n\tat org.eclipse.jdt.internal.compiler.problem.ProblemReporter.previewAPIUsed(ProblemReporter.java:9559)\n\tat org.eclipse.jdt.internal.compiler.ast.ASTNode.reportPreviewAPI(ASTNode.java:462)\n\tat org.eclipse.jdt.internal.compiler.ast.ASTNode.isTypeUseDeprecated(ASTNode.java:599)\n\tat org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:536)\n\tat org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:621)\n\tat org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:617)\n\tat org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:589)\n\tat org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1621)\n\tat org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.java:1320)\n\tat org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1429)\n\tat org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:408)\n\tat org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment$CompleteTypeBindingsSteps.perform(LookupEnvironment.java:190)\n\tat org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:564)\n\tat org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatchesDefaultImpl(MatchLocator.java:1335)\n\tat org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1279)\n\tat org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1397)\n\tat org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:1541)\n\tat org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:143)\n\tat org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:276)\n\tat org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:620)\n\tat org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:677)\n\tat org.eclipse.jdt.ls.core.internal.handlers.ReferencesHandler.search(ReferencesHandler.java:184)\n\tat org.eclipse.jdt.ls.core.internal.handlers.ReferencesHandler.findReferences(ReferencesHandler.java:87)\n\tat org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$10(JDTLanguageServer.java:722)\n\tat org.eclipse.jdt.ls.core.internal.BaseJDTLanguageServer.lambda$0(BaseJDTLanguageServer.java:87)\n\tat java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)\n```\n\u003c/details>\n\n\u003cdetails>\n\n\u003csummary>settings\u003c/summary>\n\n```json\n{\n \"lsp\": {\n \"jdtls\": {\n \"initialization_options\": {\n \"bundles\": [],\n \"workspaceFolders\": [\n \"file:///home/example/java/HelloWorld\"\n ],\n \"settings\": {\n \"java\": {\n \"home\": \"/home/example/environment/java\",\n \"errors\": {\n \"incompleteClasspath\": {\n \"severity\": \"warning\"\n }\n },\n \"configuration\": {\n \"updateBuildConfiguration\": \"interactive\",\n \"maven\": {\n \"userSettings\": null\n }\n },\n \"trace\": {\n \"server\": \"verbose\"\n },\n \"import\": {\n \"gradle\": {\n \"enabled\": true\n },\n \"maven\": {\n \"enabled\": true\n },\n \"exclusions\": [\n \"**/node_modules/**\",\n \"**/.metadata/**\",\n \"**/archetype-resources/**\",\n \"**/META-INF/maven/**\",\n \"/**/test/**\"\n ]\n },\n \"jdt\": {\n \"ls\": {\n \"lombokSupport\": {\n \"enabled\": true\n }\n }\n },\n \"referencesCodeLens\": {\n \"enabled\": true\n },\n \"signatureHelp\": {\n \"enabled\": false\n },\n \"implementationsCodeLens\": {\n \"enabled\": false\n },\n \"format\": {\n \"enabled\": true\n },\n \"saveActions\": {\n \"organizeImports\": false\n },\n \"contentProvider\": {\n \"preferred\": null\n },\n \"autobuild\": {\n \"enabled\": false\n },\n \"completion\": {\n \"favoriteStaticMembers\": [\n \"org.junit.Assert.*\",\n \"org.junit.Assume.*\",\n \"org.junit.jupiter.api.Assertions.*\",\n \"org.junit.jupiter.api.Assumptions.*\",\n \"org.junit.jupiter.api.DynamicContainer.*\",\n \"org.junit.jupiter.api.DynamicTest.*\"\n ],\n \"importOrder\": [\n \"java\",\n \"javax\",\n \"com\",\n \"org\"\n ]\n }\n }\n }\n }\n }\n }\n}\n```\n\u003c/details>\n\nIs it only my local issue?\n\n### Environment\n\nZed: v0.194.3\nPlatform: Fedora 41\nJava: 21.0.7\n","author":{"url":"https://github.com/kozinaki","@type":"Person","name":"kozinaki"},"datePublished":"2025-07-13T11:46:07Z","url":"https://github.com/zed-extensions/java/issues/68"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:051efdd6-3d49-2473-b2a9-b46d3e0ddba7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E97C:10531B:2228086:2BB655F:6B01C132 |
| html-safe-nonce | 888990614e5da9e8351a7d9fdaca59767ad3855759100c85d271861d512f8614 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTdDOjEwNTMxQjoyMjI4MDg2OjJCQjY1NUY6NkIwMUMxMzIiLCJ2aXNpdG9yX2lkIjoiNzU1MTg2MDkxODQxMDM5NTk1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 93caf22448f41618bb75a04cb106d5e82f6f0660ed9493f7367e9820f9a1a70e |
| hovercard-subject-tag | issue:3226438019 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/zed-extensions/java/68/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a59f5328ba0213d638c860a12c7a034543124d465fc0efdb71be8158f73c3fdd/zed-extensions/java/issues/68 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a59f5328ba0213d638c860a12c7a034543124d465fc0efdb71be8158f73c3fdd/zed-extensions/java/issues/68 |
| og:image:alt | Relevance Confirmation I confirmed that this is not an issue with the Eclipse JDT Language Server itself What happened? When I try to go to definition any standard library class, for example String... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kozinaki |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/zed-extensions/java git https://github.com/zed-extensions/java.git |
| octolytics-dimension-user_id | 159500922 |
| octolytics-dimension-user_login | zed-extensions |
| octolytics-dimension-repository_id | 759434789 |
| octolytics-dimension-repository_nwo | zed-extensions/java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 759434789 |
| octolytics-dimension-repository_network_root_nwo | zed-extensions/java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width