Menu

#4 jvi suddenly quit working in Netbeans 12.0

None
closed
nobody
None
5
2023-02-16
2021-09-13
Lisa Ruby
No

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.

1 Attachments

Discussion

  • Ernie Rael

    Ernie Rael - 2021-09-13

    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.startupInitializePattern on 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

    <userdir>/config/Preferences/org/netbeans/modules/jvi/search.properties
    

    you can find the location of userdir in NB's Menu > Help > About.
    While NetBeans is not running, you can either

    1. delete the search.properties file (which loses your search history)
    2. edit search.properties, delete the line that starts 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.

     
    • Lisa Ruby

      Lisa Ruby - 2021-09-13

      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.

       
    • Lisa Ruby

      Lisa Ruby - 2021-09-13

      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:

      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.startupInitializePattern on 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

      <userdir>/config/Preferences/org/netbeans/modules/jvi/search.properties</userdir>

      you can find the location of userdir in NB's Menu > Help > About.
      While NetBeans is not running, you can either
      1. delete the search.properties file (which loses your search history)
      2. edit search.properties, delete the line that starts 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.


      support-requests:#4 jvi suddenly quit working in Netbeans 12.0

      Status: open
      Group:
      Created: Mon Sep 13, 2021 05:22 AM UTC by Lisa Ruby
      Last Updated: Mon Sep 13, 2021 05:22 AM UTC
      Owner: nobody
      Attachments:

      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.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/jvi/support-requests/4/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
  • Tom Eicher

    Tom Eicher - 2022-01-26

    Hello, the exact same thing happend to me.
    Thanks for this good report and sultion here.

    In my case the bad entry was

    1=*
    

    Would be cool if jVi could ignore bad rexexps and not crash during startup ;-)

     
  • Ernie Rael

    Ernie Rael - 2022-04-19

    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.

     
  • Ernie Rael

    Ernie Rael - 2023-02-16
    • status: open --> closed
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB