Description:
Expected Behavior
When a JAR file is properly referenced in .vscode/settings.json
and the code compiles/runs correctly, Cursor should recognize the dependencies and not show false error indicators.
Current Behavior
Cursor shows false error indicators (e.g., “package com.google.gson does not exist”) even when:
- The JAR file (gson-2.11.0.jar) is properly placed in the lib folder
- The JAR is correctly referenced in settings.json
- The code compiles and runs successfully
Steps to Reproduce
-
Create a new Java project
-
Add a lib folder with gson-2.11.0.jar
-
Configure settings.json with:
{
“java.project.sourcePaths”: [“src”],
“java.project.outputPath”: “bin”,
“java.project.referencedLibraries”: [“lib//.jar”]
} -
Create a simple Java file that uses Gson
-
Code runs correctly but IDE shows false errors
Environment
- Cursor Version: [tu versión]
- OS: Linux
- Java Version: OpenJDK 21
Additional Context
- The code compiles and runs without issues
- Only the IDE’s error detection is affected
Check the forum to ensure the issue hasn’t been reported already
Provide a clear description of the bug
Explain how to reproduce the bug (if known)
Attach screenshots or recordings (e.g.,
.jpg
, .png
, .mp4
).
Tell us your operating system and your Cursor version (e.g.,
Windows, 0.x.x
).
Tell us if the issue stops you from using Cursor.