TypeFox / yang-lsp

A Language Server for YANG
http://www.yang-central.org
Apache License 2.0
51 stars 13 forks source link

Unwanted warning for Multiple modules (ambiguous-import) #190

Closed andreasjakobik closed 3 years ago

andreasjakobik commented 3 years ago

Hi,

There is a warning as soon as a referenced yang file exist multiple times, such as this one:

Multiple modules 'ietf-inet-types' with matching revision are available [ietf-inet-types, ietf-inet-types](ambiguous-import)

However, in a typical scenario user has several directories with (same) model files, and these directories are self-contained with all yang models needed. It is therefore not a reasonable warning to have. Warning should be removed or at least restrict the search to the current files directory and sub directories, not the entire workspace.

Thanks, Andreas