This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version: NetBeans IDE 6.0 RC1 (Build 200711130000) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-b05 System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb) Userdir: C:\Documents and Settings\katakai\.netbeans\6.0rc1 It seems that bug 113823 is still happening. I got this report from Japanese community. 1. Create Ruby and Rails project 2. Create yaml file 3. Add the following codes. ------- foo: id: 1 name: <% ----- If lines are existing after <%, I can not input any characters and the following exception happens. org.netbeans.api.languages.LanguageDefinitionNotFoundException: Language definition for text/x-ruby not found. at org.netbeans.modules.languages.LanguagesManager.getLanguage(LanguagesManager.java:132) at org.netbeans.modules.languages.features.BraceCompletionInsertAction.insertString(BraceCompletionInsertAction.java:92) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1060) at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1000)
Reliably reproducible, the exception is thrown each time when a character is typed after <% It is impossible to edit the embedded Ruby in this case. In general, the problem can occure whenever editing a non-Schliemann language embeded in a Schliemann language, so, it would be good if we can fix this in nb 6.0 The fix of issue 113823 was incomplete, it is neccessary to ignore (catch and not report) LanguageDefinitionNotFoundException also in BraceCompletionInsertAction and BraceCompletionDeleteAction, moreover, there is one more occurence of it in CompletionSupport. The fix is simple, just to add catch statement and delegate the action to the super class, resp. to remove the call of ErrorManager.notify() in the third case. There should not be any risk if this is properly tested and we decide to merge the fix into release60 branch. Fixed in trunk: /cvs/languages/engine/src/org/netbeans/modules/languages/features/BraceCompletionInsertAction.java new revision: 1.10; previous revision: 1.9 /cvs/languages/engine/src/org/netbeans/modules/languages/features/CompletionSupport.java new revision: 1.16; previous revision: 1.15 /cvs/languages/engine/src/org/netbeans/modules/languages/features/BraceCompletionDeleteAction.java new revision: 1.8; previous revision: 1.7
Masaki, can you verify the fix in the latest trunk build? The issue is pretty annoying and we are considering to fix it in NB 6.0. Thanks
Indeed a really nasty problem, changing priority to P1.
Reviewed.
Verified in trunk.
Verified in trunk by QE.
Fix merged into release60 branch. Checking in BraceCompletionInsertAction.java; /cvs/languages/engine/src/org/netbeans/modules/languages/features/BraceCompletionInsertAction.java,v <-- BraceCompletionInsertAction.java new revision: 1.8.4.1; previous revision: 1.8 Checking in CompletionSupport.java; /cvs/languages/engine/src/org/netbeans/modules/languages/features/CompletionSupport.java,v <-- CompletionSupport.java new revision: 1.14.4.1; previous revision: 1.14 Checking in BraceCompletionDeleteAction.java; /cvs/languages/engine/src/org/netbeans/modules/languages/features/BraceCompletionDeleteAction.java,v <-- BraceCompletionDeleteAction.java new revision: 1.7.4.1; previous revision: 1.7
Verified in 6.0.