Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master build failure on Windows (tests) #152

Open
macTh3Knif3 opened this issue Nov 13, 2018 · 8 comments
Open

master build failure on Windows (tests) #152

macTh3Knif3 opened this issue Nov 13, 2018 · 8 comments

Comments

@macTh3Knif3
Copy link

built using cygwin (gradelw) and powershell (gradlew.bat) also in eclipse

image

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)

@carldou
Copy link

carldou commented Feb 12, 2019

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.

@JanKoehnlein
Copy link
Contributor

@carldou why do you want to recompile instead of just consuming the VS Code extension from the VS Code marketplace?

@carldou
Copy link

carldou commented Feb 13, 2019

@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.

@JanKoehnlein
Copy link
Contributor

I just tried on Windows 10 with latest VSCode and I do get code completion

screen shot 2019-02-13 at 09 18 38

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?

@carldou
Copy link

carldou commented Feb 13, 2019

I just tried on Windows 10 with latest VSCode and I do get code completion

screen shot 2019-02-13 at 09 18 38

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.

image

There is one error from VS Code, as shown here.

image

@riddler63
Copy link

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.

@JanKoehnlein
Copy link
Contributor

Which version of Java is installed on your system?

@riddler63
Copy link

riddler63 commented Feb 12, 2020

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants