Doesn't this ring any bells to anybody here?

I would really like to try and contribute something to NetBeans, but I'm stuck because of this. I guess I'll try again when NetBeans 12 is out...


17.03.2020 8:53, Korney Czukowski wrote:
Forgot to add: when running the dev build BEFORE editing the file, there's no exception message.


17.03.2020 8:46, Korney Czukowski wrote:

Hi,

Could anybody help me with this issue?

I see this error when I try to run PHP Editor module: java.lang.NoClassDefFoundError: org/netbeans/modules/php/editor/parser/CUP$ASTPHP5Parser$actions (full stack trace below). I've edited a few other smaller PHP-related modules before and it hasn't happen.

I can reproduce the issue this way:

  * ant clean build (build successful)
  * open PHP Editor project, change a file (I tried
    InitializeFieldSuggestion.java from
    org.netbeans.modules.php.editor.verification), just added an
    extra new line, nothing else
  * ant -f php/php.editor run
  * open a small project with PHP sources, a dialog window with the
    exception appears almost immediately
  * I can still dismiss the dialog and click around NetBeans, but the
    dialog keeps reapperaring every couple of clicks

My environment:

  * Windows 10
  * Apache Ant(TM) version 1.10.7 compiled on September 1 2019

From dev IDE Help/About:

  * *Product Version:* Apache NetBeans IDE DEV (Build
    dev-501ddbe80da33b06f21a2ff8eb63a73df5d20fec)
  * *Java:* 1.8.0_212; Java HotSpot(TM) 64-Bit Server VM 25.212-b10
  * *Runtime:* Java(TM) SE Runtime Environment 1.8.0_212-b10

My main IDE installation uses Java 12.0.2, I wanted to try running with the dev build with that, but adding netbeans_jdkhome="C:\Program Files\Java\jdk-12.0.2" to nbbuild/netbeans/etc/netbeans.conf doesn't seem to have the effect.


Full stack trace:

java.lang.NoClassDefFoundError: org/netbeans/modules/php/editor/parser/CUP$ASTPHP5Parser$actions     at org.netbeans.modules.php.editor.parser.ASTPHP5Parser.init_actions(ASTPHP5Parser.java:1817)
    at java_cup.runtime.lr_parser.parse(lr_parser.java:543)
    at org.netbeans.modules.php.editor.parser.GSFPHPParser.parseBuffer(GSFPHPParser.java:197)     at org.netbeans.modules.php.editor.parser.GSFPHPParser.processParsing(GSFPHPParser.java:156)     at org.netbeans.modules.php.editor.parser.GSFPHPParser.parse(GSFPHPParser.java:121)     at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598)     at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:228)     at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
    at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) [catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)     at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)



Reply via email to