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

Code completion, navigation does not work if there is a typo in PHP header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 11.1
    • None
    • None
    • Product Version: Apache NetBeans IDE 11.1
      Java: 12.0.1; Java HotSpot(TM) 64-Bit Server VM 12.0.1+12
      Runtime: Java(TM) SE Runtime Environment 12.0.1+12
      System: Windows 10 version 10.0

    Description

      Please see the attached sample project that illustrates the issue.

      There is a syntax error in Class1.php - missing space between PHP header and a declaration:

      <?phpdeclare(strict_types = 1);
      

      No syntax error is reported, the syntax highlighting still works, but completion and navigation (like Go to declaration of class or method names) does nothing, even though class and method names are still being underlined when moving mouse over them with ctrl key pressed.

      It may take a while for a user to realize where the problem is.

      Attachments

        1. CompletionWithSyntax.zip
          1 kB
          Czukowski

        Activity

          People

            Unassigned Unassigned
            czukowski Czukowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: