Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-360

Auto-complete does not refresh

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.0.4
    • Fix Version/s: 3.0.6
    • Component/s: Editor

      Description

      Auto-complete does not refresh after hvaing tried to "auto-complete" when required classes have not been included using the import keyword. For example, say you have entered the code below in a class editor, but have forgotten to include the javax.swing package in your import statements for the class.

      JOptionPane.
      

      If you hit Ctrl+Space, Bluej beeps and reports that no completions are available. This is fair enough so we amend the class by adding

      import javax.swing.*;
      

      and then go back to the offending code. However, hitting Ctrl+Space again does not work. Even deleting the line of code and trying again from scratch fails. Also, closing and reopening the editor window does not work
      - the only way to get the auto-complete options to display is to restart Bluej.

      My guess is that auto-complete caches the classes that need to be included but for some reason in the above situation it fails to refresh its cache.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: