jflex-de / idea-jflex

A plugin for IntelliJ IDEA to enable JFlex support
Apache License 2.0
20 stars 9 forks source link

Error Indexing _XmlLexer.flex #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Clone intellij-community repo
2. git checkout idea/135.1230
3. Create an IntelliJ Plugin SDK
4. Set sources to cloned repo
5. Open a project

What is the expected output? What do you see instead?
I would expect this to work normally without displaying an error.

What version of the product are you using? On what operating system?
JFlex Support 1.5.1 on IntelliJ IDEA 13.1 build 135.1230

Please provide any additional information below.

Error message -

Error while indexing 
/Users/crobbins/build/idea/xml/xml-psi-impl/src/com/intellij/lexer/_XmlLexer.fle
x

Traceback -

Error while indexing 
/Users/crobbins/build/idea/xml/xml-psi-impl/src/com/intellij/lexer/_XmlLexer.fle
x
To reindex this file IDEA has to be restarted: 
org.intellij.lang.jflex.lexer._JFlexLexer: Error: could not match input
java.lang.Error: org.intellij.lang.jflex.lexer._JFlexLexer: Error: could not 
match input
    at org.intellij.lang.jflex.lexer._JFlexLexer.zzScanError(_JFlexLexer.java:676)
    at org.intellij.lang.jflex.lexer._JFlexLexer.advance(_JFlexLexer.java:1345)
    at com.intellij.lexer.FlexAdapter.locateToken(FlexAdapter.java:95)
    at com.intellij.lexer.FlexAdapter.getState(FlexAdapter.java:52)
    at com.intellij.lexer.MergingLexerAdapterBase.locateToken(MergingLexerAdapterBase.java:73)
    at com.intellij.lexer.MergingLexerAdapterBase.getTokenType(MergingLexerAdapterBase.java:46)
    at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.doSetText(LexerEditorHighlighter.java:312)
    at com.intellij.openapi.editor.ex.util.LexerEditorHighlighter.setText(LexerEditorHighlighter.java:293)
    at com.intellij.psi.impl.cache.impl.id.PlatformIdTableBuilding$TokenSetTodoIndexer.map(PlatformIdTableBuilding.java:167)
    at com.intellij.psi.impl.cache.impl.id.PlatformIdTableBuilding$TokenSetTodoIndexer.map(PlatformIdTableBuilding.java:144)
    at com.intellij.psi.impl.cache.impl.todo.TodoIndex$4.map(TodoIndex.java:101)
    at com.intellij.psi.impl.cache.impl.todo.TodoIndex$4.map(TodoIndex.java:93)
    at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:215)
    at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1827)
    at com.intellij.util.indexing.FileBasedIndexImpl.doIndexFileContent(FileBasedIndexImpl.java:1754)
    at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1717)
    at com.intellij.util.indexing.UnindexedFilesUpdater.processFile(UnindexedFilesUpdater.java:73)
    at com.intellij.openapi.project.CacheUpdateSession.processFile(CacheUpdateSession.java:103)
    at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable$1.run(CacheUpdateRunner.java:231)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:911)
    at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable$2.run(CacheUpdateRunner.java:241)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
    at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)
    at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:236)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

Original issue reported on code.google.com by carymrob...@gmail.com on 27 Aug 2014 at 9:53