-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code: java modules: ResponseAPDU cannot be resolved to a type #3879
Comments
Interesting, seems enabling-javac.mp4 |
That works in that sample application. But in prod repo, beside having access to the module once activating javac, I had to upgrade jdk for java language server to version 23. It somehow broke the compilation / junit test exec. I will see, If I can reproduce it in the sample application. In the VS code logs, I found this exceptions as this one:
|
Hello,
I am struggling with visual studio code and modules. I am working on project, which needs to use java.base/javax.smartcardio. But VS Code complains "ResponseAPDU cannot be resolved to a type".
The demo class to demonstrate the issue is:
It can be fixed it by adding module-info.java
but this is not possible to do it in our codebase because we don't use java modules. If I run the build and test by maven, then it works fine (without any --add-exports etc).
I tried following change in settings.json but it didn't solve the issue:
I am even bit confused which part (extension) complains about that import, because during opening of the project, I can click through reference of
ResponseAPDU
to see the decompiled code.Sample app SmartCardio.zip
App can be executed by
mvn clean package exec:java -Dexec.mainClass="com.mycompany.SmartCardIoDemo"
but if I click on
run
main method, I got this error in terminal:Thx in advance for any advice.
The text was updated successfully, but these errors were encountered: