Java support doesn't work: TypeError: Cannot read properties of null (reading 'isCancellationRequested') #1

Open
opened 2025-08-09 17:12:52 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @coolsoftrf on 8/1/2025

When:
opening a java source file of a loaded android project

Issue:
Java file support is not activated

Where logs are found;
OUTPUT tab, «Extension Host» section, filter: «adelphes»

Error log:

2025-08-01 15:48:49.839 [info] ExtensionService#_doActivateExtension adelphes.android-dev-ext, startup: false, activationEvent: 'onLanguage:java'
2025-08-01 15:48:50.012 [info] ExtensionService#_doActivateExtension vscjava.vscode-java-debug, startup: false, activationEvent: 'onLanguage:java'
2025-08-01 15:48:51.077 [error] TypeError: Cannot read properties of null (reading 'isCancellationRequested')
at nb.z (file:///c:/Users//AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:65140)
at nb.findFiles (file:///c:/Users//AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:64803)
at Object.findFiles (file:///c:/Users//AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:164:119465)
at createLanguageClient (c:\Users<user>.vscode\extensions\adelphes.android-dev-ext-1.4.0\extension.js:49:47)
at activate (c:\Users<user>.vscode\extensions\adelphes.android-dev-ext-1.4.0\extension.js:129:5)
...

Further investigation:
after extensionHostProcess.js twicking to bybass the error above the extension finally started, but still fails to process java file (code navigation, intellisence etc.) with the following error in OUTPUT tab, «Android» section:

(node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency
(Use Code --trace-warnings ... to show where the warning was created)
(node:11916) Warning: Accessing non-existent property 'CEIJavaType' of module exports inside circular dependency
(node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency
(node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency
(node:11916) Warning: Accessing non-existent property 'CompiledJavaType' of module exports inside circular dependency
[Error - 4:49:17 PM] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: lib.values is not a function or its return value is not iterable
Code: -32603
[Error - 4:49:32 PM] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: lib.values is not a function or its return value is not iterable
Code: -32603

*Originally created by @coolsoftrf on 8/1/2025* When: opening a java source file of a loaded android project Issue: Java file support is not activated Where logs are found; OUTPUT tab, «Extension Host» section, filter: «adelphes» Error log: > 2025-08-01 15:48:49.839 [info] ExtensionService#_doActivateExtension adelphes.android-dev-ext, startup: false, activationEvent: 'onLanguage:java' 2025-08-01 15:48:50.012 [info] ExtensionService#_doActivateExtension vscjava.vscode-java-debug, startup: false, activationEvent: 'onLanguage:java' 2025-08-01 15:48:51.077 [error] TypeError: Cannot read properties of null (reading 'isCancellationRequested') at nb.z (file:///c:/Users/<user>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:65140) at nb.findFiles (file:///c:/Users/<user>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:64803) at Object.findFiles (file:///c:/Users/<user>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:164:119465) at createLanguageClient (c:\Users\<user>\.vscode\extensions\adelphes.android-dev-ext-1.4.0\extension.js:49:47) at activate (c:\Users\<user>\.vscode\extensions\adelphes.android-dev-ext-1.4.0\extension.js:129:5) ... Further investigation: after `extensionHostProcess.js` twicking to bybass the error above the extension finally started, but still fails to process java file (code navigation, intellisence etc.) with the following error in OUTPUT tab, «Android» section: > (node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency (Use `Code --trace-warnings ...` to show where the warning was created) (node:11916) Warning: Accessing non-existent property 'CEIJavaType' of module exports inside circular dependency (node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency (node:11916) Warning: Accessing non-existent property 'JavaType' of module exports inside circular dependency (node:11916) Warning: Accessing non-existent property 'CompiledJavaType' of module exports inside circular dependency [Error - 4:49:17 PM] Request textDocument/completion failed. Message: Request textDocument/completion failed with message: lib.values is not a function or its return value is not iterable Code: -32603 [Error - 4:49:32 PM] Request textDocument/completion failed. Message: Request textDocument/completion failed with message: lib.values is not a function or its return value is not iterable Code: -32603
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/android-dev-ext#1
No description provided.