[Bug]: Activating extension 'vscjava.vscode-java-test' failed: Cannot read properties of undefined (reading 'name').
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: Windows
- Remote OS: Ubuntu
- Remote Architecture:
code-server --version
: 4.4.0
Steps to Reproduce
This seems not a bug completely, but a crash, sometimes get this when loading some spring Gradle project, where I already have installed the java extensions pack. Don’t know why I am getting this. Previously I used code-server version 3.4.1 with an older version of the Java Extension pack and now I updated the versions and getting this.
Expected
Due to this crash the Java Test runner (Beaker Icon is not loading and I am not able to test my spring project). Expected behaviour should be load the test runner.
Actual
The Beaker Icon on the left navigation pane is not showing even though the project is completely loaded and shown in Java Projects section.
Logs
No response
Screenshot/Video
Does this issue happen in VS Code?
- I cannot reproduce this in VS Code.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
No response
Issue Analytics
- State:
- Created a year ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
VSCODE: Cannot read property 'local' of undefined
It is most probably because Code doesn't have privilege to write to the extension folder, which is by default ~/.vscode/extension.
Read more >cannot read properties of undefined (reading 'query') chrome ...
I'm attempting to build a chrome extension that will grab the current url when tabBtn is clicked. I am receiving an error message...
Read more >Java Testing in Visual Studio Code
It's a lightweight extension to run and debug Java test cases. Overview. The extension supports the following test frameworks: JUnit 4 (v4.8.0+); JUnit...
Read more >Activation of Extension Pack for Java fails - Theia Community
root ERROR [hosted-plugin: 22372] Activating extension 'Extension Pack for Java' failed: TypeError: Cannot read property 'toLowerCase' of ...
Read more >Activating extension 'vscjava.vscode-java-test' failed - IssueHint
Activating extension 'vscjava.vscode-java-test' failed: Cannot read properties of undefined (reading 'name')
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @jsjoeio,
I have made a workaround in the issue. Working nicely with Code Server v4.4. I disable the updates for extensions and install older extension for test runner and now its working fice. No bugs and nothing.
Closing this thread! This is solved!
We have found a repro for this problem
Note:
We are launching a code-server in an AWS virtual machine.
Issue
When we try to open or reload the code server with a java file (.java) opened. The extension crashes and throws - “Activating vscjava.vscode-java-test extension failed” . But if we reload with a non-java file opened (.json/.txt). The extension loads correctly and works without any other problem.
We tried to find the logs during the failure case. It clearly says some execution error during extension activation.
Log path -
/home/crio-user/.local/share/code-server/logs/20220518T103013/exthost2/exhost.log
Have attached a video recording below for reproducing the problem.
Link - https://www.loom.com/share/1c9878462fb6460ba29355abd2c6d750
As we are facing this problem in the production systems, requesting the team to fix the problem asap.