Closed sygsky closed 8 years ago
What version of the plugin are you using? You can find out the plugin version by going to the header menu (File, Edit, etc), Arma Plugin->About. Thanks for the error report.
Arma Plugin Version 1.0.5
IntelliJ IDEA 2016.1.3 Build #IC-145.1617, built on June 3, 2016 JRE: 1.8.0_77-b03 x86 JVM: Java HotSpot(TM) Server VM by Oracle Corporation
I have resolved this issue and will be in next version. I'm currently trying to fix a massive bug and when I fix that one, both bugs will be fixed in next version and then released.
Fix is in release 1.0.5_1, which is now available.
in file:
In line
if (((position _x) select 2) < 20) then {if (!(_x in _list)) then {_list = _list + [_x]}};
the NullPointerException occure in plugin (accoding ot JIdea repetitive mesasages) if file is in focused editor window:
java.lang.NullPointerException at com.kaylerrenslow.a3plugin.lang.sqf.psi.mixin.SQFStringMixin.getReferences(SQFStringMixin.java:42) at org.intellij.plugins.intelliLang.references.InjectedReferencesContributor.getInjectedReferences(InjectedReferencesContributor.java:56) at org.intellij.plugins.intelliLang.references.InjectedReferencesInspection$1.visitElement(InjectedReferencesInspection.java:38) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.kaylerrenslow.a3plugin.lang.sqf.psi.impl.SQFStringImpl.accept(SQFStringImpl.java:27) at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:81) at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:69) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:294) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$200(LocalInspectionsPass.java:73) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:261) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$2.process(LocalInspectionsPass.java:256) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:128) at com.intellij.concurrency.ApplierCompleter.access$000(ApplierCompleter.java:44) at com.intellij.concurrency.ApplierCompleter$1.run(ApplierCompleter.java:91) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1178) at com.intellij.concurrency.ApplierCompleter$2.run(ApplierCompleter.java:100) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:443) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:112) at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:88) at jsr166e.CountedCompleter.exec(CountedCompleter.java:684) at jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260) at jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858) at jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687) at jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642) at jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:108)
Typical error message log is as follow:
If file is not in focused window, exception stops reproducing.
As only you insert ';' symbol near end of this line as follow:
if (((position _x) select 2) < 20) then {if (!(_x in _list)) then {_list = _list + [_x];}};
the error message immediately stop to reproduce forever. Between stop/start JIdea the error is alive if ';'after '[_x]'and before '}' is absent.
It seems to be not error in sqf syntax, but error in your very usefull plugin. With or without ';' script is working good.