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

Tests fails when basedir has space #749

Closed
BalduinLandolt opened this issue May 29, 2020 · 4 comments · Fixed by #776
Closed

Tests fails when basedir has space #749

BalduinLandolt opened this issue May 29, 2020 · 4 comments · Fixed by #776
Assignees
Labels
bug Something isn't working
Milestone

Comments

@BalduinLandolt
Copy link
Contributor

public void testNoDuplicateCompletionItems() throws BadLocationException {
// completion on <|
String xml = "<?xml version=\"1.0\" standalone=\"no\" ?>\n"
+ "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.0//EN\" \"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg.dtd\">\n"
+ "<svg xmlns=\"http://www.w3.org/2000/svg\">\n" + " <animate attributeName=\"foo\">\n"
+ " <|\n" + // <-- completion
" </animate>\n" + "</svg>";
testCompletionFor(xml, false, 3 + 2 /* CDATA and Comments */,
c("desc", te(4, 8, 4, 9, "<desc></desc>"), "<desc"),
c("metadata", te(4, 8, 4, 9, "<metadata></metadata>"), "<metadata"),
c("title", te(4, 8, 4, 9, "<title></title>"), "<title"));
}

On my end, this test keeps failing. The link to the DTD seems to be dead (as SVG 1.0 is not a thing anymore), and therefor the schema-based completions don't work anymore.
Also it seems to wayt for a timeout, because this one test takes more than 15 seconds.

Am I goofing, or is this test just broken?

@angelozerr
Copy link
Contributor

Test are working because CI build is working.

This test uses a XML catalog where the svg DTD is declared

and should use the src\test\resources\dtd\svg.dtd

What is your result of test?

@BalduinLandolt
Copy link
Contributor Author

Well, clearly something with the unit test is botched on my end... With Java 11 I got around 110 failing tests. Now I switched to Java 8 (which vs code java extension doesn't seem to like too much) and I get 31 failed tests.
(Most of the failed tests are in FilePathCompletionTest but some others fail too.)

But that's clearly on my end, so it doesn't need to be an issue here.

@angelozerr
Copy link
Contributor

@BalduinLandolt could you share your JUnit report please.

@BalduinLandolt
Copy link
Contributor Author

Sure.
(I didn't figure out how to get the report from vs code, so here's what I exported from intellij.)
report.zip

looking at it briefly, most of them seem to be:

java.net.URISyntaxException: Illegal character in path at index 24: file:///C:/Users/Balduin Landolt/Documents/smartgit_repos/lemminx/org.eclipse.lemminx/target/temp/note.dtd
	at java.base/java.net.URI$Parser.fail(URI.java:2915)
	at java.base/java.net.URI$Parser.checkChars(URI.java:3086)
	at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3168)
	at java.base/java.net.URI$Parser.parse(URI.java:3116)
	at java.base/java.net.URI.&amp;lt;init&amp;gt;(URI.java:600)
	at org.eclipse.lemminx.extensions.contentmodel.BaseFileTempTest.createFile(BaseFileTempTest.java:60)

Basically, the space in the file path seems to cause an exception at

at org.eclipse.lemminx.extensions.contentmodel.BaseFileTempTest.createFile(BaseFileTempTest.java:60)

So it's very much something that is my fault, but also something that might be an actual bug, because other people could also have spaces in their file paths.

I'll look at it again in more depth, as soon as I have time, and will keep you updated.

@angelozerr angelozerr added the bug Something isn't working label Jun 10, 2020
@angelozerr angelozerr changed the title broken(?) unit test 0222 Jun 10, 2020
@angelozerr angelozerr changed the title 0222 Tests fails when basedir has space Jun 10, 2020
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 10, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 17, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 18, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 26, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 29, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jun 30, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jul 1, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jul 1, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
@angelozerr angelozerr self-assigned this Jul 1, 2020
@angelozerr angelozerr added this to the 0.13.0 milestone Jul 1, 2020
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue Jul 2, 2020
Fixes eclipse#749

Signed-off-by: azerr <azerr@redhat.com>
angelozerr pushed a commit that referenced this issue Jul 2, 2020
Fixes #749

Signed-off-by: azerr <azerr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants