You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2021/01/02 16:20:00 UTC

[jira] [Commented] (NETBEANS-5065) NoClassDefFoundError: CUP$ASTPHP5Parser$actions

    [ https://issues.apache.org/jira/browse/NETBEANS-5065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17257421#comment-17257421 ] 

Tomáš Procházka commented on NETBEANS-5065:
-------------------------------------------

Yes, rebuilding only PHP Editor module worked.

> NoClassDefFoundError: CUP$ASTPHP5Parser$actions
> -----------------------------------------------
>
>                 Key: NETBEANS-5065
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5065
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor
>    Affects Versions: 12.2
>         Environment: Windows
>            Reporter: Czukowski
>            Priority: Major
>
> Posted this a few months ago on dev list, but since it hasn't get any responses, I'm leaving an issue here.
> This is an issue specific to Windows. Linux seems to be unaffected.
> The problem is that during {{ant run}} execution 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 NetBeans build is needed for that. As a result, any change to PHP Editor sources requires a full build to complete.
> {{CUP$ASTPHP5Parser$actions.class}} is mentioned in {{php/php.editor/nbproject/project.properties}} [(1)|https://github.com/apache/netbeans/blob/f75dadf3a9cfb35ec89787ecca466a4f3db274c9/php/php.editor/nbproject/project.properties#L20]:
> {code:java}
> nbjavac.ignore.missing.enclosing=**/CUP$ASTPHP5Parser$actions.class
> {code}
> And searching for {{nbjavac.ignore.missing.enclosing}} reveals two things:
>  # No other project.properties than PHP Editor seems to have it
>  # It's being used by {{CustomJavac.java}}, in {{cleanUpDependDebris()}} method [(2)|https://github.com/apache/netbeans/blob/f75dadf3a9cfb35ec89787ecca466a4f3db274c9/nbbuild/antsrc/org/netbeans/nbbuild/CustomJavac.java#L193-L212] that does seem to delete some files and its comments link to an old [issue #196556|https://bz.apache.org/netbeans/show_bug.cgi?id=196556]
> From what I read, this file is supposed to be skipped from the deletion, but apparently it's not.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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