[ https://issues.apache.org/jira/browse/NETBEANS-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17288295#comment-17288295 ]
Czukowski edited comment on NETBEANS-5373 at 2/22/21, 10:19 AM: ---------------------------------------------------------------- Unfortunately, not that I can see. Phing 2 didn't use namespaced class names, so the argument as above wouldn't work (what would work is {{-logger AnsiColorLogger}}, provided there's an autoloader in place). A PEAR-style path like {{phing_listener_AnsiColorLogger}} that also works in Phing 2 and still supported by Phing 3 would also have to be different since they've changed the directory structure (directory names start with uppercase now), but I couldn't make it work with Phing 3 when trying out (from CLI), most likely because the include path isn't configured properly, it tries to include_once {{Phing\Listener\AnsiColorLogger.php}} and fails. In my instance with Phing 3, the class loading is handled by Composer autoloader, so with a qualified class name, Phing doesn't even get around to look for the file to include. was (Author: czukowski): Unfortunately, not that I can see. Phing 2 didn't use namespaced class names, so the argument as above wouldn't work (what would work is {{-logger AnsiColorLogger}}, provided there's an autoloader in place). A PEAR-style path like {{phing_listener_AnsiColorLogger}} that also works in Phing 2 and still supported by Phing 3 would also have to be different since they've changed the directory structure (directory names start with uppercase now), but I couldn't make it work with Phing 3 when trying out (from CLI), most likely because the include path isn't configured properly, it tries to include_once {{phing\listerner\AnsiColorLogger.php}} and fails. In my instance with Phing 3, the class loading is handled by Composer autoloader, so with a qualified class name, Phing doesn't even get around to look for the file to include. > Phing 3 cannot run from NetBeans > -------------------------------- > > Key: NETBEANS-5373 > URL: https://issues.apache.org/jira/browse/NETBEANS-5373 > Project: NetBeans > Issue Type: Improvement > Components: php - Editor > Affects Versions: 12.3 > Reporter: Czukowski > Priority: Major > > When running Phing form NetBeans, this part of command line seems to be > hardcoded: {{-logger phing.listener.AnsiColorLogger}} > However this no longer works with Phing 3 that is about to be released. > See https://github.com/phingofficial/phing/blob/main/UPGRADING.md > {quote}Support for dot-path classnames (i.e., foo.bar.FooBar) has been > removed.{quote} > This part should be either updated to a supported schema (I found that > {{-logger Phing\\Listener\\AnsiColorLogger}} - qualified class name, > delimited by double back slash - works) or dropped altogether for a quick fix. > Note: can't see php - phing component here, so assigning it to php - Editor, > feel free to change as appropriate. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists