Closed tepimartin closed 6 days ago
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.
Hi @tepimartin , You can try to remove the local Apex index files for the Apex language server.
Please let me know the results.
Hi @mingxuanzhangsfdx ,
Thank you for your quick reply! This solution seems to be working now. I will continue testing it for a couple of days and will let you know if I notice anything unusual.
Thanks again, Martin
Hi @tepimartin - glad this works out. I am going to close the issue and feel free to reopen it or file another one if you have further questions.
Summary
I am consistently encountering an IllegalStateException with various classes and cases when using the Apex Language Server in VS Code. Despite the Apex code being correct and deploying without issues, the language server incorrectly flags method definitions as already defined. This problem persists across restarts of both VS Code and the computer, and is not resolved by reinstalling Java or trying with a fresh installed Zulu JDK 17.0.11+9. Importantly, the class mentioned in the Java error, along with any of its dependencies or dependents, has not been changed for months. The error has become a complete blocker, preventing the use of the replay debugger for my complex project and severely impacting my development workflow.
System Information
OS: macOS Sonoma 14.5 SFDX CLI Version: salesforce/cli/2.46.6 darwin-arm64 node-v20.14.0 VS Code Version: 1.90.2 Salesforce Extension Pack Version: v61.1.2
Error Log