Java error when typing function
Show older comments
When i enter for instance smys( at this point a large java error message pops up. Any ideas, anyone seen it before.
Exception in thread "QueuedMatlabWorker": java.lang.NumberFormatException: For input string: "4 2"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:589)
at org.apache.lucene.index.SegmentInfos.generationFromSegmentsFileName(SegmentInfos.java:248)
at org.apache.lucene.index.SegmentInfos.getLastCommitGeneration(SegmentInfos.java:183)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:746)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:66)
at org.apache.lucene.search.spell.SpellChecker.createSearcher(SpellChecker.java:679)
at org.apache.lucene.search.spell.SpellChecker.swapSearcher(SpellChecker.java:656)
at org.apache.lucene.search.spell.SpellChecker.setSpellIndex(SpellChecker.java:178)
at org.apache.lucene.search.spell.SpellChecker.<init>(SpellChecker.java:153)
at org.apache.lucene.search.spell.SpellChecker.<init>(SpellChecker.java:128)
at com.mathworks.search.spell.IndexBasedSpellCheckProvider.<init>(IndexBasedSpellCheckProvider.java:25)
at com.mathworks.search.lucene.LuceneSearchEngine.<init>(LuceneSearchEngine.java:44)
at com.mathworks.search.lucene.LuceneSearchEngine.<init>(LuceneSearchEngine.java:35)
at com.mathworks.helpsearch.DocSearchEngineFactory.createSearchEngine(DocSearchEngineFactory.java:32)
at com.mathworks.helpsearch.DocSearchEngineFactory.createSearchEngine(DocSearchEngineFactory.java:23)
at com.mathworks.helpsearch.reference.SearchEngineReferenceStrategy.<init>(SearchEngineReferenceStrategy.java:23)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.getInstance(DocCenterReferenceRetrievalStrategy.java:61)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.getInstance(DocCenterReferenceRetrievalStrategy.java:44)
at com.mathworks.mlwidgets.help.DocCenterReferenceRetrievalStrategy.createDataRetriever(DocCenterReferenceRetrievalStrategy.java:79)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getReferenceData(MFunctionCall.java:580)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getSignatureString(MFunctionCall.java:528)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.getSignatureString(MFunctionCall.java:514)
at com.mathworks.mlwidgets.help.functioncall.MFunctionCall.createSignatureString(MFunctionCall.java:251)
at com.mathworks.mde.functionhints.QueuedMatlabWorker$2.run(QueuedMatlabWorker.java:283)
at java.lang.Thread.run(Thread.java:748
3 Comments
Walter Roberson
on 13 Feb 2022
I notice that smys is is mis-spelling of syms and I notice that the error message has to do with spelling correction. Is it correct that the error only occurs when you enter a function name that does not exist, so the editor might be searching for a "close" name to suggest to you ?
David Cox
on 17 Feb 2022
David Cox
on 18 Feb 2022
Answers (1)
David Cox
on 13 Feb 2022
0 votes
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!