redhat-developer / redhat-developer/vscode-java

Outline with VSCodium/macOS broken for versions > 1.10

Open
#2,352 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

navigation
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Using a clean install of VSCodium on macOS (details see below) with only vscode-java.

Java project is https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/

When the extension in version <=1.10 is installed, an outline for the Java classes is displayed.

When the extension in version >=1.20 is installed, instead of an outline, I see the message "No symbols found in document '*'", so the outline is not displayed.

*current-file-name.extension, e.g. Account.java

Expected behavior: Outline is still displayed.

Environment
  • Operating System: macOS 11.6
  • JDK version: openjdk version "11.0.14" 2022-01-18 - OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) - OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
  • Visual Studio Code version: VSCodium (!) Version: 1.65.0 Commit: b5205cc8eb4fbaa726835538cd82372cc0222d43 Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 20.6.0
  • Java extension version: 1.00-1.40, affected versions: 1.20+
Steps To Reproduce
  1. Fresh install of VSCodium (all extension folders
  2. Fresh install of Java extension >=1.20
  3. Check outline for a Java file.

[Please attach a sample project reproducing the error]
https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/

Please attach logs
Attached for version 1.10:
client.log.2022-03-10.log

NB

Version 1.20+ logfile creation doesn't work, command results in:
"Command 'Java: Open Java Extension Log File' resulted in an error (command 'java.open.clientLog' not found)"

Current Result

Versions 1.20+ show instead of the outline the message, "No symbols found in document '<file.extension>'"

Expected Result

Outline is displayed also for versions 1.20+

Additional Informations

Not tested with VSCode M$-proprietary.

Not tested with versions < 1.00.

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 issue with the linked account-service sample project in VSCodium on macOS, comparing the Java extension versions below 1.10 and 1.20+. Check the outline result and investigate why the java.open.clientLog command is unavailable in affected versions; done means Java files show their symbols in the outline for version 1.20+.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
tooling
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.