What is the recommended way to detect syntax errors in a Scala PsiFile in a plugin?
From looking at Scala worksheet it appears that WolfTheProblemSolver.hasSyntaxErrors(psiFile.getVirtualFile) should be sufficient, but this always returns false for me even when the editor clearly shows syntax errors. I tried explicitly arranging for this call to happen on the Swing thread, but to no avail.
I looked around in the Worksheet sources to see if there was some explicit initialization step for Wolf that I was possibly missing but it looks like the only reference is the use in WorksheetAutoRunner.
Is Wolf the preferred way to do this? A quick Google search and searching through the forums here doesn't turn up very much.
Thanks in advance for any help here.