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.

Bug 212491 - AssertionError at org.netbeans.modules.languages.yaml.InsertTabAction$TabReplacer.replaceTab
Summary: AssertionError at org.netbeans.modules.languages.yaml.InsertTabAction$TabRepl...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 15:33 UTC by karel_barel
Modified: 2012-10-10 03:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187945


Attachments
stacktrace (3.20 KB, text/plain)
2012-05-14 15:33 UTC, karel_barel
Details
stacktrace (3.23 KB, text/plain)
2012-09-17 11:35 UTC, larsomat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description karel_barel 2012-05-14 15:33:32 UTC
Build: NetBeans IDE Dev (Build 201205130400)
VM: OpenJDK Client VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-b147
OS: Linux

User Comments:
karel_barel: pasting block of code in yml file and then pressed up arrow




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.languages.yaml.InsertTabAction$TabReplacer.replaceTab(InsertTabAction.java:122)
   at org.netbeans.modules.languages.yaml.InsertTabAction$TabReplacer.tryReplaceTab(InsertTabAction.java:116)
   at org.netbeans.modules.languages.yaml.InsertTabAction$TabReplacer.run(InsertTabAction.java:107)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:317)
   at org.netbeans.modules.languages.yaml.InsertTabAction.actionPerformed(InsertTabAction.java:89)
   at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
Comment 1 karel_barel 2012-05-14 15:33:38 UTC
Created attachment 119437 [details]
stacktrace
Comment 2 larsomat 2012-09-17 11:35:13 UTC
Created attachment 124446 [details]
stacktrace

pressing "tab" in yaml file (multiple lines selected)
Comment 3 Ondrej Brejla 2012-10-09 12:51:30 UTC
Wrong assert was used, I improved it, so we'll see. Fixed in web-main #17b766ba6420
Comment 4 Quality Engineering 2012-10-10 03:04:01 UTC
Integrated into 'main-golden', will be available in build *201210100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/17b766ba6420
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #212491 - AssertionError at org.netbeans.modules.languages.yaml.InsertTabAction$TabReplacer.replaceTab (improved assert)