I have been running Netbeans 12.0 with jvi on a Windows 8.1 laptop since last October. Sometime in the last week jvi quit working,and when I look at the Netbeans IDE log there is an Exception coming from jvi. I've attached the log. I've tried uninstalling and reinstalling jvi, tried manually installing the previous jvi Netbeans plugin release 1.6.4, tried installing Netbeans 12.4 and installing thecurrent jvi plugin in that release. None of this worked. I also uninstalled a couple of Windows updates I had just installed, and I tried disabling my Eset Internet Security software as the engine had recently been updated. Nothing I do is getting jvi to work again. I also have Netbeans 8.2 installed with an older version of jvi. It still works. I'm going to be lost without jvi. Hoping someone can help.
The trace shows the jVi exception occurs before any modules are enabled and that the exception is happening while trying to print an error message because the compilation of a regex failed (probably a regex syntax error). During startup, jVi compiles the user's last regex from the previous session, see
Search.startupInitializePatternon the stack. Looks like it's too early to print an error message since there's an exception.This seems to indicate that while you were trying to get this to work, you always used an existing userdir, since jVi saves the search history in there.
To fix the problem, you need to get rid of the bogus regex. This is in the file
you can find the location of userdir in NB's
Menu > Help > About.While NetBeans is not running, you can either
1=Then NB should start as usual. Note the line that starts with
1=is the most recent regex and you should see a regex with an error.Thanks for the report. I haven't tried to reproduce yet, but... Thinking about a release around the end of the year.
Thank you Ernie. Your instructions fixed the issue. I only had to delete the 1= line from the search.properties file. I left the rest of the file as it was.
Thank you so very much Ernie! Your instructions were complete and easy to follow, and fixed the problem. Really appreciate you taking the time to look into this and give me the solution.
Lisa
On 9/13/2021 8:42 AM, Ernie Rael wrote:
Hello, the exact same thing happend to me.
Thanks for this good report and sultion here.
In my case the bad entry was
Would be cool if jVi could ignore bad rexexps and not crash during startup ;-)
Fixed, release soon. JDK-11 only, hope that's ok. Thanks for
1=*, nice case.Transitioned from window to linux at home (for joy) took longer than expected; spending time on it helps.
You can get the fix pointing an update center to https://sourceforge.net/projects/jvi/files/jVi-for-NetBeans/NetBeans-12_JDK-11/UC/
Or downloading and installing from nbvi-2.0.rc1.zip