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 199862 - StringIndexOutOfBoundsException: String index out of range: -1
Summary: StringIndexOutOfBoundsException: String index out of range: -1
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Smarty (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
: 200164 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-03 08:56 UTC by troodon
Modified: 2011-09-06 10:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179145


Attachments
stacktrace (4.34 KB, text/plain)
2011-07-03 08:56 UTC, troodon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description troodon 2011-07-03 08:56:16 UTC
Build: NetBeans IDE 7.0.1 RC1 (Build 201106222100)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
GUEST: Tried to add a newline in a tpl file.

GUEST: enter doesn't work, me unhappy

GUEST: Cant create new line in 315th Line when pressing enter ,Error Occures

GUEST: OS: Ubuntu 11.04 32 bits
Editing a smarty template file.
When a i press NL, i always get this error, and no newline appear.

troodon: edit smarty template

GUEST: SImply editing a template file (.tpl) with Smarty plugin enabled. I could copy-paste content, and add (write) content but I could not add a new line in the middle of the line

GUEST: If i make a return in a *.tpl file i
Comment 1 troodon 2011-07-03 08:56:21 UTC
Created attachment 109217 [details]
stacktrace
Comment 2 Tomas Mysik 2011-07-04 11:22:14 UTC
Smarty related.
Comment 3 Martin Fousek 2011-07-04 11:52:19 UTC
Fixed for the version 1.54. This version is available in dev builds on dev UC.
http://hg.netbeans.org/main/contrib/rev/4055d0cc7b95

Could you use daily build or did you prefer backport this patch to nb70?
Comment 4 Martin Fousek 2011-07-15 15:18:13 UTC
*** Bug 200164 has been marked as a duplicate of this bug. ***
Comment 5 Quality Engineering 2011-08-27 14:14:14 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/93dc884ae79a
User: Martin Fousek <marfous@netbeans.org>
Log: #199862 - StringIndexOutOfBoundsException: String index out of range: -1