Sage-Bionetworks / sage-monorepo

Where OpenChallenges, Schematic, and other Sage open source apps are built
https://sage-bionetworks.github.io/sage-monorepo/
Apache License 2.0
22 stars 12 forks source link

VS Code IntelliSense no longer work with Java projects #693

Closed tschaffter closed 2 years ago

tschaffter commented 2 years ago

image

tschaffter commented 2 years ago

The language service for Java has started, though one error is listed:

image

EDIT: According to this post, this error message is expected and should not affect the extension.

tschaffter commented 2 years ago

Java IntelliSense is provided by Extension Pack for Java

Popular extensions for Java development that provides Java IntelliSense, debugging, testing, Maven/Gradle support, project management and more

tschaffter commented 2 years ago

The extension logs shows that there is an issue with the Redhat extension as observed previously.

[2022-09-12 02:10:15.200] [exthost] [info] Extension host with pid 9353 started
[2022-09-12 02:10:15.204] [exthost] [error] Error: EEXIST: file already exists, open '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock'
[2022-09-12 02:10:15.214] [exthost] [info] Lock '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock': Could not acquire lock, checking if the file is stale.
[2022-09-12 02:10:15.217] [exthost] [info] Lock '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock': The lockfile is scheduled to be released in 1385 ms.
[2022-09-12 02:10:15.269] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing, startup: false, activationEvent: 'onLanguage:jsonc'
[2022-09-12 02:10:15.274] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
[2022-09-12 02:10:15.326] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc'
[2022-09-12 02:10:15.358] [exthost] [info] ExtensionService#_doActivateExtension webhint.vscode-webhint, startup: false, activationEvent: 'onLanguage:jsonc'
[2022-09-12 02:10:15.378] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '*'
[2022-09-12 02:10:15.381] [exthost] [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
[2022-09-12 02:10:15.385] [exthost] [info] ExtensionService#_doActivateExtension vscode.ipynb, startup: true, activationEvent: '*'
[2022-09-12 02:10:15.396] [exthost] [info] ExtensionService#_doActivateExtension firsttris.vscode-jest-runner, startup: true, activationEvent: '*'
[2022-09-12 02:10:15.445] [exthost] [info] ExtensionService#_doActivateExtension mhutchie.git-graph, startup: true, activationEvent: '*'
[2022-09-12 02:10:15.459] [exthost] [info] ExtensionService#_doActivateExtension mtxr.sqltools, startup: true, activationEvent: '*'
[2022-09-12 02:10:15.522] [exthost] [info] ExtensionService#_doActivateExtension vscode.npm, startup: true, activationEvent: 'workspaceContains:package.json'
[2022-09-12 02:10:15.547] [exthost] [info] ExtensionService#_doActivateExtension redhat.java, startup: true, activationEvent: 'workspaceContains:build.gradle'
[2022-09-12 02:10:15.650] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-gradle, startup: true, activationEvent: 'workspaceContains:build.gradle'
[2022-09-12 02:10:15.750] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-dependency, startup: true, activationEvent: 'workspaceContains:build.gradle'
[2022-09-12 02:10:15.815] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-pack, startup: true, activationEvent: 'workspaceContains:build.gradle'
[2022-09-12 02:10:15.878] [exthost] [info] ExtensionService#_doActivateExtension GabrielBB.vscode-lombok, startup: true, activationEvent: 'workspaceContains:build.gradle'
[2022-09-12 02:10:15.989] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-maven, startup: true, activationEvent: 'workspaceContains:**/pom.xml'
[2022-09-12 02:10:16.108] [exthost] [info] ExtensionService#_doActivateExtension GitHub.vscode-pull-request-github, startup: true, activationEvent: '*'
[2022-09-12 02:10:16.190] [exthost] [error] Error: ENOENT: no such file or directory, stat '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock'
[2022-09-12 02:10:16.190] [exthost] [info] Lock '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock': Deleting a stale lock.
[2022-09-12 02:10:16.205] [exthost] [info] Lock '/home/vscode/.vscode-server/data/User/workspaceStorage/5767d82dbf02e38a28c0cab3fa0099c8/vscode.lock': Lock acquired.
[2022-09-12 02:10:16.315] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
[2022-09-12 02:10:16.370] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
[2022-09-12 02:10:16.376] [exthost] [info] ExtensionService#_doActivateExtension mtxr.sqltools-driver-mysql, startup: true, activationEvent: '*'
[2022-09-12 02:10:16.377] [exthost] [info] ExtensionService#_doActivateExtension mtxr.sqltools-driver-pg, startup: true, activationEvent: '*'
[2022-09-12 02:10:16.413] [exthost] [warning] [vscjava.vscode-gradle] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
[2022-09-12 02:10:16.902] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:10:17.042] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-debug, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:10:17.483] [exthost] [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
[2022-09-12 02:10:17.518] [exthost] [warning] [redhat.java] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '[java]', provide the URI of a resource or 'null' for any resource.
[2022-09-12 02:10:20.629] [exthost] [info] ExtensionService#_doActivateExtension shengchen.vscode-checkstyle, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:10:20.707] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:20.732] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:20.737] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:20.778] [exthost] [info] ExtensionService#_doActivateExtension esbenp.prettier-vscode, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:20.973] [exthost] [info] ExtensionService#_doActivateExtension nrwl.angular-console, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:21.528] [exthost] [info] ExtensionService#_doActivateExtension ritwickdey.LiveServer, startup: false, activationEvent: 'onStartupFinished'
[2022-09-12 02:10:21.537] [exthost] [info] Eager extensions activated
[2022-09-12 02:10:21.888] [exthost] [error] [redhat.java] provider FAILED
[2022-09-12 02:10:21.890] [exthost] [error] Error: The request (id: 1, method: 'textDocument/documentSymbol') has been cancelled
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21)
[2022-09-12 02:10:21.891] [exthost] [error] [redhat.java] provider FAILED
[2022-09-12 02:10:21.891] [exthost] [error] Error: The request (id: 3, method: 'textDocument/hover') has been cancelled
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21)
[2022-09-12 02:10:42.911] [exthost] [info] ExtensionService#_doActivateExtension vscode.references-view, startup: false, activationEvent: 'onCommand:references-view.findReferences'
[2022-09-12 02:15:35.446] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:markdown'
[2022-09-12 02:15:35.462] [exthost] [info] ExtensionService#_doActivateExtension vscode.markdown-language-features, startup: false, activationEvent: 'onLanguage:markdown'
[2022-09-12 02:15:35.609] [exthost] [info] ExtensionService#_doActivateExtension humao.rest-client, startup: false, activationEvent: 'onLanguage:markdown'
[2022-09-12 02:15:36.008] [exthost] [info] ExtensionService#_doActivateExtension vscode.markdown-math, startup: false, activationEvent: 'api', root cause: vscode.markdown-language-features

See also:

tschaffter commented 2 years ago

Slightly different error when disabling and enabling java extensions:

[2022-09-12 02:47:57.498] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-test, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:47:58.661] [exthost] [error] [redhat.java] provider FAILED
[2022-09-12 02:47:58.662] [exthost] [error] Error: Connection got disposed.
    at Object.dispose (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1040826)
    at Object.dispose (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:887823)
    at b.handleConnectionClosed (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:888011)
    at b.handleConnectionClosed (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:961642)
    at t (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:886125)
    at invoke (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1042452)
    at s.fire (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1043213)
    at Q (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1029965)
    at invoke (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1042452)
    at s.fire (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1043213)
    at p.fireClose (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1051104)
    at Socket.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1052689)
    at Socket.emit (node:events:538:35)
    at Socket.emit (node:domain:475:12)
    at Pipe.<anonymous> (node:net:687:12)
tschaffter commented 2 years ago

Another batch of errors:

[2022-09-12 02:58:18.054] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-dependency, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:58:18.121] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-debug, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:58:18.168] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:58:18.260] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-pack, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:58:18.414] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-maven, startup: false, activationEvent: 'workspaceContains:**/pom.xml'
[2022-09-12 02:58:42.527] [exthost] [info] ExtensionService#_doActivateExtension vscjava.vscode-java-test, startup: false, activationEvent: 'onLanguage:java'
[2022-09-12 02:58:43.232] [exthost] [error] Error: No delegateCommandHandler for java.maven.initializeSearcher
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.601] [exthost] [error] Error: No delegateCommandHandler for java.maven.initializeSearcher
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.802] [exthost] [error] Error: No delegateCommandHandler for java.intellicode.enable
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.803] [exthost] [error] Error: No delegateCommandHandler for vscode.java.test.get.testpath
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.804] [exthost] [error] Error: No delegateCommandHandler for vscode.java.test.get.testpath
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.838] [exthost] [error] Error: No delegateCommandHandler for java.maven.initializeSearcher
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:43.839] [exthost] [error] Error: No delegateCommandHandler for java.maven.initializeSearcher
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
[2022-09-12 02:58:44.061] [exthost] [error] Error: No delegateCommandHandler for vscode.java.resolveMainMethod
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034658
    at /home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1034952
    at Immediate.<anonymous> (/home/vscode/.vscode-server/extensions/redhat.java-1.10.0-linux-x64/dist/extension.js:2:1035317)
    at processImmediate (node:internal/timers:466:21) java.execute.workspaceCommand {"value":"redhat.java","_lower":"redhat.java"}
tschaffter commented 2 years ago

TODO

A similar error "[ ] provider FAILED" happened to someone after VS Code auto updated. A clean install of a previous version of VS Code may help. I already tried previous versions of VS Code on Windows but didn't clean anything before the install. I should try on macOS using the instructions provided in the link.

See also:

tschaffter commented 2 years ago

When using "java.trace.server": "verbose", is VS Code settings.json

