So I finally found some time to try and dig deeper into this issue, though I'm not very familiar with Java and NetBeans (from the developer perspective), and issues like this make for a fairly steep learning curve, especially since nobody's been able to help with it before.

Anyway, I think I've found an immediate reason for the this exception: after 'ant run' for the PHP Editor module, this file gets deleted:

php/php.editor/build/classes/org/netbeans/modules/php/editor/parser/CUP$ASTPHP5Parser$actions.class

It's not being created again using 'ant build' for the module. A whole full build is needed for that.

As for why would that file be deleted, I don't know yet, though I strongly suspect it really shouldn't be deleted 😁

But there seems to be a trail, CUP$ASTPHP5Parser$actions.class is mentioned in php/php.editor/nbproject/project.properties:

nbjavac.ignore.missing.enclosing=**/CUP$ASTPHP5Parser$actions.class

And searching for nbjavac.ignore.missing.enclosing reveals two things:

1. No other project.properties than PHP Editor seems to have it
2. It's being used by CustomJavac.java, in cleanUpDependDebris() method
   that does seem to delete some files and its comments link to the
   issue #196556: https://bz.apache.org/netbeans/show_bug.cgi?id=196556

Does this ring any bells to anybody?

From what I read, this file is supposed to be skipped from the deletion, but apparently it's not. Could it be because **/ is not a valid path in Windows? Is this cleaning up step also an issue in any other modules, or is the PHP Editor somehow special? The linked Bugzilla issue has some mentions of JDK 7 and implements a workaround for an issue that existed ~10 years ago, maybe the whole thing is not needed anymore? And lastly, why is this class not being recreated with 'ant build' the module?

Thanks for whatever insights anybody might have to share.


22.04.2020 13:23, Korney Czukowski wrote:
Well, I believe that was as detailed as it can be, I did literally nothing except for those steps I've described, can't think of anything else...

This must be somehow related to platform (Windows - notoriously bad for some types of development), tools (Java, Ant versions listed below) or whatever else specific to the environment. Probably me doing something wrong, but given the very basic steps to reproduce for me, I'm currently out of ideas.


21.04.2020 22:03, Matthias Bläsing wrote:
Hi,

no I meant detailed steps to reproduce. As said, with the provided
steps I was not able to reproduce the issue.

Matthias

Am Montag, den 20.04.2020, 15:07 +0200 schrieb Korney Czukowski:
I've got all the Ant output from the full build, 1st run (before the
edit), 2nd run (after the edit, when the exception appears) and the
3rd
run (after reverting, exception still appears) as well as the diff
of
the edit. All made from the current master. It's too large to post as
a
gist at Github though and almost 1MB zipped. Is it okay to attach
the
zip to the mailing list?


20.04.2020 7:20, Korney Czukowski wrote:
Hi Matthias,

By being detailed, other than you've quoted, did you mean I am to
keep
track of all output from eg. ant? (at what level then?)

Thanks.

18.04.2020 22:11, Matthias Bläsing wrote:
Hi,

Am Dienstag, den 17.03.2020, 08:46 +0100 schrieb Korney
Czukowski:
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
Tested on Ubuntu and is not reproducible for me. Please start
with a
clean checkout from NetBeans master and be detailed what you do
and
how. Else it is pure speculation.

Greetings

Matthias


---------------------------------------------------------------
------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-h...@netbeans.apache.org

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





Reply via email to