You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "fglueck (via GitHub)" <gi...@apache.org> on 2023/03/01 15:07:49 UTC
[GitHub] [netbeans] fglueck opened a new issue, #5585: PHP heredoc parsing crashes editor
fglueck opened a new issue, #5585:
URL: https://github.com/apache/netbeans/issues/5585
### Apache NetBeans version
Apache NetBeans 17
### What happened
The code parsing in a complex heredoc works wrong.
If inside a heredoc a method call with a second here/nowdoc parameter the parser/syntax highlighter will hang/crash.
### How to reproduce
Use follow code:
`
<?php
echo <<<HTML
<span><label for="{$from}">{$this->caption[$key]}</label>
{$this->element()->select("bp{$postfix}", $this->get_opt($value), $value)->label($this->caption[$key]??'', $this->title[$key]??'')->on('change', <<<'X'
... some code ....
X)}
</span>
HTML;
`
This is a extract with reduced code. If you change <<<'X' to <<<X it is the same behaviour. But with " or ' it works.
If you open the code as file, you can see the last line (HTML;) will have a wrong color. Not the same then the opening <<<HTML.
The editor is now not usable, I can't edit code with wrong syntax highlighting. So be carefull.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows 10
### JDK
18.0.1.1
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Product Version: Apache NetBeans IDE 17
Updates: NetBeans IDE is updated to version [NetBeans 8.2 Patch 2](http://wiki.netbeans.org/NetBeans8.2PatchesInfo)
Java: 18.0.1.1; Java HotSpot(TM) 64-Bit Server VM 18.0.1.1+2-6
Runtime: Java(TM) SE Runtime Environment 18.0.1.1+2-6
System: Windows 10 version 10.0 running on amd64; UTF-8; de_DE (nb)
### Are you willing to submit a pull request?
No
--
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] junichi11 commented on issue #5585: PHP heredoc parsing crashes editor
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5585:
URL: https://github.com/apache/netbeans/issues/5585#issuecomment-1498966494
#### Simple reproducible example:
```php
<?php
class T {
public function test(): string {
return "test method";
}
public function test2($param): string {
return $param . PHP_EOL;
}
}
$t = new T();
echo <<< HTML
<span>{$t->test()}</span>
{$t->test2(<<< X
something
something
X)}
HTML;
```
--
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] junichi11 commented on issue #5585: PHP heredoc parsing crashes editor
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5585:
URL: https://github.com/apache/netbeans/issues/5585#issuecomment-1498265900
@fglueck Can you create a simple example that can run?
--
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] junichi11 commented on issue #5585: PHP heredoc parsing crashes editor
Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #5585:
URL: https://github.com/apache/netbeans/issues/5585#issuecomment-1496764557
Reproducible. Thank you for reporting it.
--
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] tmysik closed issue #5585: PHP heredoc parsing crashes editor
Posted by "tmysik (via GitHub)" <gi...@apache.org>.
tmysik closed issue #5585: PHP heredoc parsing crashes editor
URL: https://github.com/apache/netbeans/issues/5585
--
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