redhat-developer / redhat-developer/vscode-java

Autocompletion not working in and after try/catch block in main method

Open
#740 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

output

Environment
  • Operating System: Windows 7 x64
  • JDK version: 1.8.0_192
  • Visual Studio Code version: 1.29.1
  • Java extension version: 0.35.0
Steps To Reproduce
  1. Make a main method and put try/catch into it
  2. Try autocomplete any variable in, or after try/catch block
Current Result

Autocompletion only shows word completions (only used words)

Expected Result

List of all variables, that are available at current cursor position

Additional Information

Java extension server does not show any error.

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

No source files or tests are named. Reproduce the issue in the listed Windows, JDK, VS Code, and Java extension environment, then trace completion handling around a Java main method's try/catch block. Done means available variables are listed both inside and after the block without server errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.