Skip to content

No definition found for 'java' #223

Closed

Description

After delete .project file, vscode show these error, I revent .project file cannot fix this problem

Environment
  • Operating System: Windows 8.1 Pro
  • JDK version:1.8.0_131-1-redhat
  • Visual Studio Code version:1.10.2
  • Java extension version: not found
Steps To Reproduce
  1. Reopen Vscode
  2. Restart computer then reopen vscode
  3. Reinstall vscode

Activity

  1. fbricon commented on May 25, 2017

    @fbricon
    Collaborator

    Is it an Maven, Gradle or Eclipse project?

    Anything noteworthy in the logs?

    I'm not too surprised it doesn't work after deleting .project. I'd try deleting the workspace to fix the issue.

  2. fbricon commented on May 25, 2017

    @fbricon
    Collaborator

    Ok so this is an Eclipse project. The presence of .project in that case is critical for the Java Language Server to work.

    Just don't delete it

  3. fbricon commented on May 25, 2017

    @fbricon
    Collaborator

    it should, if you restart vscode

  4. fbricon commented on May 25, 2017

    @fbricon
    Collaborator

    Ok, that doesn't seem normal. Recovery should be simpler than that.
    We'll investigate, but in the mean time, just don't delete .project/.classpath files

  5. robstryker commented on Oct 28, 2026

    @robstryker
    Contributor

    I am not able to replicate this. Restarting the workbench fixes any deletions. Closing as old and abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions