Java error when typing function

12 次查看(过去 30 天)
David Cox
David Cox 2022-2-12
评论: David Cox 2022-2-18
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 个评论
David Cox
David Cox 2022-2-17
I contacted support it was sugested, I enter these comands
>> restoredefaultpath
>> rehash toolboxcache
>> restoredefaultpath
if this did not work to do a clean install. I'm in the middle of a clean instal.
Thank you for your input.
David Cox
David Cox 2022-2-18
Just to keep you updated I did a clean install. This did not work, as an after thought I updated Java (did not think it would do anything, i was right made no differance). The problem has been elevated.
The second time I did the installed I hunted out any refeance to Matlab on my machine even removed Data files. This weekend if I'm bored I might do a machine rebuild.

请先登录,再进行评论。

回答(1 个)

David Cox
David Cox 2022-2-13
Yes that is miss spelled, but any function weather or not it is miss-spelled results in this error. MatLab appears to work normaly after this error is displayed. As you say it apears to be a fault in the spell checker, heaven known I need that working.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品


版本

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by