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 189935 - ArrayIndexOutOfBoundsException: offset=219501, length=1, snapshot-length=219323
Summary: ArrayIndexOutOfBoundsException: offset=219501, length=1, snapshot-length=219323
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
Depends on:
Reported: 2010-08-27 06:48 UTC by sreimers
Modified: 2011-01-28 20:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172189

stacktrace (2.54 KB, text/plain)
2010-08-27 06:48 UTC, sreimers

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2010-08-27 06:48:14 UTC
This bug was originally marked as duplicate of bug 163434, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-5672-on-100826)
VM: Java HotSpot(TM) Server VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Windows XP

User Comments:
ovk: created new RoR app and started editing yml (scanning not finished yet)

sreimers: Editing yaml with copy & paste

java.lang.ArrayIndexOutOfBoundsException: offset=219501, length=1, snapshot-length=219323
   at org.netbeans.modules.parsing.api.Snapshot.create(
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.getEmbeddings(
   at org.netbeans.modules.parsing.impl.SourceCache.getAllEmbeddings(
   at org.netbeans.modules.parsing.api.ResultIterator.getEmbeddings(
Comment 1 sreimers 2010-08-27 06:48:17 UTC
Created attachment 101708 [details]
Comment 2 Tomas Zezula 2010-08-30 08:34:47 UTC
offset + length > text.length