[YANGIDE-6] Completion to "import" should be prevented if an "import" statement is not valid in that location Created: 05/May/16  Updated: 19/Oct/17

Status: Open
Project: yangide
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: David M. Karr Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5850

 Description   

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.


Generated at Wed Feb 07 20:48:25 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.