Uploaded image for project: 'yangide'
  1. yangide
  2. YANGIDE-6

Completion to "import" should be prevented if an "import" statement is not valid in that location

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • unspecified
    • General
    • None
    • Operating System: All
      Platform: All

    • 5850

      The "import" statement can only be in the module in a particular
      place, right after the namespace and prefix definition. It cannot go
      after the "organization" or "contact" blocks. This is defined in the
      spec (somewhere).

      I can enter text after the "contact" block, entering "impo" and then
      ctrl+space, and it will complete "import", and it will let me select
      the module name and complete a valid "import" statement, but the
      entire statement won't be valid because you can't have an "import"
      there. It should not have offered the "import" completion at that
      point in the file.

      An intelligent editor shouldn't be dumb. It shouldn't help you build a line that won't compile. It would be nice if it could somehow indicate that "import" is not valid in this location.

            Unassigned Unassigned
            dkarr David M. Karr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: