Enter key does not work either on JDK 6 or 7

Bug #943696 reported by kurapix
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
netbeans (Ubuntu)
Fix Released
Critical
Meghana vk

Bug Description

Enter key does not work on JDK 6 or 7 on netbeans package 7.0.1+dfsg1-4 .
No newline or whatsoever is created ... quite inconvenient for programming!

Distribution: Ubuntu Precise Pangolin 12.04 (latest updates as of 1st of March)
Arch: AMD64

Revision history for this message
Pavel Šefránek (pavelsefranek) wrote :

Tested today with 12.04 Beta 2 and found that this ugly issue still exists :(

Changed in netbeans (Ubuntu):
status: New → Confirmed
Revision history for this message
Niclas Paul (nicka-7) wrote :

I have the same problem with PHP. Don't know if it's related, but whatever PHP script I open shows "Please wait..." on a grey background that won't go away. Hovering over the "Please wait"... shows the full path to the opened file in a tooltip.
Opening js, css or textfiles within the same project works fine, just the PHP files are problematic.

Distribution: Ubuntu Precise Pangolin (AMD64) installed from final beta media, but updated today to the sharp version. Netbeans 7.01 also fully updated.

I just installed Netbeans today, so I have no idea if it would have worked before.

Revision history for this message
Matthias P. Würfl (matthias-ub) wrote :

Enter also doesn't work while editing ".html"-Files. Simply changing the filename from ".html" or ".php" to ".txt" makes the Enter-key work again.

Maybe this is related:

Using Menu File > New and choosing PHP or HTML gives the error "Cannot find an HtmlParser implementation for HTML5"

Revision history for this message
Matthias P. Würfl (matthias-ub) wrote :
Download full text (11.2 KiB)

I found a file called "/home/(me)/.netbeans/7.0/var/log/uigestures"

It is long, so hopefully this is important.

<record>
  <date>2012-05-04T01:02:24</date>
  <millis>1336086144724</millis>
  <sequence>816</sequence>
  <logger>org.netbeans.ui.actions.editor</logger>
  <level>FINE</level>
  <thread>17</thread>
  <message>UI_ACTION_EDITOR</message>
  <key>UI_ACTION_EDITOR</key>
  <catalog>&lt;null&gt;</catalog>
  <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Eingabe,when=1336086144720,modifiers=] on org.openide.text.QuietEditorPane[,0,0,959x4928,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@84731c,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=204,g=195,b=187],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=240,g=119,b=70],kit=org.netbeans.modules.csl.core.CslEditorKit@7baa77,typeHandlers=]</param>
  <param>java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Eingabe,when=1336086144720,modifiers=] on org.openide.text.QuietEditorPane[,0,0,959x4928,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.basic.BasicBorders$MarginBorder@84731c,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=java.awt.Color[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=204,g=195,b=187],editable=true,margin=java.awt.Insets[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=255,g=255,b=255],selectionColor=javax.swing.plaf.ColorUIResource[r=240,g=119,b=70],kit=org.netbeans.modules.csl.core.CslEditorKit@7baa77,typeHandlers=]</param>
  <param>org.netbeans.modules.csl.core.CslEditorKit$GsfInsertBreakAction[insert-break]</param>
  <param>org.netbeans.modules.csl.core.CslEditorKit$GsfInsertBreakAction@14d99bb</param>
  <param>insert-break</param>
</record>
<record>
  <date>2012-05-04T01:02:24</date>
  <millis>1336086144726</millis>
  <sequence>817</sequence>
  <logger>global</logger>
  <level>SEVERE</level>
  <thread>17</thread>
  <exception>
    <message>java.lang.IllegalStateException: Cannot find an HtmlParser implementation for HTML5</message>
    <frame>
      <class>org.netbeans.editor.ext.html.parser.api.SyntaxAnalyzerResult</class>
      <method>findParser</method>
      <file>${netBeansDir}modules/org-netbeans-modules-html-editor-lib.jar</file>
    </frame>
    <frame>
      <class>org.netbeans.editor.ext.html.parser.api.SyntaxAnalyzerResult</class>
      <method>getHtmlModel</method>
      <file>${netBeansDir}modules/org-netbeans-modules-html-editor-lib.jar</file>
    </frame>
    <frame>
      <class>org.netbeans.modules.html.editor.indent.HtmlIndenter</class>
      <method>&lt;init&gt;</method>
      <line>77</line>
      <file>${user.dir}modules/org-netbeans-modules-html-editor.jar</file>
    </frame>
    <frame>
      <class>org.netbeans.modules.html.editor.indent.HtmlIndentTask</class>
      <method>&lt;init&gt...

Revision history for this message
Tim Wahrendorff (tim.timwahrendorff) wrote :

however, installing a fresh netbeans from netbeans.org into my home folder and adding this fine plugin: http://plugins.netbeans.org/plugin/41822 for Unity integration is an acceptable workaround for me. Just in case it helps somebody else, too.

Revision history for this message
Niclas Paul (nicka-7) wrote :

Thanks Tim, installing a fresh copy of Netbeans 7.1.2 from netbeans.org worked for me, too! I don't use Unity, so I didn't bother with the plugin. I guess the problem will go away for real when the repositories get updated from 7.01->7.1.2

Revision history for this message
Pedro Villavicencio (pedro) wrote :

The program is no use without the enter key, raising the priority to Critical.

Changed in netbeans (Ubuntu):
importance: Undecided → Critical
status: Confirmed → Triaged
Revision history for this message
Ferdinando (ferdinando-l) wrote :

Here is a workaround:

"I use netbeans 7.0.1 on debian and fixed the issue by klicking on the info icon left to the <?php and then selecting "Change project default to HTML 4.01 Transitional"

It seems that the default is HTML 5 - and this generates a parser Exception. After switching the project default to the above mentioned setting I could use ENTER as normal - even on newly opened files."

source: http://askubuntu.com/questions/137209/netbeans-7-0-1-doesnt-start-new-line-when-pressed-enter

Anders (eddiedog988)
Changed in netbeans (Ubuntu):
status: Triaged → Confirmed
Revision history for this message
Rubal Walia (walia-rubal) wrote :

It is also the problem in Netbeans 8 on ubuntu 14.04 64-bit. I am also facing the same problem.

Revision history for this message
Adrian (moshefeit) wrote :

Yes, there exist UI Bug on Netbeans. Your problem just like what happened to me, even there is one that more awful. Someone wrote that here: https://karussell.wordpress.com/2008/07/26/the-most-annoying-but-strangest-bug-in-netbeans/

Revision history for this message
Markus Koschany (apoleon) wrote :

I believe this bug is fixed in the latest version of Netbeans 8.0.2 which is currently available in Ubuntu 15.10

Changed in netbeans (Ubuntu):
status: Confirmed → Fix Committed
Changed in netbeans (Ubuntu):
assignee: nobody → SYEDFAYAZ MUJAWAR (syedfayaz28)
Changed in netbeans (Ubuntu):
assignee: SYEDFAYAZ MUJAWAR (syedfayaz28) → nobody
Changed in netbeans (Ubuntu):
assignee: nobody → Suahs_Sangolli (suhas2910s)
Meghana vk (vkmegha57)
Changed in netbeans (Ubuntu):
assignee: Suahs_Sangolli (suhas2910s) → Meghana vk (vkmegha57)
assignee: Meghana vk (vkmegha57) → nobody
assignee: nobody → Meghana vk (vkmegha57)
Meghana vk (vkmegha57)
Changed in netbeans (Ubuntu):
assignee: Meghana vk (vkmegha57) → nobody
assignee: nobody → Meghana vk (vkmegha57)
Changed in netbeans (Ubuntu):
status: Fix Committed → Confirmed
status: Confirmed → Fix Committed
Revision history for this message
Emmanuel DA MOTA (vilain-mamuth) wrote :

Is the fix committed in repositories ?

In 15.10 and package version netbeans_8.0.2+dfsg1-4 , this is not fixed :(

i purged and reinstalled with no results

Revision history for this message
Emmanuel DA MOTA (vilain-mamuth) wrote :

oh , confused committed and released.... :))

nathan (nathan95-b)
Changed in netbeans (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.