TypeFox / yang-lsp

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

null uriToProblem in validation issue #196

Closed RimShao closed 3 years ago

RimShao commented 3 years ago

Hi,

In certain syntax issue 'uriToProblem' is null, right now we need additionally to fill the 'URI' value into Issues, otherwise can't resolve file the syntax errors report to. it would be great that yang-lsp can fix that.

use below test model can reproduce the problem, the syntax error is because of unbalanced brace in 'when' statement.

leaf key-id {
        type string;

        when "/ctxsr6k:contexts/ctxr6k:context/ctxr6k:context-"
             + "name='local'" {
                  description
                  "";
         }
         }
}
dhuebner commented 3 years ago

@RimShao Would resource URI as uriToProblem work for you?

dhuebner commented 3 years ago

Fixed