Open macTh3Knif3 opened 5 years ago
same problem, in win10 and java 1.8.0_201. by using -x test as postfix for build command, build is successful, but still cannot work in VS code with Yang plugin.
@carldou why do you want to recompile instead of just consuming the VS Code extension from the VS Code marketplace?
@carldou why do you want to recompile instead of just consuming the VS Code extension from the VS Code marketplace?
I install the Yang VS Code Extension from VS Code marketplace, but it only highlights the grammer without automatic code completion. So I thought maybe I need to install this yang-lsp additionally. Now, it seems not necessary.
I just tried on Windows 10 with latest VSCode and I do get code completion
Did you install the correct extension? There is another one with syntax highlighting only.
It may also be a problem with (locating) Java on your machine. Do you get messages from VSCode that the language server couldn't be started or keeps crashing?
I just tried on Windows 10 with latest VSCode and I do get code completion
![]()
Did you install the correct extension? There is another one with syntax highlighting only.
It may also be a problem with (locating) Java on your machine. Do you get messages from VSCode that the language server couldn't be started or keeps crashing?
I also use Windows 10 with VS code version 1.31.1.
There is one error from VS Code, as shown here.
Hello,
I have exactly the same issue with VSCode and building yang-lsp and I noticed that it started to apear after I install GIT with VSCode as default text editor. Before that Yang VS Code Extension was working fine.
Which version of Java is installed on your system?
Which version of Java is installed on your system?
This one:
java -version java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
built using cygwin (gradelw) and powershell (gradlew.bat) also in eclipse
Also the link to builds is empty (returns a 404) https://hub.docker.com/r/typefox/yang-lsp/builds
$ java -version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
:io.typefox.yang.ide:testClasses :io.typefox.yang.ide:test
io.typefox.yang.tests.editor.syntaxcoloring.YangSemanticHighlightingCalculatorTest > checkDescription_multiLine FAILED org.junit.ComparisonFailure at YangSemanticHighlightingCalculatorTest.java:210
org.junit.ComparisonFailure: expected:<... : [] 1 : [] 2 : [3:[1:[keyword.other.unit, source.yang]] 3 : [0:11:[keyword.other.unit, source.yang]] 4 : [0:2]:[keyword.other.unit...> but was:<... : [] 1 : [] 2 : [3:[2:[keyword.other.unit, source.yang]] 3 : [0:12:[keyword.other.unit, source.yang]] 4 : [0:3]:[keyword.other.unit...> at org.junit.Assert.assertEquals(Assert.java:115) at org.junit.Assert.assertEquals(Assert.java:144) at org.eclipse.xtext.testing.AbstractLanguageServerTest.assertEquals(AbstractLanguageServerTest.java:1305) at io.typefox.yang.tests.editor.syntaxcoloring.YangSemanticHighlightingCalculatorTest.assertInfos(YangSemanticHighlightingCalculatorTest.java:210)