Logs generated by `Language Support for Java (Syntax Server)` ```console [Trace - 6:41:55 PM] Sending request 'initialize - (0)'. Params: { "processId": 15081, "clientInfo": { "name": "Visual Studio Code", "version": "1.71.0" }, "locale": "en", "rootPath": "/workspaces/challenge-registry", "rootUri": "file:///workspaces/challenge-registry", "capabilities": { "workspace": { "applyEdit": true, "workspaceEdit": { "documentChanges": true, "resourceOperations": [ "create", "rename", "delete" ], "failureHandling": "textOnlyTransactional", "normalizesLineEndings": true, "changeAnnotationSupport": { "groupsOnLabel": true } }, "didChangeConfiguration": { "dynamicRegistration": true }, "didChangeWatchedFiles": { "dynamicRegistration": true }, "symbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "tagSupport": { "valueSet": [ 1 ] } }, "codeLens": { "refreshSupport": true }, "executeCommand": { "dynamicRegistration": true }, "configuration": true, "workspaceFolders": true, "semanticTokens": { "refreshSupport": true }, "fileOperations": { "dynamicRegistration": true, "didCreate": true, "didRename": true, "didDelete": true, "willCreate": true, "willRename": true, "willDelete": true } }, "textDocument": { "publishDiagnostics": { "relatedInformation": true, "versionSupport": false, "tagSupport": { "valueSet": [ 1, 2 ] }, "codeDescriptionSupport": true, "dataSupport": true }, "synchronization": { "dynamicRegistration": true, "willSave": true, "willSaveWaitUntil": true, "didSave": true }, "completion": { "dynamicRegistration": true, "contextSupport": true, "completionItem": { "snippetSupport": true, "commitCharactersSupport": true, "documentationFormat": [ "markdown", "plaintext" ], "deprecatedSupport": true, "preselectSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "insertReplaceSupport": true, "resolveSupport": { "properties": [ "documentation", "detail", "additionalTextEdits" ] }, "insertTextModeSupport": { "valueSet": [ 1, 2 ] }, "labelDetailsSupport": true }, "insertTextMode": 2, "completionItemKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 ] } }, "hover": { "dynamicRegistration": true, "contentFormat": [ "markdown", "plaintext" ] }, "signatureHelp": { "dynamicRegistration": true, "signatureInformation": { "documentationFormat": [ "markdown", "plaintext" ], "parameterInformation": { "labelOffsetSupport": true }, "activeParameterSupport": true }, "contextSupport": true }, "definition": { "dynamicRegistration": true, "linkSupport": true }, "references": { "dynamicRegistration": true }, "documentHighlight": { "dynamicRegistration": true }, "documentSymbol": { "dynamicRegistration": true, "symbolKind": { "valueSet": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 ] }, "hierarchicalDocumentSymbolSupport": true, "tagSupport": { "valueSet": [ 1 ] }, "labelSupport": true }, "codeAction": { "dynamicRegistration": true, "isPreferredSupport": true, "disabledSupport": true, "dataSupport": true, "resolveSupport": { "properties": [ "edit" ] }, "codeActionLiteralSupport": { "codeActionKind": { "valueSet": [ "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ] } }, "honorsChangeAnnotations": false }, "codeLens": { "dynamicRegistration": true }, "formatting": { "dynamicRegistration": true }, "rangeFormatting": { "dynamicRegistration": true }, "onTypeFormatting": { "dynamicRegistration": true }, "rename": { "dynamicRegistration": true, "prepareSupport": true, "prepareSupportDefaultBehavior": 1, "honorsChangeAnnotations": true }, "documentLink": { "dynamicRegistration": true, "tooltipSupport": true }, "typeDefinition": { "dynamicRegistration": true, "linkSupport": true }, "implementation": { "dynamicRegistration": true, "linkSupport": true }, "colorProvider": { "dynamicRegistration": true }, "foldingRange": { "dynamicRegistration": true, "rangeLimit": 5000, "lineFoldingOnly": true }, "declaration": { "dynamicRegistration": true, "linkSupport": true }, "selectionRange": { "dynamicRegistration": true }, "callHierarchy": { "dynamicRegistration": true }, "semanticTokens": { "dynamicRegistration": true, "tokenTypes": [ "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator" ], "tokenModifiers": [ "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" ], "formats": [ "relative" ], "requests": { "range": true, "full": { "delta": true } }, "multilineTokenSupport": false, "overlappingTokenSupport": false }, "linkedEditingRange": { "dynamicRegistration": true } }, "window": { "showMessage": { "messageActionItem": { "additionalPropertiesSupport": true } }, "showDocument": { "support": true }, "workDoneProgress": true }, "general": { "staleRequestSupport": { "cancel": true, "retryOnContentModified": [ "textDocument/semanticTokens/full", "textDocument/semanticTokens/range", "textDocument/semanticTokens/full/delta" ] }, "regularExpressions": { "engine": "ECMAScript", "version": "ES2020" }, "markdown": { "parser": "marked", "version": "1.1.0" } } }, "initializationOptions": { "bundles": [ "/home/vscode/.vscode-server/extensions/pivotal.vscode-spring-boot-1.38.0/jars/io.projectreactor.reactor-core.jar", "/home/vscode/.vscode-server/extensions/pivotal.vscode-spring-boot-1.38.0/jars/org.reactivestreams.reactive-streams.jar", "/home/vscode/.vscode-server/extensions/pivotal.vscode-spring-boot-1.38.0/jars/jdt-ls-commons.jar", "/home/vscode/.vscode-server/extensions/pivotal.vscode-spring-boot-1.38.0/jars/jdt-ls-extension.jar", "/home/vscode/.vscode-server/extensions/shengchen.vscode-checkstyle-1.4.1/server/com.shengchen.checkstyle.runner.jar", "/home/vscode/.vscode-server/extensions/visualstudioexptteam.vscodeintellicode-1.2.25/dist/com.microsoft.jdtls.intellicode.core-0.5.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-debug-0.44.0/server/com.microsoft.java.debug.plugin-0.40.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-dependency-0.21.0/server/com.microsoft.jdtls.ext.core-0.21.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-jupiter-api_5.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-jupiter-engine_5.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-jupiter-migrationsupport_5.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-jupiter-params_5.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-commons_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-engine_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-launcher_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-runner_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-suite-api_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-suite-commons_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-platform-suite-engine_1.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/junit-vintage-engine_5.9.0.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/org.apiguardian.api_1.1.2.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/org.eclipse.jdt.junit4.runtime_1.3.0.v20220609-1843.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/org.eclipse.jdt.junit5.runtime_1.1.0.v20220715-1030.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/org.opentest4j_1.2.0.v20190826-0900.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-java-test-0.37.1/server/com.microsoft.java.test.plugin-0.37.1.jar", "/home/vscode/.vscode-server/extensions/vscjava.vscode-maven-0.38.0/jdtls.ext/com.microsoft.java.maven.plugin/target/com.microsoft.java.maven.plugin-0.37.0.jar" ], "workspaceFolders": [ "file:///workspaces/challenge-registry" ], "settings": { "java": { "home": "/usr/lib/jvm/java-17-openjdk-amd64", "jdt": { "ls": { "java": { "home": "/usr/lib/jvm/java-17-openjdk-amd64" }, "vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:jni+resolve=off -javaagent:\"/home/vscode/.vscode-server/extensions/vscjava.vscode-lombok-1.0.1/server/lombok.jar\"", "lombokSupport": { "enabled": false }, "protobufSupport": { "enabled": true }, "androidSupport": { "enabled": false } } }, "errors": { "incompleteClasspath": { "severity": "warning" } }, "configuration": { "checkProjectSettingsExclusions": false, "updateBuildConfiguration": "disabled", "maven": { "userSettings": null, "globalSettings": null, "notCoveredPluginExecutionSeverity": "warning" }, "workspaceCacheLimit": 90, "runtimes": [] }, "trace": { "server": "verbose" }, "import": { "maven": { "enabled": true, "offline": { "enabled": false } }, "gradle": { "enabled": true, "wrapper": { "enabled": true }, "version": null, "home": null, "java": { "home": null }, "offline": { "enabled": false }, "arguments": null, "jvmArguments": null, "user": { "home": null } }, "exclusions": [ "**/node_modules/**", "**/.metadata/**", "**/archetype-resources/**", "**/META-INF/maven/**" ], "generatesMetadataFilesAtProjectRoot": false }, "maven": { "downloadSources": false, "updateSnapshots": false }, "eclipse": { "downloadSources": false }, "referencesCodeLens": { "enabled": false }, "signatureHelp": { "enabled": false, "description": { "enabled": false } }, "implementationsCodeLens": { "enabled": false }, "format": { "enabled": true, "settings": { "url": "eclipse-java-google-style.xml", "profile": null }, "comments": { "enabled": true }, "onType": { "enabled": true }, "insertSpaces": true, "tabSize": 2 }, "saveActions": { "organizeImports": false }, "project": { "referencedLibraries": [ "lib/**/*.jar" ], "importOnFirstTimeStartup": "automatic", "importHint": true, "resourceFilters": [ "node_modules", ".git" ], "encoding": "ignore", "exportJar": { "targetPath": "${workspaceFolder}/${workspaceFolderBasename}.jar" } }, "contentProvider": { "preferred": null }, "autobuild": { "enabled": true }, "maxConcurrentBuilds": 1, "recommendations": { "dependency": { "analytics": { "show": true } } }, "completion": { "maxResults": 0, "enabled": true, "guessMethodArguments": false, "favoriteStaticMembers": [ "org.junit.Assert.*", "org.junit.Assume.*", "org.junit.jupiter.api.Assertions.*", "org.junit.jupiter.api.Assumptions.*", "org.junit.jupiter.api.DynamicContainer.*", "org.junit.jupiter.api.DynamicTest.*", "org.mockito.Mockito.*", "org.mockito.ArgumentMatchers.*", "org.mockito.Answers.*" ], "filteredTypes": [ "java.awt.*", "com.sun.*", "sun.*", "jdk.*", "org.graalvm.*", "io.micrometer.shaded.*" ], "importOrder": [ "java", "javax", "org", "com" ] }, "foldingRange": { "enabled": true }, "progressReports": { "enabled": true }, "codeGeneration": { "hashCodeEquals": { "useJava7Objects": false, "useInstanceof": false }, "useBlocks": false, "generateComments": false, "toString": { "template": "${object.className} [${member.name()}=${member.value}, ${otherMembers}]", "codeStyle": "STRING_CONCATENATION", "skipNullValues": false, "listArrayContents": true, "limitElements": 0 }, "insertionLocation": "afterCursor" }, "selectionRange": { "enabled": true }, "showBuildStatusOnStart": { "enabled": "notification" }, "server": { "launchMode": "Hybrid" }, "sources": { "organizeImports": { "starThreshold": 99, "staticStarThreshold": 99 } }, "imports": { "gradle": { "wrapper": { "checksums": [] } } }, "templates": { "fileHeader": [], "typeComment": [] }, "references": { "includeAccessors": true, "includeDecompiledSources": true }, "typeHierarchy": { "lazyLoad": false }, "settings": { "url": null }, "symbols": { "includeSourceMethodDeclarations": false }, "quickfix": { "showAt": "line" }, "inlayHints": { "parameterNames": { "enabled": "literals", "exclusions": [] } }, "codeAction": { "sortMembers": { "avoidVolatileChanges": true } }, "checkstyle": { "configuration": "checkstyle.xml", "properties": {}, "version": "10.3", "modules": [], "autocheck": true }, "debug": { "logLevel": "warn", "settings": { "showHex": false, "showStaticVariables": false, "showQualifiedNames": false, "showLogicalStructure": true, "showToString": true, "maxStringLength": 0, "numericPrecision": 0, "hotCodeReplace": "manual", "enableRunDebugCodeLens": true, "forceBuildBeforeLaunch": true, "onBuildFailureProceed": false, "console": "integratedTerminal", "exceptionBreakpoint": { "skipClasses": [] }, "stepping": { "skipClasses": [], "skipSynthetics": false, "skipStaticInitializers": false, "skipConstructors": false }, "jdwp": { "limitOfVariablesPerJdwpRequest": 100, "requestTimeout": 3000, "async": "auto" }, "vmArgs": "" } }, "silentNotification": false, "dependency": { "showMembers": false, "syncWithFolderExplorer": true, "autoRefresh": true, "refreshDelay": 2000, "packagePresentation": "flat" }, "help": { "firstView": "auto", "showReleaseNotes": true, "collectErrorLog": false }, "test": { "defaultConfig": "", "config": {} } } }, "extendedClientCapabilities": { "progressReportProvider": true, "classFileContentsSupport": true, "overrideMethodsPromptSupport": true, "hashCodeEqualsPromptSupport": true, "advancedOrganizeImportsSupport": true, "generateToStringPromptSupport": true, "advancedGenerateAccessorsSupport": true, "generateConstructorsPromptSupport": true, "generateDelegateMethodsPromptSupport": true, "advancedExtractRefactoringSupport": true, "inferSelectionSupport": [ "extractMethod", "extractVariable", "extractField" ], "moveRefactoringSupport": true, "clientHoverProvider": true, "clientDocumentSymbolProvider": true, "gradleChecksumWrapperPromptSupport": true, "resolveAdditionalTextEditsSupport": true, "advancedIntroduceParameterRefactoringSupport": true, "actionableRuntimeNotificationSupport": true, "shouldLanguageServerExitOnShutdown": true, "onCompletionItemSelectedCommand": "editor.action.triggerParameterHints" }, "triggerFiles": [ "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" ] }, "trace": "verbose", "workspaceFolders": [ { "uri": "file:///workspaces/challenge-registry", "name": "challenge-registry" } ] } WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign [Trace - 6:42:01 PM] Received response 'initialize - (0)' in 6141ms. Result: { "capabilities": { "textDocumentSync": { "openClose": true, "change": 2, "save": { "includeText": true } }, "workspace": { "workspaceFolders": { "supported": true, "changeNotifications": true } }, "semanticTokensProvider": { "legend": { "tokenTypes": [ "namespace", "class", "interface", "enum", "enumMember", "type", "typeParameter", "method", "property", "variable", "parameter", "modifier", "keyword", "annotation", "annotationMember", "record", "recordComponent" ], "tokenModifiers": [ "abstract", "static", "readonly", "deprecated", "declaration", "documentation", "public", "private", "protected", "native", "generic", "typeArgument", "importDeclaration", "constructor" ] }, "range": false, "full": { "delta": false }, "documentSelector": [ { "language": "java", "scheme": "file" }, { "language": "java", "scheme": "jdt" } ] } } } [Trace - 6:42:01 PM] Sending notification 'initialized'. Params: {} [Trace - 6:42:01 PM] Sending notification 'workspace/didChangeConfiguration'. Params: { "settings": { "java": { "home": "/usr/lib/jvm/java-17-openjdk-amd64", "jdt": { "ls": { "java": { "home": "/usr/lib/jvm/java-17-openjdk-amd64" }, "vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:jni+resolve=off -javaagent:\"/home/vscode/.vscode-server/extensions/vscjava.vscode-lombok-1.0.1/server/lombok.jar\"", "lombokSupport": { "enabled": false }, "protobufSupport": { "enabled": true }, "androidSupport": { "enabled": false } } }, "errors": { "incompleteClasspath": { "severity": "warning" } }, "configuration": { "checkProjectSettingsExclusions": false, "updateBuildConfiguration": "disabled", "maven": { "userSettings": null, "globalSettings": null, "notCoveredPluginExecutionSeverity": "warning" }, "workspaceCacheLimit": 90, "runtimes": [] }, "trace": { "server": "verbose" }, "import": { "maven": { "enabled": true, "offline": { "enabled": false } }, "gradle": { "enabled": true, "wrapper": { "enabled": true }, "version": null, "home": null, "java": { "home": null }, "offline": { "enabled": false }, "arguments": null, "jvmArguments": null, "user": { "home": null } }, "exclusions": [ "**/node_modules/**", "**/.metadata/**", "**/archetype-resources/**", "**/META-INF/maven/**" ], "generatesMetadataFilesAtProjectRoot": false }, "maven": { "downloadSources": false, "updateSnapshots": false }, "eclipse": { "downloadSources": false }, "referencesCodeLens": { "enabled": false }, "signatureHelp": { "enabled": false, "description": { "enabled": false } }, "implementationsCodeLens": { "enabled": false }, "format": { "enabled": true, "settings": { "url": "eclipse-java-google-style.xml", "profile": null }, "comments": { "enabled": true }, "onType": { "enabled": true }, "insertSpaces": true, "tabSize": 2 }, "saveActions": { "organizeImports": false }, "project": { "referencedLibraries": [ "lib/**/*.jar" ], "importOnFirstTimeStartup": "automatic", "importHint": true, "resourceFilters": [ "node_modules", ".git" ], "encoding": "ignore", "exportJar": { "targetPath": "${workspaceFolder}/${workspaceFolderBasename}.jar" } }, "contentProvider": { "preferred": null }, "autobuild": { "enabled": true }, "maxConcurrentBuilds": 1, "recommendations": { "dependency": { "analytics": { "show": true } } }, "completion": { "maxResults": 0, "enabled": true, "guessMethodArguments": false, "favoriteStaticMembers": [ "org.junit.Assert.*", "org.junit.Assume.*", "org.junit.jupiter.api.Assertions.*", "org.junit.jupiter.api.Assumptions.*", "org.junit.jupiter.api.DynamicContainer.*", "org.junit.jupiter.api.DynamicTest.*", "org.mockito.Mockito.*", "org.mockito.ArgumentMatchers.*", "org.mockito.Answers.*" ], "filteredTypes": [ "java.awt.*", "com.sun.*", "sun.*", "jdk.*", "org.graalvm.*", "io.micrometer.shaded.*" ], "importOrder": [ "java", "javax", "org", "com" ] }, "foldingRange": { "enabled": true }, "progressReports": { "enabled": true }, "codeGeneration": { "hashCodeEquals": { "useJava7Objects": false, "useInstanceof": false }, "useBlocks": false, "generateComments": false, "toString": { "template": "${object.className} [${member.name()}=${member.value}, ${otherMembers}]", "codeStyle": "STRING_CONCATENATION", "skipNullValues": false, "listArrayContents": true, "limitElements": 0 }, "insertionLocation": "afterCursor" }, "selectionRange": { "enabled": true }, "showBuildStatusOnStart": { "enabled": "notification" }, "server": { "launchMode": "Hybrid" }, "sources": { "organizeImports": { "starThreshold": 99, "staticStarThreshold": 99 } }, "imports": { "gradle": { "wrapper": { "checksums": [] } } }, "templates": { "fileHeader": [], "typeComment": [] }, "references": { "includeAccessors": true, "includeDecompiledSources": true }, "typeHierarchy": { "lazyLoad": false }, "settings": { "url": null }, "symbols": { "includeSourceMethodDeclarations": false }, "quickfix": { "showAt": "line" }, "inlayHints": { "parameterNames": { "enabled": "literals", "exclusions": [] } }, "codeAction": { "sortMembers": { "avoidVolatileChanges": true } }, "checkstyle": { "configuration": "checkstyle.xml", "properties": {}, "version": "10.3", "modules": [], "autocheck": true }, "debug": { "logLevel": "warn", "settings": { "showHex": false, "showStaticVariables": false, "showQualifiedNames": false, "showLogicalStructure": true, "showToString": true, "maxStringLength": 0, "numericPrecision": 0, "hotCodeReplace": "manual", "enableRunDebugCodeLens": true, "forceBuildBeforeLaunch": true, "onBuildFailureProceed": false, "console": "integratedTerminal", "exceptionBreakpoint": { "skipClasses": [] }, "stepping": { "skipClasses": [], "skipSynthetics": false, "skipStaticInitializers": false, "skipConstructors": false }, "jdwp": { "limitOfVariablesPerJdwpRequest": 100, "requestTimeout": 3000, "async": "auto" }, "vmArgs": "" } }, "silentNotification": false, "dependency": { "showMembers": false, "syncWithFolderExplorer": true, "autoRefresh": true, "refreshDelay": 2000, "packagePresentation": "flat" }, "help": { "firstView": "auto", "showReleaseNotes": true, "collectErrorLog": false }, "test": { "defaultConfig": "", "config": {} } } } } [Trace - 6:42:01 PM] Sending notification 'textDocument/didOpen'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java", "languageId": "java", "version": 1, "text": "package org.sagebionetworks.challenge;\n\nimport org.springdoc.core.GroupedOpenApi;\nimport org.springframework.beans.factory.annotation.Value;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.boot.web.client.RestTemplateBuilder;\nimport org.springframework.cloud.netflix.eureka.EnableEurekaClient;\nimport org.springframework.cloud.openfeign.EnableFeignClients;\nimport org.springframework.context.annotation.Bean;\nimport org.springframework.web.client.RestTemplate;\nimport io.swagger.v3.oas.models.info.Info;\n\n@EnableFeignClients\n@EnableEurekaClient\n@SpringBootApplication\npublic class ChallengeUserServiceApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(ChallengeUserServiceApplication.class, args);\n }\n\n @Bean\n public RestTemplate restTemplate(RestTemplateBuilder builder) {\n return builder.build();\n }\n\n // @Bean\n // public GroupedOpenApi usersGroup(@Value(\"${springdoc.version}\") String appVersion) {\n // return GroupedOpenApi.builder().group(\"users\")\n // // .addOperationCustomizer((operation, handlerMethod) -> {\n // // operation.addSecurityItem(new SecurityRequirement().addList(\"basicScheme\"));\n // // return operation;\n // // })\n // .addOpenApiCustomiser(\n // openApi -> openApi.info(new Info().title(\"Users API\").version(appVersion)))\n // .packagesToScan(\"org.springdoc.demo.app2\").build();\n // }\n}\n" } } [Trace - 6:42:01 PM] Sending request 'textDocument/documentSymbol - (1)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:01 PM] Sending request 'textDocument/documentSymbol - (2)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:01 PM] Sending request 'textDocument/documentSymbol - (3)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:01 PM] Sending request 'textDocument/documentSymbol - (4)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:01 PM] Sending notification '$/cancelRequest'. Params: { "id": 1 } [Trace - 6:42:01 PM] Sending notification '$/cancelRequest'. Params: { "id": 2 } [Trace - 6:42:01 PM] Sending notification '$/cancelRequest'. Params: { "id": 3 } [Trace - 6:42:02 PM] Received notification 'language/status'. Params: { "type": "ProjectStatus", "message": "OK" } [Trace - 6:42:02 PM] Received request 'client/registerCapability - (1)'. Params: { "registrations": [ { "id": "24e30b39-c32a-4827-899d-b6fd499ee23e", "method": "textDocument/completion", "registerOptions": { "resolveProvider": true, "triggerCharacters": [ ".", "@", "#", "*", " " ] } } ] } [Trace - 6:42:02 PM] Sending response 'client/registerCapability - (1)'. Processing request took 2ms No result returned. [Trace - 6:42:02 PM] Received request 'client/registerCapability - (2)'. Params: { "registrations": [ { "id": "aced45f8-552d-489c-81d7-9c3e9aef0d5a", "method": "textDocument/definition" } ] } [Trace - 6:42:02 PM] Sending response 'client/registerCapability - (2)'. Processing request took 1ms No result returned. [Trace - 6:42:02 PM] Received request 'client/registerCapability - (3)'. Params: { "registrations": [ { "id": "c58b6b62-d421-44e3-ab9d-73698b0e9597", "method": "textDocument/typeDefinition" } ] } [Trace - 6:42:02 PM] Sending response 'client/registerCapability - (3)'. Processing request took 1ms No result returned. [Trace - 6:42:02 PM] Received request 'client/registerCapability - (4)'. Params: { "registrations": [ { "id": "029f98bf-ca6e-4106-b35d-b4ff331ea1ba", "method": "textDocument/foldingRange" } ] } [Trace - 6:42:02 PM] Sending response 'client/registerCapability - (4)'. Processing request took 1ms No result returned. [Trace - 6:42:03 PM] Received request 'client/registerCapability - (5)'. Params: { "registrations": [ { "id": "8ecb2c1c-e5dc-4656-b820-1546292fe541", "method": "textDocument/selectionRange" } ] } [Trace - 6:42:03 PM] Sending response 'client/registerCapability - (5)'. Processing request took 1ms No result returned. [Trace - 6:42:03 PM] Received request 'client/registerCapability - (6)'. Params: { "registrations": [ { "id": "43b05693-ca95-4cde-ba28-3cb9baae46ff", "method": "textDocument/documentHighlight" } ] } [Trace - 6:42:03 PM] Sending response 'client/registerCapability - (6)'. Processing request took 4ms No result returned. [Trace - 6:42:03 PM] Received request 'client/registerCapability - (7)'. Params: { "registrations": [ { "id": "031ac02c-4fc7-442a-bea5-f8a6d3b28f33", "method": "workspace/didChangeWatchedFiles", "registerOptions": { "watchers": [ { "globPattern": "**/*.java" } ] } } ] } [Trace - 6:42:03 PM] Sending response 'client/registerCapability - (7)'. Processing request took 1ms No result returned. [Trace - 6:42:03 PM] Received notification 'language/status'. Params: { "type": "Started", "message": "LightWeightServiceReady" } [Trace - 6:42:03 PM] Sending request 'textDocument/semanticTokens/full - (5)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:03 PM] Sending request 'textDocument/foldingRange - (6)'. Params: { "textDocument": { "uri": "file:///workspaces/challenge-registry/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java" } } [Trace - 6:42:12 PM] Sending request 'shutdown - (7)'. [Trace - 6:42:15 PM] Sending notification '$/cancelRequest'. Params: { "id": 6 } [Trace - 6:42:16 PM] Sending notification '$/cancelRequest'. Params: { "id": 4 } [Trace - 6:42:20 PM] Received request 'client/unregisterCapability - (8)'. Params: { "unregisterations": [ { "id": "031ac02c-4fc7-442a-bea5-f8a6d3b28f33", "method": "workspace/didChangeWatchedFiles" } ] } [Trace - 6:42:20 PM] Sending response 'client/unregisterCapability - (8)'. Processing request took 0ms No result returned. [Trace - 6:42:20 PM] Received request 'client/registerCapability - (9)'. Params: { "registrations": [ { "id": "031ac02c-4fc7-442a-bea5-f8a6d3b28f33", "method": "workspace/didChangeWatchedFiles", "registerOptions": { "watchers": [ { "globPattern": "**/*.java" }, { "globPattern": "/workspaces/challenge-registry/apps/challenge-user-service/src/main/java/**" }, { "globPattern": "/workspaces/challenge-registry/apps/challenge-user-service/src/test/java/**" } ] } } ] } [Trace - 6:42:20 PM] Sending response 'client/registerCapability - (9)'. Processing request took 1ms No result returned. [Trace - 6:42:23 PM] Received response 'textDocument/documentSymbol - (1)' in 21858ms. Request failed: The request (id: 1, method: 'textDocument/documentSymbol') has been cancelled (-32800). [Trace - 6:42:23 PM] Received response 'textDocument/documentSymbol - (2)' in 21871ms. Request failed: The request (id: 2, method: 'textDocument/documentSymbol') has been cancelled (-32800). [Trace - 6:42:23 PM] Received response 'textDocument/documentSymbol - (3)' in 21880ms. Request failed: The request (id: 3, method: 'textDocument/documentSymbol') has been cancelled (-32800). [Trace - 6:42:23 PM] Received response 'textDocument/foldingRange - (6)' in 20326ms. Request failed: The request (id: 6, method: 'textDocument/foldingRange') has been cancelled (-32800). [Trace - 6:42:23 PM] Received response 'textDocument/documentSymbol - (4)' in 21901ms. Request failed: The request (id: 4, method: 'textDocument/documentSymbol') has been cancelled (-32800). [Trace - 6:42:25 PM] Received response 'textDocument/semanticTokens/full - (5)' in 22406ms. Result: { "data": [ 0, 8, 3, 0, 0, 0, 4, 15, 0, 0, 0, 16, 9, 0, 0, 2, 7, 3, 0, 4096, 0, 4, 9, 1, 4096, 0, 10, 4, 1, 4096, 0, 5, 14, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 5, 1, 4096, 0, 6, 7, 1, 4096, 0, 8, 10, 1, 4096, 0, 11, 5, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 4, 1, 4096, 0, 5, 17, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 4, 1, 4096, 0, 5, 13, 1, 4096, 0, 14, 21, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 4, 1, 4096, 0, 5, 3, 1, 4096, 0, 4, 6, 1, 4096, 0, 7, 19, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 5, 1, 4096, 0, 6, 7, 1, 4096, 0, 8, 6, 1, 4096, 0, 7, 18, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 5, 1, 4096, 0, 6, 9, 1, 4096, 0, 10, 18, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 7, 1, 4096, 0, 8, 10, 1, 4096, 0, 11, 4, 1, 4096, 1, 7, 3, 0, 4096, 0, 4, 15, 1, 4096, 0, 16, 3, 1, 4096, 0, 4, 6, 1, 4096, 0, 7, 12, 1, 4096, 1, 7, 2, 1, 4096, 0, 3, 7, 1, 4096, 0, 8, 2, 1, 4096, 0, 3, 3, 1, 4096, 0, 4, 6, 1, 4096, 0, 7, 4, 1, 4096, 0, 5, 4, 1, 4096, 2, 1, 18, 1, 0, 1, 1, 18, 1, 0, 1, 1, 21, 1, 0, 1, 0, 6, 11, 0, 0, 13, 31, 1, 80, 2, 2, 6, 11, 0, 0, 7, 6, 11, 0, 0, 12, 4, 7, 82, 0, 5, 6, 1, 68, 0, 9, 4, 10, 16, 1, 26, 31, 1, 64, 0, 32, 5, 12, 0, 0, 7, 4, 10, 0, 3, 3, 4, 1, 0, 1, 2, 6, 11, 0, 0, 7, 12, 1, 64, 0, 13, 12, 7, 80, 0, 13, 19, 1, 0, 0, 20, 7, 10, 16, 1, 11, 7, 10, 0 ] } [Trace - 6:42:28 PM] Received response 'shutdown - (7)' in 15697ms. Result: {} [Trace - 6:42:28 PM] Sending notification 'exit'. No parameters provided. ```
tschaffter commented 2 years ago

