Skip to content

Broken autocomplete when writing in a new file in a new directoryΒ #3194

@rohanbari

Description

@rohanbari

The extension fails to work appropriately on creating a new file in a new directory. That is, it would not display suggestions further. I thought it was a user-end problem. I tried reinstalling the extension. Yet, it persisted.

Environment
  • Operating System: Linux Mint 21.1 Vera
  • JDK version: javac 17.0.7
  • Visual Studio Code version: 1.80.0
  • Java extension version: v1.20.0 (Language Support for Java by RedHat)
Steps To Reproduce
  1. Open Code with the extensions enabled
  2. Create a new file in a new directory
  3. Start writing code
Image version of the misbehavior

Problem Image

* I don't think it needs a text version here.

Edit: The problem goes away on an app restart.

Java Extension Logs

Logs here

To ease dev work, my intuition says the problems are logged from line no. 19732-'37:

!ENTRY org.eclipse.jdt.ls.core 4 0 2023-07-11 19:09:12.705
!MESSAGE Error occured while building workspace. Details: 
 message: Syntax error, insert ";" to complete BlockStatements; code: 1610612976; resource: /home/rohan/code/java-lang/src/mathematics/FibonacciSeries.java; line: 6
 message: sout cannot be resolved; code: 570425394; resource: /home/rohan/code/java-lang/src/mathematics/FibonacciSeries.java; line: 6
 message: Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration; code: 1610612976; resource: /home/rohan/code/java-lang/src/mathematics/FibonacciSeries.java; line: 6
Expected Result

Anyone would expect some suggestion to appear.

Additional Information

Well, I know contributing is fun.
At this moment in my life, I have no idea what additional information to provide. But yeah, I can say it works correctly sometimes, very unpredictable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions