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

new SimpleFileVisitor used in anonymous class breaks code completion, code highlighting, fix error suggestions, project commands.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 12.0
    • Fix Version/s: 12.1
    • Component/s: cnd - Code Completion
    • Labels:
      None
    • Environment:

      win 7, javaFX gradle project

      Description

      Using SimpleFileVisitor in anonymous class breaks code completion, highlighting, error fixing, suggestions, refactor, delete, navigator, just about everything in the editor for that project.

       

      Files.walkFileTree(sourceDirPath, new SimpleFileVisitor<Path>(){

      });

       

      Edit: Nothing special to get it to do this, just copy and paste the above incomplete code and it will break netbeans for that file its in. The other files in same project will continue to work as normal. Switch to another file and back into the file you paste the snippet into and you will see navigator fail as well as code completion, etc., just for that file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mitm Robert Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: