Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-699

Refactoring Tools Servely Disabled for Un-saved Java Code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 9.0
    • None

    Description

      context

      • Editing Java code
      • Wanted to find all usages of a method

      expected / desirable

      • Select method name
      • Press ALT / F7
      • See Usages pop-up
      • Press OK
      • Review list of uses found.
      • There is ONE as identified using grep
      • I expect Navigation and Refactoring tools to work on ALL files and Open/Active buffers.
      • Netbeans 8 does not force me to save or save and reopen files to rename a method, or find all usages, etc.

      actual

      • Pressing ALT / F7 resulted in the following error:
      ALT / F7 error

      • The method immediately above this line and the method below are both private
      • I can press ALT / F7 for those methods, no problem.
      • In addition navigation isn't working e.g. CTRL / Left-Mouse-Click - Jump to source code fails.
      • But only for that One method.

      Furthermore ...

      • These operations started / resumed working on the isNullSelectedNote() method after *Save-*ing the file.
      • In a great many cases now Navigation and Refactoring operations have Failed.
      • And later worked / Resumed working later
      • There is NO CONSISTENT pattern - However most of the time saving the file or All Files eventually the task seems to work (again)
      • On the other hand, sometimes navigation, refactoring operations work fine without forcing me to save a file. 
      • It is unpredictable - That can be worse than broken  sometimes!

      Impact

      • Had to go to a command line and run grep
      • That is not helpful for a Public method used across many projects

      supporting information

      • messages.log
      • screenshot

      Attachments

        1. messages.log
          942 kB
          aplatypus
        2. image-2018-04-19-12-58-53-652.png
          19 kB
          aplatypus

        Activity

          People

            Unassigned Unassigned
            aplatypus aplatypus
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: