You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/08/31 23:14:29 UTC

[GitHub] [netbeans] va0dl914 opened a new issue, #4575: Support RingoJS project

va0dl914 opened a new issue, #4575:
URL: https://github.com/apache/netbeans/issues/4575

   ### Description
   
   Add RingoJS project support and no longer show errors on RingoJS sources (update the parser to support RingoJS syntax).
   
   ### Use case/motivation
   
   Currently only NodeJS supported for JS. There is RingoJS too and especially it's part of the Java ecosystem.
   
   ### Related issues
   
   Don't know!
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] Chris2011 commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1242983485

   Afaik, NetBeans dropped the support for an older JavaScript engine, but I can't remember, whether it was Rhino or Nashorn. @jtulach or @matthiasblaesing can help here maybe.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] va0dl914 commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
va0dl914 commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1234671893

   > The JS parser should be up to date with latest NetBeans 14 thanks to @matthiasblaesing . Please give us more information, also a sample project where you have problems with. Thx.
   
   There currently no RingoJS project. For JS either it's an HTML app or NodeJS app. So you have to use one of these project types for your Ringo code but they are not really suited. Ringo is based RhinoJS which in turn based on the JVM. You can't write sth like this without errors: `var log10 = java.lang.StrictMath.log10(1517.19234);`
   
   https://ringojs.org/documentation/java_integration/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1243995586

   There is nothing stopping you writing nashorn/rhino compatible JS with NetBeans. There might be to little hints, that point out unsupported features in rhino, but JS is JS.
   
   If people want to improve the situation:
   
   1.) actually use the support and try to pin-point-problems, I'm willing to help, just not do the work. (Syntax/Feature filtering)
   2.) make it possible to support `importPackage` and `importClass` (and maybe the (AFAIK!) deprecated default java import) with code completion based on either the system JDK or the surrounding java project (which provides a classpath).
   
   Both of these things are doable - come to the mailinglist and ask if you want to try.
   
   See:
   - https://netbeans.apache.org/participate/submit-pr.html#contributing-code
   - https://netbeans.apache.org/community/mailing-lists.html#dev


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] Chris2011 commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1234700557

   It is not just the project template, also you asked for update the parser to support RinogJS syntax. I just had a quick look at https://ringojs.org/ and just saw simple JS syntax also for ES6 everything is up to date. So if ringo uses a different syntax by mixing JS and Java together etc. yes that needs to be implemented. but also java.lang.strictMath.log10 is still a valid and native JS syntax. Not Ringo specific. Just that maybe it shows you "java" is not defined. But that means that the global java object here is just not defined but it is not about the parser itself.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] matthiasblaesing commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
matthiasblaesing commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1234700219

   So let me summarize: The problem is not the parser, but that you want the JDK classes to be projected into the JS file and manifest a virtual object for it. This is doable - I won't do it (at least right now as I don't have a use-case). I assume, that the direct invocation of Java classes does not work arbitrarily, but for a limited set of classes (rhino has `importPackage` and `importClass`).
   
   As for your request in the linked issue in ringo:
   
   >o here help me persuading them pls
   
   OSS does not work this way. Someone needs to do the work and it is a lot of work - the initial implementation, but also the ongoing maintenance. So don't persuade, but put your work where your use-case is.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] va0dl914 closed issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
va0dl914 closed issue #4575: Support RingoJS project
URL: https://github.com/apache/netbeans/issues/4575


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] botic commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
botic commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1236800314

   This issue should target "Rhino support" and not "RingoJS support": Rhino is the underlying JavaScript engine of multiple JavaScript runtimes. RingoJS is just a runtime on top of Rhino. So if someone wants to write JS for RingoJS, he/she is writing for Rhino's JavaScript implementation.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] Chris2011 commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1233885171

   The JS parser should be up to date with latest NetBeans 14 thanks to @matthiasblaesing . Please give us more information, also a sample project where you have problems with. Thx.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] Chris2011 commented on issue #4575: Support RingoJS project

Posted by GitBox <gi...@apache.org>.
Chris2011 commented on issue #4575:
URL: https://github.com/apache/netbeans/issues/4575#issuecomment-1235192289

   @va0dl914 as a workaround, you can add this on top of your JS file `/* global java */` and the warning will go away if that helps and also other object, that are not declared. You also have a hint/fix on the marked object.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists