jdk incubator module cannot be resolved
See original GitHub issueTrying to use OpenJDK project Panama’s new incubator module for native memory/function access, VSCode shows “The import jdk.incubator cannot be resolved”.
Environment
- Operating System: MacOS
- JDK version: Local build of Project Panama (https://openjdk.java.net/projects/panama/)
- Visual Studio Code version: 1.40.1
- Java extension version: 0.53.1
Steps To Reproduce
In general, create a project use jdk incubator module should see this
Be more specific to this,
- Obtain a build for project panama foreign-abi branch
- Set up maven toolchain
<toolchains>
<!-- JDK toolchains -->
<toolchain>
<type>jdk</type>
<provides>
<version>14</version>
<vendor>panama.mem</vendor>
</provides>
<configuration>
<jdkHome>path to the build here</jdkHome>
</configuration>
</toolchain>
</toolchains>
- Open attached sample project attach a sample project sample.zip
Current Result
maven build works fine, but VSCode shows “The import jdk.incubator cannot be resolved” on import lines and code using API from the module are shown as cannot be resolved.
Expected Result
Package and APIs are resolved
Additional Informations
It would be helpful be able to tweak javac options like --add-modules, --add-exports in workspace setting for simple projects like testing.
Set java.home just is not enough.
In order for this project to build with VSCode, I am forced to create maven project so that I can add this compiler options.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:5
Top Results From Across the Web
The jdk.incubator.httpclient module not found in Java11
Since being a standard module the java. net. http module shall be resolved by default.
Read more >How to run the Java Incubator Module from the ... - Foojay
In this article, we explored how the Java incubator modules can be run through command line and using IDE, such as IntelliJ IDEA....
Read more >1815935 – Eclipse (4.15) will not start with java-openjdk 14
Hi, we identified a bug with the curves a while ago, currently testing a candidate fix for the issue. It was caused by...
Read more >jdk.incubator.vector (Java SE 18 & JDK 18) - Oracle Help Center
declaration: module: jdk.incubator.vector, package: jdk.incubator.vector. ... A vector is a sequence of a fixed number of lanes, all of some fixed element ...
Read more >562569 – Do not show WARNING: Using incubator modules
incubator.foreign, jdk.incubator.jpackage Please check your .ini file. Doesn't look like a JDT issue. Maybe Platform should discuss if they find a way to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any progress so far for supporting
--add-exports
?Any response from any of the maintainers? is there any plans on support for this