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 244204

Summary: ArrayIndexOutOfBoundsException: offset=175, length=1, snapshot-length=106
Product: ruby Reporter: Exceptions Reporter <exceptions_reporter>
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal CC: geissler, hantsy, ticowushu, umpirsky
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 186101
Attachments: stacktrace

Description Exceptions Reporter 2014-04-30 15:54:20 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: OpenJDK 64-Bit Server VM, 24.51-b03, OpenJDK Runtime Environment, 1.7.0_55-mockbuild_2014_04_16_06_38-b00
OS: Linux

User Comments:
GUEST: Copied files from an ftp server into the project which is also a git repo

GUEST: <Please provide a description of the problem or the steps to reproduce>
trying to save a file

ticowushu: i not do nothing expecial for this error

GUEST: copied a short string from one yml file, and pasted in into another yml file.




Stacktrace: 
java.lang.ArrayIndexOutOfBoundsException: offset=175, length=1, snapshot-length=106
   at org.netbeans.modules.parsing.api.Snapshot.create(Snapshot.java:157)
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:161)
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.translate(RubyEmbeddingProvider.java:109)
   at org.netbeans.modules.languages.yaml.ruby.RubyEmbeddingProvider.getEmbeddings(RubyEmbeddingProvider.java:73)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callEmbeddingProvider(TaskProcessor.java:583)
   at org.netbeans.modules.parsing.impl.SourceCache.refresh(SourceCache.java:360)
Comment 1 Exceptions Reporter 2014-04-30 15:54:22 UTC
Created attachment 147030 [details]
stacktrace