Project: aptanastudio
Issue APSTUD-7410: Error updating the PHP task-tags
Saw this in my logs in a dev workspace. Looks like the comment nodes from PHP have bad offsets? The line pointed at in the stacktrace is: {code:java} String text = new String(source.substring(commentNode.getStart(), commentNode.getEnd() + 1)); {code} Here's the stacktrace: {code} !STACK 0 java.lang.StringIndexOutOfBoundsException: String index out of range: 16374 java.lang.String.substring(String.java:1934) com.aptana.editor.php.internal.indexer.TaskTagsUpdater.processCommentNode(TaskTagsUpdater.java:203) com.aptana.editor.php.internal.indexer.TaskTagsUpdater.updateTaskTags(TaskTagsUpdater.java:175) com.aptana.editor.php.internal.indexer.PDTPHPModuleIndexer.indexModule(PDTPHPModuleIndexer.java:3862) com.aptana.editor.php.indexer.PHPGlobalIndexer$WrapIndexer.indexModule(PHPGlobalIndexer.java:92) com.aptana.editor.php.indexer.PHPGlobalIndexer$8.run(PHPGlobalIndexer.java:549) org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {code}
Story points: 5