Joining the list
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Dec 21 11:41:24 UTC 2020
On 19/12/2020 23:11, leerho wrote:
> To get started, I have one simple question: What IDE do you use for
> development? Neither IntelliJ nor Eclipse supports JDK16 yet. So I'm
> curious how your team gets around this issue.
Thanks for taking the time to do this experiment - it seems a big enough
project which could probably provide vary valuable feedback in a number
of directions (not only regarding performances, but also regarding the
usability of the API as a whole).
IntelliJ works with the latest Panama early access build, so that should
be an option for you. As was pointed out in this thread, enabling
experimental feature level is necessary, as well as changing the
IntelliJ compiler settings in a number of places (this can be done in
the IntelliJ's setting menu, under Build/Compiler); specifically, you
need to add the incubator module (--add-module jdk.incubator.foreign).
This will need to be repeated also for every "Run" configuration you
create in IntelliJ - e.g. the --add-modules option will need to be
passed to the VM.
Moreover, if you use the CLinker API, or you are planning to create
"unsafe" segments, you might also require the runtime property
"-Dforeign.restricted=permit", to get access to unsafe operations.
With these settings things work ok for me. Note that there is currently
an issue with IntelliJ and jextract in that if you pick jextract
classfile generation mode, IntelliJ code completion is broken in certain
cases - in which case you can select jextract source mode using jextract
"--source" flag. This is of course only an issue if you plan to use
jextract.
I hope this helps
Maurizio
More information about the panama-dev
mailing list