[
https://issues.apache.org/jira/browse/NETBEANS-3705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter S updated NETBEANS-3705:
------------------------------
Description:
So this one was a bit fun to narrow down. I thought it was the keyboard at
first, then maybe read-only file, but other files work and restarting didn't
solve the problem.
h3. Symptoms
Loss of TAB and RETURN/ENTER key functionality.
h3. Cause
I've narrowed the problem down to this piece of PHP:
{code:java}
<?php
$pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%';
$str = '<img';
if (preg_match('%/(\d+)/0%', $str))
$k = '';
{code}
Removing any of the above lines seem to solve the problem.
All other keyboard keys and commands seem to work, including copy and pasting
line-breaks and tabs.
was:
So this one was a bit fun to narrow down. I thought it was the keyboard at
first, then maybe read-only file, but other files work and restarting didn't
solve the problem.
h3. Symptoms
Loss of TAB and RETURN/ENTER key functionality.
h3. Cause
I've narrowed the problem down to this piece of PHP:
{code:java}
<?php
$pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%';
$str = '<img';
if (preg_match('%/(\d+)/0%', $str))
$k = '';
{code}
All other keyboard keys and commands seem to work, including copy and pasting
line-breaks and tabs.
> TAB and RETURN/ENTER causes NullPointerException and doesn't insert said
> whitespace character
> ---------------------------------------------------------------------------------------------
>
> Key: NETBEANS-3705
> URL: https://issues.apache.org/jira/browse/NETBEANS-3705
> Project: NetBeans
> Issue Type: Bug
> Components: editor - Lexer
> Affects Versions: 11.2
> Environment: Product Version = Apache NetBeans IDE 11.2
> Operating System = Linux version 5.0.0-37-generic running on amd64
> Java; VM; Vendor = 11.0.5; OpenJDK 64-Bit Server VM
> 11.0.5+10-post-Ubuntu-0ubuntu1.118.04; Private Build
> Runtime = OpenJDK Runtime Environment
> 11.0.5+10-post-Ubuntu-0ubuntu1.118.04
> Java Home = /usr/lib/jvm/java-11-openjdk-amd64
> System Locale; Encoding = en_CA (nb); UTF-8
> Reporter: Peter S
> Priority: Minor
> Attachments: nullPointerException.log
>
>
> So this one was a bit fun to narrow down. I thought it was the keyboard at
> first, then maybe read-only file, but other files work and restarting didn't
> solve the problem.
> h3. Symptoms
> Loss of TAB and RETURN/ENTER key functionality.
> h3. Cause
> I've narrowed the problem down to this piece of PHP:
> {code:java}
> <?php
> $pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%';
> $str = '<img';
> if (preg_match('%/(\d+)/0%', $str))
> $k = '';
> {code}
> Removing any of the above lines seem to solve the problem.
>
> All other keyboard keys and commands seem to work, including copy and pasting
> line-breaks and tabs.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists