This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269840 - node.js & graalvm-0.20
Summary: node.js & graalvm-0.20
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-16 04:46 UTC by Jaroslav Tulach
Modified: 2017-03-01 10:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2017-02-16 04:46:44 UTC
GraalVM 0.20 comes with new layout - including co-bundle with JDK8:
http://www.oracle.com/technetwork/oracle-labs/program-languages/downloads/index.html
It is desirable to make sure we can start NetBeans on top of GraalVM+JDK8 co-bundle and use it to develop & debug node.js

There were few problems with the new layout:
#1 - NetBeans didn't start - fixed thanks to symlink to tool.jar in there
#2 - node.js wasn't recognized - fixed by Tomáš Myšík in http://hg.netbeans.org/releases/rev/bbbb96b54bb9
#3 - invoking bin/node requires JAVA_HOME set - will be fixed in version 0.21 - meanwhile start NetBeans with JAVA_HOME pointing to root of the co-bundle
#4 - debugging with Truffle connector doesn't work

When I install "Truffle Debug Support" and try to debug a node.js project, I get:

java.io.IOException: Invalid J2SE platform in /home/devel/bin/graalvm-0.20@ecfa9adc:a27e8f9
	at org.netbeans.modules.java.j2seplatform.platformdefinition.J2SEPlatformFactory.createImpl(J2SEPlatformFactory.java:93)
	at org.netbeans.modules.java.j2seplatform.platformdefinition.J2SEPlatformFactory.create(J2SEPlatformFactory.java:83)
	at org.netbeans.modules.java.j2seplatform.api.J2SEPlatformCreator.createJ2SEPlatform(J2SEPlatformCreator.java:69)
[catch] at org.netbeans.modules.debugger.jpda.truffle.node.JPDAStart.run(JPDAStart.java:162)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

Maybe that could be fixed by few symlinks or the JPDAStart modified to point to the embedded jdk folder.
Comment 1 Jaroslav Tulach 2017-02-16 04:48:39 UTC
Thanks for your insight into proper fix of the J2SEPlatform for GraalVM 0.20. Btw. isn't it a time to put Truffle Debugging Support into standard dev build? We care about the feature strongly, right?
Comment 2 Tomas Zezula 2017-02-16 08:22:16 UTC
I will fix the J2SEPlatfromImpl to support GraalVM 0.20
Comment 3 Jaroslav Tulach 2017-03-01 10:43:53 UTC
Thanks Tomáši, do you have a bug or changeset reference with the fix?