redhat-developer / redhat-developer/vscode-java
Renaming file causes FileNotFoundException on java language server start
Open
Nobody has claimed this yet.
bug
refactoring
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
##[provide a description of the issue]
Environment
- Operating System: 10.12.2
- JDK version: jdk1.8.0_121
- Visual Studio Code version: 1.9.1
- Java extension version: 0.0.10
Steps To Reproduce
- Rename a file and folder of package
In my case it was
android/app/src/main/java/za/co/io/reactnativekeystore/KeystoreModule.java android/app/src/main/java/za/co/io/reactnativekeystore/KeystorePackage.java
and I renamed them to
android/app/src/main/java/za/co/io/reactnativecrypto/CryptoModule.java android/app/src/main/java/za/co/io/reactnativecrypto/CryptoPackage.java - Restart VSCode
- Language server fails to start throwing FileNotFoundException
Purging ~/Library/Application Support/Code/User/workspaceStorage and restarting VSCode solved the problem
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by renaming the Java files and package from android/app/src/main/java/za/co/io/reactnativekeystore to reactnativecrypto, then restarting VS Code. Inspect how the extension or language server handles renamed workspace files and stored workspace state; done means the server starts after the rename without requiring workspaceStorage to be purged.
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
- Needs clarification
- Newbie friendliness
- 30/100