More logs from a workspace where I removed all apps but the user service:

[Trace - 7:25:37 PM] Sending request 'textDocument/hover - (14)'.
Params: {
    "textDocument": {
        "uri": "file:///workspaces/redhat/apps/challenge-user-service/src/main/java/org/sagebionetworks/challenge/ChallengeUserServiceApplication.java"
    },
    "position": {
        "line": 10,
        "character": 49
    }
}

[Trace - 7:25:37 PM] Received response 'textDocument/hover - (14)' in 19ms.
Result: {
    "contents": ""
}

[Trace - 7:25:39 PM] Sending request 'shutdown - (15)'.
[Trace - 7:25:39 PM] Received notification 'window/logMessage'.
Params: {
    "type": 1,
    "message": "Sep 12, 2022, 7:25:39 PM Workspace was not properly initialized or has already shutdown.\nWorkspace was not properly initialized or has already shutdown.\njava.lang.Exception: Workspace was not properly initialized or has already shutdown.\n\tat org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)\n\tat org.eclipse.core.internal.resources.ResourceException.<init>(ResourceException.java:38)\n\tat org.eclipse.core.internal.resources.Workspace.getWorkManager(Workspace.java:1817)\n\tat org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1481)\n\tat org.eclipse.core.internal.events.AutoBuildJob$AutoBuildOffJob.run(AutoBuildJob.java:333)\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)\n"
}

[Error - 7:25:39 PM] Sep 12, 2022, 7:25:39 PM Workspace was not properly initialized or has already shutdown.
Workspace was not properly initialized or has already shutdown.
java.lang.Exception: Workspace was not properly initialized or has already shutdown.
    at org.eclipse.core.internal.resources.ResourceException.provideStackTrace(ResourceException.java:42)
    at org.eclipse.core.internal.resources.ResourceException.<init>(ResourceException.java:38)
    at org.eclipse.core.internal.resources.Workspace.getWorkManager(Workspace.java:1817)
    at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1481)
    at org.eclipse.core.internal.events.AutoBuildJob$AutoBuildOffJob.run(AutoBuildJob.java:333)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

[Error - 7:25:40 PM] Connection to server got closed. Server will not be restarted.
tschaffter commented 2 years ago

Java Syntax highlight works when opening Java project folder directly

tschaffter commented 2 years ago

UPDATE

I tried opening again from the workspace folder and the syntax highlighting works. This error was still displayed: Workspace was not properly initialized or has already shutdown.. This is working in a workspace with only one gradle app, but not in the full workspace.

UPDATE

The syntax highlight works in a workspace that includes one Gradle project and one Maven project.

Update

I added back all the apps to the workspace "redhat" and syntax highlight works.

Next

What is the different with the current "redhat" workspace and the original workspace? Try deep cleanup of the original workspace.

tschaffter commented 2 years ago

Conclusion

The presence of the empty file build.gradle in the workspace folder throws off the Java syntax highlight/IntelliSense. Removing it, possibly along other Gradle files recently added in the workspace folder, solves the issue.