drrb / rust-netbeans

NetBeans Rust plugin
GNU General Public License v3.0
52 stars 20 forks source link

cannot be compiled on windows #4

Closed Vectrobe closed 9 years ago

Vectrobe commented 10 years ago

essentially it gets to 'set-up-grammar.sh' and the build fails, obviously because windows cant run unix scripts.

and with the amount of time that any of the files were last modified I'm surprised there isn't a single release at all...

drrb commented 9 years ago

Thanks for opening this issue. While I'm unable to test the plugin on Windows, I've replaced the shell script with a Java version, so you might have more luck building on Windows now. If you end up trying to build the plugin again, please let me know how you do with it.

Regarding a release of the plugin, it'll become more of a possibility once Rust is released.

randomPoison commented 9 years ago

I ran tried building the master branch on my machine and got the following output:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Rust NetBeans Plugin 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (compile-build-addon) @ rust-netbeans ---
[INFO] Source directory: C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\src\build\java added.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ rust-netbeans ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 22 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ rust-netbeans ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- exec-maven-plugin:1.3.2:java (compile-rust-bridge) @ rust-netbeans ---
[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
No changes detected. Not recompiling Rust crates.
[INFO]
[INFO] --- nbm-maven-plugin:3.13.2:manifest (default-manifest) @ rust-netbeans ---
[INFO] NBM Plugin generates manifest
[INFO] Adding on module's Class-Path:
[INFO]     net.java.dev.jna:jna:jar:4.0.0
[INFO]     org.pegdown:pegdown:jar:1.4.0
[INFO]     org.parboiled:parboiled-java:jar:1.1.5
[INFO]     org.parboiled:parboiled-core:jar:1.1.5
[INFO]     org.ow2.asm:asm:jar:4.1
[INFO]     org.ow2.asm:asm-tree:jar:4.1
[INFO]     org.ow2.asm:asm-analysis:jar:4.1
[INFO]     org.ow2.asm:asm-util:jar:4.1
[INFO]     com.moandjiezana.toml:toml4j:jar:0.3.1
[INFO]     com.google.code.gson:gson:jar:2.3
[INFO]     com.google.guava:guava:jar:14.0.1
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ rust-netbeans ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-resources-plugin:2.6:copy-resources (set-up-unit-test-data) @ rust-netbeans ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 59 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rust-netbeans ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ rust-netbeans ---
[INFO] Surefire report directory: C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.github.drrb.rust.netbeans.classpath.ClasspathSettingProjectOpenedHookTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.398 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.classpath.ClasspathSettingProjectOpenedHookTest
com.github.drrb.rust.netbeans.classpath.ClasspathSettingProjectOpenedHookTest  Time elapsed: 0.601 sec  <<< ERROR!
java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
  Location:
    org/netbeans/api/java/classpath/GlobalPathRegistry$SFBQListener.<init>(Lorg/netbeans/api/java/classpath/GlobalPathRegistry;Lorg/netbeans/api/java/classpath/GlobalPathRegistry$1;)V @38: invokespecial
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: 2a2b 3a04 4e12 45b8 0036 04bd 0004 5903
    0000010: 1904 5312 51b8 0028 b800 553a 0619 06b2
    0000020: 0043 a500 0a2a b700 14a7 000b 2d19 04b7
    0000030: 0057 0157 b1
  Stackmap Table:
    full_frame(@44,{UninitializedThis,Object[#28],Object[#80],UninitializedThis,Object[#28],Top,Object[#4]},{})
    full_frame(@52,{Object[#2],Object[#28],Object[#80],Object[#2],Object[#28],Top,Object[#4]},{})

    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at javassist.runtime.Desc.getClassObject(Desc.java:43)
    at javassist.runtime.Desc.getClassType(Desc.java:152)
    at javassist.runtime.Desc.getType(Desc.java:122)
    at javassist.runtime.Desc.getType(Desc.java:78)
    at org.netbeans.api.java.classpath.GlobalPathRegistry.<init>(GlobalPathRegistry.java:134)
    at org.netbeans.api.java.classpath.GlobalPathRegistry.<clinit>(GlobalPathRegistry.java:117)
    at sun.reflect.GeneratedSerializationConstructorAccessor9.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:40)
    at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:59)
    at org.mockito.internal.creation.jmock.ClassImposterizer.createProxy(ClassImposterizer.java:128)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:63)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:110)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:143)
    at org.powermock.api.extension.listener.AnnotationEnabler.standardInject(AnnotationEnabler.java:84)
    at org.powermock.api.extension.listener.AnnotationEnabler.beforeTestMethod(AnnotationEnabler.java:51)
    at org.powermock.tests.utils.impl.PowerMockTestNotifierImpl.notifyBeforeTestMethod(PowerMockTestNotifierImpl.java:90)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:292)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
    at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
    at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)
    at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:101)
    at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
    at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)

Running com.github.drrb.rust.netbeans.configuration.RustConfigurationTest
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.configuration.RustConfigurationTest
shouldReturnSavedLibrariesPaths(com.github.drrb.rust.netbeans.configuration.RustConfigurationTest)  Time elapsed: 0.016 sec  <<< FAILURE!
java.lang.AssertionError:
Expected: is <[/path/to/libraries, /path/to/more/libraries]>
     got: <[/path/to/libraries:/path/to/more/libraries]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.configuration.RustConfigurationTest.shouldReturnSavedLibrariesPaths(RustConfigurationTest.java:50)

Running com.github.drrb.rust.netbeans.folding.RustFoldTypeProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec - in com.github.drrb.rust.netbeans.folding.RustFoldTypeProviderTest
Running com.github.drrb.rust.netbeans.formatting.RustFormatterTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.3 sec - in com.github.drrb.rust.netbeans.formatting.RustFormatterTest
Running com.github.drrb.rust.netbeans.highlighting.RustBracesMatcherTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.705 sec - in com.github.drrb.rust.netbeans.highlighting.RustBracesMatcherTest
Running com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest
Compiling C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\target\test-data\compile\singlefile\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Compiling C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\target\test-data\compile\errorinotherfile\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Compiling C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\target\test-data\compile\siblingmoduleimport\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 7.78 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest
shouldExtractErrorForHighlighting(com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest)  Time elapsed: 6.539 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'compile/singlefile' and 'compile/singlefile.compile_errors'
Expected content is:

ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

but actual is:

ERROR (0,0 - 0,0) : can't find crate for `std`

It differs in the following things:

Actual content contains following lines which are missing in expected content:
    ERROR (0,0 - 0,0) : can't find crate for `std`
Expected content contains following lines which are missing in actual content:
    ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust$1.run(NetbeansWithRust.java:113)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCompileErrors(NetbeansWithRust.java:93)
    at com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest.shouldExtractErrorForHighlighting(RustCompileErrorHighlighterTest.java:32)

shouldOnlyShowErrorsFromThisFile(com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest)  Time elapsed: 0.651 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'compile/errorinotherfile' and 'compile/errorinotherfile.compile_errors'
Expected content is:

ERROR (1,4 - 1,18) : unresolved name `expected_error`

but actual is:

It differs in the following things:

Actual content contains following lines which are missing in expected content:

Expected content contains following lines which are missing in actual content:
    ERROR (1,4 - 1,18) : unresolved name `expected_error`

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust$1.run(NetbeansWithRust.java:113)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCompileErrors(NetbeansWithRust.java:93)
    at com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest.shouldOnlyShowErrorsFromThisFile(RustCompileErrorHighlighterTest.java:37)

Running com.github.drrb.rust.netbeans.highlighting.RustSemanticAnalyzerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.636 sec - in com.github.drrb.rust.netbeans.highlighting.RustSemanticAnalyzerTest
Running com.github.drrb.rust.netbeans.indexing.IndexItemSerializerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.654 sec - in com.github.drrb.rust.netbeans.indexing.IndexItemSerializerTest
Running com.github.drrb.rust.netbeans.indexing.RustIndexReaderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.012 sec - in com.github.drrb.rust.netbeans.indexing.RustIndexReaderTest
Running com.github.drrb.rust.netbeans.indexing.RustIndexWriterTest
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.383 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.indexing.RustIndexWriterTest
com.github.drrb.rust.netbeans.indexing.RustIndexWriterTest  Time elapsed: 0.831 sec  <<< ERROR!
java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
  Location:
    org/netbeans/modules/parsing/spi/indexing/Indexable$MyAccessor.<init>(Lorg/netbeans/modules/parsing/spi/indexing/Indexable$1;)V @36: invokespecial
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: 2a4d 1300 7eb8 0016 03bd 000d 1300 17b8
    0000010: 001b b800 213a 0419 04b2 0025 a500 0e2a
    0000020: 01c0 0027 b700 2aa7 0009 2cb7 01ee 0157
    0000030: b1
  Stackmap Table:
    full_frame(@42,{UninitializedThis,Object[#493],UninitializedThis,Top,Object[#13]},{})
    full_frame(@48,{Object[#2],Object[#493],Object[#2],Top,Object[#13]},{})

    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:190)
    at javassist.runtime.Desc.getClassObject(Desc.java:43)
    at javassist.runtime.Desc.getClassType(Desc.java:152)
    at javassist.runtime.Desc.getType(Desc.java:122)
    at javassist.runtime.Desc.getType(Desc.java:78)
    at org.netbeans.modules.parsing.spi.indexing.Indexable.<clinit>(Indexable.java:75)
    at sun.reflect.GeneratedSerializationConstructorAccessor10.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:40)
    at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:59)
    at org.mockito.internal.creation.jmock.ClassImposterizer.createProxy(ClassImposterizer.java:128)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:63)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:110)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:143)
    at org.powermock.api.extension.listener.AnnotationEnabler.standardInject(AnnotationEnabler.java:84)
    at org.powermock.api.extension.listener.AnnotationEnabler.beforeTestMethod(AnnotationEnabler.java:51)
    at org.powermock.tests.utils.impl.PowerMockTestNotifierImpl.notifyBeforeTestMethod(PowerMockTestNotifierImpl.java:90)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:292)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
    at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
    at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
    at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
    at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
    at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:118)
    at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:101)
    at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
    at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:53)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)

Running com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest
Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.198 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest
shouldAddClosingBracketIfTypingAnOpeningBracket(com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest)  Time elapsed: 0.018 sec  <<< ERROR!
java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
  Location:
    org/netbeans/spi/editor/typinghooks/TypedTextInterceptor$MutableContext.<init>(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/Position;Ljava/lang/String;Ljava/lang/String;)V @59: invokespecial
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: 2a2b 2c2d 3a08 3a07 3a06 3a05 12c4 b800
    0000010: 2706 bd00 0d59 0319 0653 5904 1907 5359
    0000020: 0519 0853 12c6 b800 19b8 00c9 3a0a 190a
    0000030: b200 34a5 000e 2a01 c000 cbb7 00ce a700
    0000040: 1019 0519 0619 0719 08b7 00d0 0157 2a01
    0000050: b500 3c2a 01b5 00b8 2a02 b500 b22a 1904
    0000060: b500 b8b1
  Stackmap Table:
    full_frame(@65,{UninitializedThis,Object[#192],Object[#194],Object[#15],Object[#15],UninitializedThis,Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})
    full_frame(@78,{Object[#2],Object[#192],Object[#194],Object[#15],Object[#15],Object[#2],Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})

    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
    at java.lang.Class.getDeclaredConstructors(Class.java:1901)
    at org.mockito.internal.creation.jmock.ClassImposterizer.setConstructorsAccessible(ClassImposterizer.java:75)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:70)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:110)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:143)
    at com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest.shouldAddClosingBracketIfTypingAnOpeningBracket(RustBracketCompleterTest.java:58)

shouldOverwriteClosingBracketIfItAlreadyExists(com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest)  Time elapsed: 0.004 sec  <<< ERROR!
java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
  Location:
    org/netbeans/spi/editor/typinghooks/TypedTextInterceptor$MutableContext.<init>(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/Position;Ljava/lang/String;Ljava/lang/String;)V @59: invokespecial
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: 2a2b 2c2d 3a08 3a07 3a06 3a05 12c4 b800
    0000010: 2706 bd00 0d59 0319 0653 5904 1907 5359
    0000020: 0519 0853 12c6 b800 19b8 00c9 3a0a 190a
    0000030: b200 34a5 000e 2a01 c000 cbb7 00ce a700
    0000040: 1019 0519 0619 0719 08b7 00d0 0157 2a01
    0000050: b500 3c2a 01b5 00b8 2a02 b500 b22a 1904
    0000060: b500 b8b1
  Stackmap Table:
    full_frame(@65,{UninitializedThis,Object[#192],Object[#194],Object[#15],Object[#15],UninitializedThis,Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})
    full_frame(@78,{Object[#2],Object[#192],Object[#194],Object[#15],Object[#15],Object[#2],Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})

    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
    at java.lang.Class.getDeclaredConstructors(Class.java:1901)
    at org.mockito.internal.creation.jmock.ClassImposterizer.setConstructorsAccessible(ClassImposterizer.java:75)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:70)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:110)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:143)
    at com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest.shouldOverwriteClosingBracketIfItAlreadyExists(RustBracketCompleterTest.java:66)

shouldIgnoreTypingSomethingElse(com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest)  Time elapsed: 0.004 sec  <<< ERROR!
java.lang.VerifyError: Bad <init> method call from inside of a branch
Exception Details:
  Location:
    org/netbeans/spi/editor/typinghooks/TypedTextInterceptor$MutableContext.<init>(Ljavax/swing/text/JTextComponent;Ljavax/swing/text/Position;Ljava/lang/String;Ljava/lang/String;)V @59: invokespecial
  Reason:
    Error exists in the bytecode
  Bytecode:
    0000000: 2a2b 2c2d 3a08 3a07 3a06 3a05 12c4 b800
    0000010: 2706 bd00 0d59 0319 0653 5904 1907 5359
    0000020: 0519 0853 12c6 b800 19b8 00c9 3a0a 190a
    0000030: b200 34a5 000e 2a01 c000 cbb7 00ce a700
    0000040: 1019 0519 0619 0719 08b7 00d0 0157 2a01
    0000050: b500 3c2a 01b5 00b8 2a02 b500 b22a 1904
    0000060: b500 b8b1
  Stackmap Table:
    full_frame(@65,{UninitializedThis,Object[#192],Object[#194],Object[#15],Object[#15],UninitializedThis,Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})
    full_frame(@78,{Object[#2],Object[#192],Object[#194],Object[#15],Object[#15],Object[#2],Object[#192],Object[#194],Object[#15],Top,Object[#13]},{})

    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
    at java.lang.Class.getDeclaredConstructors(Class.java:1901)
    at org.mockito.internal.creation.jmock.ClassImposterizer.setConstructorsAccessible(ClassImposterizer.java:75)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:70)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:110)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mock(PowerMockito.java:143)
    at com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest.shouldIgnoreTypingSomethingElse(RustBracketCompleterTest.java:77)

Running com.github.drrb.rust.netbeans.parsing.NetbeansRustLexerTest
<file in netbeans>:1:2: 1:5 error: unterminated block comment
<file in netbeans>:1  /*
                      ^~
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.068 sec - in com.github.drrb.rust.netbeans.parsing.NetbeansRustLexerTest
Running com.github.drrb.rust.netbeans.parsing.NetbeansRustParserTest
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.976 sec - in com.github.drrb.rust.netbeans.parsing.NetbeansRustParserTest
Running com.github.drrb.rust.netbeans.project.CargoConfigTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 6.175 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.project.CargoConfigTest
shouldFindCratesInCargoConfig(com.github.drrb.rust.netbeans.project.CargoConfigTest)  Time elapsed: 5.489 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/types' and 'crates/types.crates'
Expected content is:

crates:
    src/greetings.rs: DYLIB
    src/hello.rs: EXECUTABLE
sources:
    src/hello.rs:
        crate: src/hello.rs
    src/greetings.rs:
        crate: src/greetings.rs

but actual is:

crates:
    src\greetings.rs: DYLIB
    src\hello.rs: EXECUTABLE
sources:
    src\greetings.rs:
        crate: src\greetings.rs
    src\hello.rs:
        crate: src\hello.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content:
        src\greetings.rs: DYLIB
        src\hello.rs: EXECUTABLE
        src\greetings.rs:
            crate: src\greetings.rs
        src\hello.rs:
            crate: src\hello.rs
Expected content contains following lines which are missing in actual content:
        src/greetings.rs: DYLIB
        src/hello.rs: EXECUTABLE
        src/hello.rs:
            crate: src/hello.rs
        src/greetings.rs:
            crate: src/greetings.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:79)
    at com.github.drrb.rust.netbeans.project.CargoConfigTest.shouldFindCratesInCargoConfig(CargoConfigTest.java:36)

shouldFindCratesForEachSource(com.github.drrb.rust.netbeans.project.CargoConfigTest)  Time elapsed: 0.539 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/dependencies' and 'crates/dependencies.crates'
Expected content is:

crates:
    src/main.rs: EXECUTABLE
sources:
    src/orphan.rs:
        crate: src/orphan.rs
    src/main.rs:
        crate: src/main.rs
    src/other/mod.rs:
        crate: src/main.rs
    src/other/third.rs:
        crate: src/main.rs

but actual is:

crates:
    src\main.rs: EXECUTABLE
sources:
    src\orphan.rs:
        crate: src\orphan.rs
    src\main.rs:
        crate: src\main.rs
    src\other\third.rs:
        crate: src\main.rs
    src\other\mod.rs:
        crate: src\main.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content:
        src\main.rs: EXECUTABLE
        src\orphan.rs:
            crate: src\orphan.rs
        src\main.rs:
            crate: src\main.rs
        src\other\third.rs:
            crate: src\main.rs
        src\other\mod.rs:
            crate: src\main.rs
Expected content contains following lines which are missing in actual content:
        src/main.rs: EXECUTABLE
        src/orphan.rs:
            crate: src/orphan.rs
        src/main.rs:
            crate: src/main.rs
        src/other/mod.rs:
            crate: src/main.rs
        src/other/third.rs:
            crate: src/main.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:79)
    at com.github.drrb.rust.netbeans.project.CargoConfigTest.shouldFindCratesForEachSource(CargoConfigTest.java:41)

Running com.github.drrb.rust.netbeans.project.CargoTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec - in com.github.drrb.rust.netbeans.project.CargoTest
Running com.github.drrb.rust.netbeans.project.RustProjectActionProviderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.555 sec - in com.github.drrb.rust.netbeans.project.RustProjectActionProviderTest
Running com.github.drrb.rust.netbeans.project.RustProjectFactoryTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.959 sec - in com.github.drrb.rust.netbeans.project.RustProjectFactoryTest
Running com.github.drrb.rust.netbeans.project.RustProjectNodeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.946 sec - in com.github.drrb.rust.netbeans.project.RustProjectNodeTest
Running com.github.drrb.rust.netbeans.project.RustProjectTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.238 sec - in com.github.drrb.rust.netbeans.project.RustProjectTest
Running com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest
Compiling C:\Users\EXCALI~1\AppData\Local\Temp\junit6857755308686694031\test.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Compiling C:\Users\EXCALI~1\AppData\Local\Temp\junit4426893970997307363\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Compiling C:\Users\EXCALI~1\AppData\Local\Temp\junit6905509801553797626\test.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Compiling C:\Users\EXCALI~1\AppData\Local\Temp\junit8879755541563987139\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 3.546 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest
shouldCompileStringToExecutable(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)  Time elapsed: 0.024 sec  <<< FAILURE!
java.lang.AssertionError:
Expected: is an empty collection
     got: <[[ERROR] C:\Users\EXCALI~1\AppData\Local\Temp\junit6905509801553797626\test.rs 1,0-1,0: "can't find crate for `std`"]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest.shouldCompileStringToExecutable(RustCompilerTest.java:47)

shouldCompileMultiFileCrate(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)  Time elapsed: 0.014 sec  <<< FAILURE!
java.lang.AssertionError:
Expected: is an empty collection
     got: <[[ERROR] C:\Users\EXCALI~1\AppData\Local\Temp\junit8879755541563987139\main.rs 1,0-1,0: "can't find crate for `std`"]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest.shouldCompileMultiFileCrate(RustCompilerTest.java:64)

Running com.github.drrb.rust.netbeans.rustbridge.RustLexerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.978 sec - in com.github.drrb.rust.netbeans.rustbridge.RustLexerTest
Running com.github.drrb.rust.netbeans.rustbridge.RustParserTest
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\beta-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.761 sec - in com.github.drrb.rust.netbeans.rustbridge.RustParserTest
Running com.github.drrb.rust.netbeans.swing.PathsTableModelTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec - in com.github.drrb.rust.netbeans.swing.PathsTableModelTest

Results :

Failed tests:
  RustConfigurationTest.shouldReturnSavedLibrariesPaths:50
Expected: is <[/path/to/libraries, /path/to/more/libraries]>
     got: <[/path/to/libraries:/path/to/more/libraries]>

  RustCompileErrorHighlighterTest.shouldExtractErrorForHighlighting:32 Content does not match between 'compile/singlefile' and 'compile/singlefile.compile_errors'
Expected content is:

ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

but actual is:

ERROR (0,0 - 0,0) : can't find crate for `std`

It differs in the following things:

Actual content contains following lines which are missing in expected content:
    ERROR (0,0 - 0,0) : can't find crate for `std`
Expected content contains following lines which are missing in actual content:
    ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

  RustCompileErrorHighlighterTest.shouldOnlyShowErrorsFromThisFile:37 Content does not match between 'compile/errorinotherfile' and 'compile/errorinotherfile.compile_errors'
Expected content is:

ERROR (1,4 - 1,18) : unresolved name `expected_error`

but actual is:

It differs in the following things:

Actual content contains following lines which are missing in expected content:

Expected content contains following lines which are missing in actual content:
    ERROR (1,4 - 1,18) : unresolved name `expected_error`

  CargoConfigTest.shouldFindCratesForEachSource:41 Content does not match between 'crates/dependencies' and 'crates/dependencies.crates'
Expected content is:

crates:
    src/main.rs: EXECUTABLE
sources:
    src/orphan.rs:
        crate: src/orphan.rs
    src/main.rs:
        crate: src/main.rs
    src/other/mod.rs:
        crate: src/main.rs
    src/other/third.rs:
        crate: src/main.rs

but actual is:

crates:
    src\main.rs: EXECUTABLE
sources:
    src\orphan.rs:
        crate: src\orphan.rs
    src\main.rs:
        crate: src\main.rs
    src\other\third.rs:
        crate: src\main.rs
    src\other\mod.rs:
        crate: src\main.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content:
        src\main.rs: EXECUTABLE
        src\orphan.rs:
            crate: src\orphan.rs
        src\main.rs:
            crate: src\main.rs
        src\other\third.rs:
            crate: src\main.rs
        src\other\mod.rs:
            crate: src\main.rs
Expected content contains following lines which are missing in actual content:
        src/main.rs: EXECUTABLE
        src/orphan.rs:
            crate: src/orphan.rs
        src/main.rs:
            crate: src/main.rs
        src/other/mod.rs:
            crate: src/main.rs
        src/other/third.rs:
            crate: src/main.rs

  CargoConfigTest.shouldFindCratesInCargoConfig:36 Content does not match between 'crates/types' and 'crates/types.crates'
Expected content is:

crates:
    src/greetings.rs: DYLIB
    src/hello.rs: EXECUTABLE
sources:
    src/hello.rs:
        crate: src/hello.rs
    src/greetings.rs:
        crate: src/greetings.rs

but actual is:

crates:
    src\greetings.rs: DYLIB
    src\hello.rs: EXECUTABLE
sources:
    src\greetings.rs:
        crate: src\greetings.rs
    src\hello.rs:
        crate: src\hello.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content:
        src\greetings.rs: DYLIB
        src\hello.rs: EXECUTABLE
        src\greetings.rs:
            crate: src\greetings.rs
        src\hello.rs:
            crate: src\hello.rs
Expected content contains following lines which are missing in actual content:
        src/greetings.rs: DYLIB
        src/hello.rs: EXECUTABLE
        src/hello.rs:
            crate: src/hello.rs
        src/greetings.rs:
            crate: src/greetings.rs

  RustCompilerTest.shouldCompileMultiFileCrate:64
Expected: is an empty collection
     got: <[[ERROR] C:\Users\EXCALI~1\AppData\Local\Temp\junit8879755541563987139\main.rs 1,0-1,0: "can't find crate for `std`"]>

  RustCompilerTest.shouldCompileStringToExecutable:47
Expected: is an empty collection
     got: <[[ERROR] C:\Users\EXCALI~1\AppData\Local\Temp\junit6905509801553797626\test.rs 1,0-1,0: "can't find crate for `std`"]>

Tests in error:
  RustBracketCompleterTest.shouldAddClosingBracketIfTypingAnOpeningBracket:58 � Verify
  RustBracketCompleterTest.shouldIgnoreTypingSomethingElse:77 � Verify Bad <init...
  RustBracketCompleterTest.shouldOverwriteClosingBracketIfItAlreadyExists:66 � Verify
  JUnit4Provider.invoke:128->executeTestSet:153->executeWithRerun:173->execute:283 � Verify
  JUnit4Provider.invoke:128->executeTestSet:153->executeWithRerun:173->execute:283 � Verify

Tests run: 81, Failures: 7, Errors: 5, Skipped: 1

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:50 min
[INFO] Finished at: 2015-02-23T06:50:23-06:00
[INFO] Final Memory: 13M/302M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project rust-netbeans: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\excaliburhissheath\Desktop\rust-netbeans-master\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

and error output:

Feb 23, 2015 6:48:50 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Starting shouldIgnoreWhitespaceAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-2" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
        at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
        at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
        at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
        at java.lang.Thread.run(Thread.java:745)
Starting shouldInsertWhenInsertingBreakAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-4" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
        at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
        at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
        at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
        at java.lang.Thread.run(Thread.java:745)
Starting shouldIndentSameInsideBlock(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-5" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
        at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
        at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
        at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
        at java.lang.Thread.run(Thread.java:745)
Starting shouldFormatStruct(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Starting shouldIndentFurtherAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-6" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
        at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
        at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
        at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
        at java.lang.Thread.run(Thread.java:745)
Starting shouldFormatFunction(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Feb 23, 2015 6:49:28 AM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNING: Adding 'end' = '10' to index
Feb 23, 2015 6:49:29 AM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNING: Adding 'name' = 'Point' to index
Feb 23, 2015 6:49:29 AM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNING: Adding 'start' = '1' to index
Feb 23, 2015 6:49:34 AM com.github.drrb.rust.netbeans.indexing.RustIndexReader performQuery
WARNING: RustIndexReader.performQuery(struct-name, Po, PREFIX)
Feb 23, 2015 6:49:34 AM com.github.drrb.rust.netbeans.indexing.RustIndexReader performQuery
WARNING:    - returning 1 results
Feb 23, 2015 6:49:57 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Feb 23, 2015 6:50:12 AM com.github.drrb.rust.netbeans.project.RustProject$Info getDisplayName
WARNING: Failed to load project name from Cargo config
Starting shouldGiveMessagesOnNonParseCompileErrors(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Starting shouldOnlyReturnMessagesFromTargetFile(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Starting shouldCompileStringToExecutable(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Starting shouldCompileMultiFileCrate(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
randomPoison commented 9 years ago

Also, I know Java (though I'm not terribly experienced with Maven), so I can try to help out if you don't have easy access to a Windows development machine. If you have anything you want me to try or test out just let me know.

randomPoison commented 9 years ago

So I looked at the build error I got and found this thread that suggested that the problem had to do with java 8, so I tried downgrading and everything built just fine (woo). I was able to get the plugin installed into netbeans, but when I try to build a cargo project I get the following error:

java.io.IOException: CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
    at java.lang.ProcessImpl.start(ProcessImpl.java:136)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
Caused: java.io.IOException: Cannot run program "/bin/bash" (in directory "C:\Users\excaliburhissheath\workspace\rusty_window"): CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
[catch] at com.github.drrb.rust.netbeans.project.Shell$WatchingProcessRunner.run(Shell.java:72)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

It looks like you're trying to invoke bash which of course doesn't exist on Windows.

drrb commented 9 years ago

Thanks for the offer to help out. It's much appreciated. That's great news that it built on Windows! Does that mean the tests passed too? You're right about the Cargo support needing Bash. It runs Cargo that way so that it can set the working directory and use the $PATH. I've been planning to look into how NetBeans does that on Windows with Maven. Did the syntax highlighting (and other editor support) work for you?

EdorianDark commented 9 years ago

Syntax highlightining seems to work.

Most of the tests run here (Windows 7), now the test output:

cd C:\Users\leifeld\projekt\rust-netbeans; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_31" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 test\""
Scanning for projects...

------------------------------------------------------------------------
Building Rust NetBeans Plugin 1.0.0-SNAPSHOT
------------------------------------------------------------------------

--- build-helper-maven-plugin:1.9.1:add-source (compile-build-addon) @ rust-netbeans ---
Source directory: C:\Users\leifeld\projekt\rust-netbeans\src\build\java added.

--- maven-resources-plugin:2.6:resources (default-resources) @ rust-netbeans ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 22 resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ rust-netbeans ---
Nothing to compile - all classes are up to date

--- exec-maven-plugin:1.3.2:java (compile-rust-bridge) @ rust-netbeans ---
Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6.
No changes detected. Not recompiling Rust crates.

--- nbm-maven-plugin:3.13.2:manifest (default-manifest) @ rust-netbeans ---
NBM Plugin generates manifest
Adding on module's Class-Path:
    net.java.dev.jna:jna:jar:4.0.0
    org.pegdown:pegdown:jar:1.4.0
    org.parboiled:parboiled-java:jar:1.1.5
    org.parboiled:parboiled-core:jar:1.1.5
    org.ow2.asm:asm:jar:4.1
    org.ow2.asm:asm-tree:jar:4.1
    org.ow2.asm:asm-analysis:jar:4.1
    org.ow2.asm:asm-util:jar:4.1
    com.moandjiezana.toml:toml4j:jar:0.3.1
    com.google.code.gson:gson:jar:2.3
    com.google.guava:guava:jar:14.0.1

--- maven-resources-plugin:2.6:testResources (default-testResources) @ rust-netbeans ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources

--- maven-resources-plugin:2.6:copy-resources (set-up-unit-test-data) @ rust-netbeans ---
Using 'UTF-8' encoding to copy filtered resources.
Copying 59 resources

--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ rust-netbeans ---
Nothing to compile - all classes are up to date

--- maven-surefire-plugin:2.18.1:test (default-test) @ rust-netbeans ---
Surefire report directory: C:\Users\leifeld\projekt\rust-netbeans\target\surefire-reports
file.encoding cannot be set as system property, use <argLine>-Dfile.encoding=...<argLine> instead

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.github.drrb.rust.netbeans.classpath.ClasspathSettingProjectOpenedHookTest
Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: Bad return type
Exception Details:
  Location:
    javax/swing/plaf/metal/MetalLookAndFeel.getLayoutStyle()Ljavax/swing/LayoutStyle; @3: areturn
  Reason:
    Type 'javax/swing/plaf/metal/MetalLookAndFeel$MetalLayoutStyle' (current frame, stack[0]) is not assignable to 'javax/swing/LayoutStyle' (from method signature)
  Current Frame:
    bci: @3
    flags: { }
    locals: { 'javax/swing/plaf/metal/MetalLookAndFeel' }
    stack: { 'javax/swing/plaf/metal/MetalLookAndFeel$MetalLayoutStyle' }
  Bytecode:
    0x0000000: b807 49b0                              

    at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
    at javax.swing.UIManager.initialize(UIManager.java:1459)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
    at javax.swing.UIManager.getDefaults(UIManager.java:659)
    at javax.swing.UIManager.getBoolean(UIManager.java:867)
    at org.openide.util.ImageUtilities.isDarkLaF(ImageUtilities.java:206)
    at org.openide.util.ImageUtilities.loadImage(ImageUtilities.java:164)
    at org.netbeans.core.startup.Splash.loadContent(Splash.java:238)
    at org.netbeans.core.startup.Splash$SplashPainter.init(Splash.java:376)
    at org.netbeans.core.startup.Splash$SplashPainter$1.run(Splash.java:423)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:702)
    at java.awt.EventQueue$3.run(EventQueue.java:696)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.841 sec - in com.github.drrb.rust.netbeans.classpath.ClasspathSettingProjectOpenedHookTest
Running com.github.drrb.rust.netbeans.configuration.RustConfigurationTest
Feb 23, 2015 8:59:51 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.configuration.RustConfigurationTest
shouldReturnSavedLibrariesPaths(com.github.drrb.rust.netbeans.configuration.RustConfigurationTest)  Time elapsed: 0.01 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is <[/path/to/libraries, /path/to/more/libraries]>
     got: <[/path/to/libraries:/path/to/more/libraries]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.configuration.RustConfigurationTest.shouldReturnSavedLibrariesPaths(RustConfigurationTest.java:50)

Running com.github.drrb.rust.netbeans.folding.RustFoldTypeProviderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec - in com.github.drrb.rust.netbeans.folding.RustFoldTypeProviderTest
Running com.github.drrb.rust.netbeans.formatting.RustFormatterTest
Starting shouldInsertWhenInsertingBreakAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-2" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
    at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
    at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
    at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
    at java.lang.Thread.run(Thread.java:745)
Starting shouldIgnoreWhitespaceAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-4" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
    at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
    at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
    at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
    at java.lang.Thread.run(Thread.java:745)
Starting shouldFormatStruct(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Starting shouldIndentFurtherAfterBrace(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-5" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
    at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
    at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
    at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
    at java.lang.Thread.run(Thread.java:745)
Starting shouldIndentSameInsideBlock(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Exception in thread "Thread-6" java.lang.AssertionError: There should always be only one SideBarFactoriesProvider; provider-count=0, mimeType=text/x-rust-source, providers: []
    at org.netbeans.modules.editor.impl.CustomizableSideBar.getFactoriesMap(CustomizableSideBar.java:294)
    at org.netbeans.modules.editor.NbEditorKit.call(NbEditorKit.java:1277)
    at org.netbeans.modules.csl.api.test.CslTestBase$14.run(CslTestBase.java:2346)
    at java.lang.Thread.run(Thread.java:745)
Starting shouldFormatFunction(com.github.drrb.rust.netbeans.formatting.RustFormatterTest)
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.01 sec - in com.github.drrb.rust.netbeans.formatting.RustFormatterTest
Running com.github.drrb.rust.netbeans.highlighting.RustBracesMatcherTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.33 sec - in com.github.drrb.rust.netbeans.highlighting.RustBracesMatcherTest
Running com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest
Compiling C:\Users\leifeld\projekt\rust-netbeans\target\test-data\compile\singlefile\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Compiling C:\Users\leifeld\projekt\rust-netbeans\target\test-data\compile\siblingmoduleimport\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Compiling C:\Users\leifeld\projekt\rust-netbeans\target\test-data\compile\errorinotherfile\src\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.85 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest
shouldExtractErrorForHighlighting(com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest)  Time elapsed: 1.58 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'compile/singlefile' and 'compile/singlefile.compile_errors'
Expected content is:

ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

but actual is:

ERROR (0,0 - 0,0) : can't find crate for `std`

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
    ERROR (0,0 - 0,0) : can't find crate for `std`
Expected content contains following lines which are missing in actual content: 
    ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust$1.run(NetbeansWithRust.java:113)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCompileErrors(NetbeansWithRust.java:93)
    at com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest.shouldExtractErrorForHighlighting(RustCompileErrorHighlighterTest.java:32)

shouldOnlyShowErrorsFromThisFile(com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest)  Time elapsed: 0.09 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'compile/errorinotherfile' and 'compile/errorinotherfile.compile_errors'
Expected content is:

ERROR (1,4 - 1,18) : unresolved name `expected_error`

but actual is:

It differs in the following things:

Actual content contains following lines which are missing in expected content: 

Expected content contains following lines which are missing in actual content: 
    ERROR (1,4 - 1,18) : unresolved name `expected_error`

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust$1.run(NetbeansWithRust.java:113)
    at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:598)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
    at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206)
    at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203)
    at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
    at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
    at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
    at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203)
    at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCompileErrors(NetbeansWithRust.java:93)
    at com.github.drrb.rust.netbeans.highlighting.RustCompileErrorHighlighterTest.shouldOnlyShowErrorsFromThisFile(RustCompileErrorHighlighterTest.java:37)

Running com.github.drrb.rust.netbeans.highlighting.RustSemanticAnalyzerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.709 sec - in com.github.drrb.rust.netbeans.highlighting.RustSemanticAnalyzerTest
Running com.github.drrb.rust.netbeans.indexing.IndexItemSerializerTest
Feb 23, 2015 9:00:38 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'end' = '10' to index
Feb 23, 2015 9:00:38 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'name' = 'Point' to index
Feb 23, 2015 9:00:38 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'start' = '1' to index
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.47 sec - in com.github.drrb.rust.netbeans.indexing.IndexItemSerializerTest
Running com.github.drrb.rust.netbeans.indexing.RustIndexReaderTest
Feb 23, 2015 9:00:40 PM com.github.drrb.rust.netbeans.indexing.RustIndexReader performQuery
WARNUNG: RustIndexReader.performQuery(struct-name, Po, PREFIX)
Feb 23, 2015 9:00:40 PM com.github.drrb.rust.netbeans.indexing.RustIndexReader performQuery
WARNUNG:    - returning 1 results
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.6 sec - in com.github.drrb.rust.netbeans.indexing.RustIndexReaderTest
Running com.github.drrb.rust.netbeans.indexing.RustIndexWriterTest
Feb 23, 2015 9:00:42 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'struct-module' = 'xxx' to index
Feb 23, 2015 9:00:42 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'struct-name-lowercase' = 'point' to index
Feb 23, 2015 9:00:42 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'struct-offset-end' = '20' to index
Feb 23, 2015 9:00:42 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'struct-name' = 'Point' to index
Feb 23, 2015 9:00:42 PM com.github.drrb.rust.netbeans.indexing.IndexItemSerializer serialize
WARNUNG: Adding 'struct-offset-start' = '10' to index
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec - in com.github.drrb.rust.netbeans.indexing.RustIndexWriterTest
Running com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest
Exception in thread "AWT-EventQueue-0" java.lang.VerifyError: Bad return type
Exception Details:
  Location:
    javax/swing/plaf/metal/MetalLookAndFeel.getLayoutStyle()Ljavax/swing/LayoutStyle; @3: areturn
  Reason:
    Type 'javax/swing/plaf/metal/MetalLookAndFeel$MetalLayoutStyle' (current frame, stack[0]) is not assignable to 'javax/swing/LayoutStyle' (from method signature)
  Current Frame:
    bci: @3
    flags: { }
    locals: { 'javax/swing/plaf/metal/MetalLookAndFeel' }
    stack: { 'javax/swing/plaf/metal/MetalLookAndFeel$MetalLayoutStyle' }
  Bytecode:
    0x0000000: b807 49b0                              

    at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
    at javax.swing.UIManager.initialize(UIManager.java:1459)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
    at javax.swing.UIManager.getDefaults(UIManager.java:659)
    at javax.swing.UIManager.getBoolean(UIManager.java:867)
    at org.openide.util.ImageUtilities.isDarkLaF(ImageUtilities.java:206)
    at org.openide.util.ImageUtilities.loadImage(ImageUtilities.java:164)
    at org.netbeans.core.startup.Splash.loadContent(Splash.java:238)
    at org.netbeans.core.startup.Splash$SplashPainter.init(Splash.java:376)
    at org.netbeans.core.startup.Splash$SplashPainter$1.run(Splash.java:423)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:702)
    at java.awt.EventQueue$3.run(EventQueue.java:696)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.68 sec - in com.github.drrb.rust.netbeans.keypress.RustBracketCompleterTest
Running com.github.drrb.rust.netbeans.parsing.NetbeansRustLexerTest
<file in netbeans>:1:2: 1:5 error: unterminated block comment
<file in netbeans>:1  /*
                      ^~
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.35 sec - in com.github.drrb.rust.netbeans.parsing.NetbeansRustLexerTest
Running com.github.drrb.rust.netbeans.parsing.NetbeansRustParserTest
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.521 sec - in com.github.drrb.rust.netbeans.parsing.NetbeansRustParserTest
Running com.github.drrb.rust.netbeans.project.CargoConfigTest
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.62 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.project.CargoConfigTest
shouldFindCratesForEachSource(com.github.drrb.rust.netbeans.project.CargoConfigTest)  Time elapsed: 1.49 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/dependencies' and 'crates/dependencies.crates'
Expected content is:

crates:
    src/main.rs: EXECUTABLE
sources:
    src/orphan.rs:
        crate: src/orphan.rs
    src/main.rs:
        crate: src/main.rs
    src/other/mod.rs:
        crate: src/main.rs
    src/other/third.rs:
        crate: src/main.rs

but actual is:

crates:
    src\main.rs: EXECUTABLE
sources:
    src\main.rs:
        crate: src\main.rs
    src\orphan.rs:
        crate: src\orphan.rs
    src\other\third.rs:
        crate: src\main.rs
    src\other\mod.rs:
        crate: src\main.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\main.rs: EXECUTABLE
        src\main.rs:
            crate: src\main.rs
        src\orphan.rs:
            crate: src\orphan.rs
        src\other\third.rs:
            crate: src\main.rs
        src\other\mod.rs:
            crate: src\main.rs
Expected content contains following lines which are missing in actual content: 
        src/main.rs: EXECUTABLE
        src/orphan.rs:
            crate: src/orphan.rs
        src/main.rs:
            crate: src/main.rs
        src/other/mod.rs:
            crate: src/main.rs
        src/other/third.rs:
            crate: src/main.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:79)
    at com.github.drrb.rust.netbeans.project.CargoConfigTest.shouldFindCratesForEachSource(CargoConfigTest.java:41)

shouldFindCratesInCargoConfig(com.github.drrb.rust.netbeans.project.CargoConfigTest)  Time elapsed: 0.09 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/types' and 'crates/types.crates'
Expected content is:

crates:
    src/greetings.rs: DYLIB
    src/hello.rs: EXECUTABLE
sources:
    src/hello.rs:
        crate: src/hello.rs
    src/greetings.rs:
        crate: src/greetings.rs

but actual is:

crates:
    src\greetings.rs: DYLIB
    src\hello.rs: EXECUTABLE
sources:
    src\greetings.rs:
        crate: src\greetings.rs
    src\hello.rs:
        crate: src\hello.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\greetings.rs: DYLIB
        src\hello.rs: EXECUTABLE
        src\greetings.rs:
            crate: src\greetings.rs
        src\hello.rs:
            crate: src\hello.rs
Expected content contains following lines which are missing in actual content: 
        src/greetings.rs: DYLIB
        src/hello.rs: EXECUTABLE
        src/hello.rs:
            crate: src/hello.rs
        src/greetings.rs:
            crate: src/greetings.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:79)
    at com.github.drrb.rust.netbeans.project.CargoConfigTest.shouldFindCratesInCargoConfig(CargoConfigTest.java:36)

Running com.github.drrb.rust.netbeans.project.CargoTest
Feb 23, 2015 9:00:57 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec - in com.github.drrb.rust.netbeans.project.CargoTest
Running com.github.drrb.rust.netbeans.project.RustProjectActionProviderTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec - in com.github.drrb.rust.netbeans.project.RustProjectActionProviderTest
Running com.github.drrb.rust.netbeans.project.RustProjectFactoryTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.36 sec - in com.github.drrb.rust.netbeans.project.RustProjectFactoryTest
Running com.github.drrb.rust.netbeans.project.RustProjectNodeTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.71 sec - in com.github.drrb.rust.netbeans.project.RustProjectNodeTest
Running com.github.drrb.rust.netbeans.project.RustProjectTest
Feb 23, 2015 9:01:00 PM com.github.drrb.rust.netbeans.project.RustProject$Info getDisplayName
WARNUNG: Failed to load project name from Cargo config
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.56 sec - in com.github.drrb.rust.netbeans.project.RustProjectTest
Running com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest
Starting shouldGiveMessagesOnNonParseCompileErrors(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Compiling C:\Users\leifeld\AppData\Local\Temp\junit8089069149557848334\test.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Starting shouldOnlyReturnMessagesFromTargetFile(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Compiling C:\Users\leifeld\AppData\Local\Temp\junit7108067706022473009\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Starting shouldCompileMultiFileCrate(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Compiling C:\Users\leifeld\AppData\Local\Temp\junit5633489262476997024\main.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Starting shouldCompileStringToExecutable(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)
Compiling C:\Users\leifeld\AppData\Local\Temp\junit2682202788782832607\test.rs...
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:151
Tests run: 4, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.93 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest
shouldCompileMultiFileCrate(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)  Time elapsed: 0.01 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is an empty collection
     got: <[[ERROR] C:\Users\leifeld\AppData\Local\Temp\junit5633489262476997024\main.rs 1,0-1,0: "can't find crate for `std`"]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest.shouldCompileMultiFileCrate(RustCompilerTest.java:64)

shouldCompileStringToExecutable(com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest)  Time elapsed: 0 sec  <<< FAILURE!
java.lang.AssertionError: 
Expected: is an empty collection
     got: <[[ERROR] C:\Users\leifeld\AppData\Local\Temp\junit2682202788782832607\test.rs 1,0-1,0: "can't find crate for `std`"]>

    at org.junit.Assert.assertThat(Assert.java:780)
    at org.junit.Assert.assertThat(Assert.java:738)
    at com.github.drrb.rust.netbeans.rustbridge.RustCompilerTest.shouldCompileStringToExecutable(RustCompilerTest.java:47)

Running com.github.drrb.rust.netbeans.rustbridge.RustLexerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.31 sec - in com.github.drrb.rust.netbeans.rustbridge.RustLexerTest
Running com.github.drrb.rust.netbeans.rustbridge.RustParserTest
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
SUREFIRE-859: thread '<unnamed>' panicked at 'Box<Any>', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libsyntax\diagnostic.rs:92
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec - in com.github.drrb.rust.netbeans.rustbridge.RustParserTest
Running com.github.drrb.rust.netbeans.swing.PathsTableModelTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in com.github.drrb.rust.netbeans.swing.PathsTableModelTest

Results :

Failed tests: 
  RustConfigurationTest.shouldReturnSavedLibrariesPaths:50 
Expected: is <[/path/to/libraries, /path/to/more/libraries]>
     got: <[/path/to/libraries:/path/to/more/libraries]>

  RustCompileErrorHighlighterTest.shouldExtractErrorForHighlighting:32 Content does not match between 'compile/singlefile' and 'compile/singlefile.compile_errors'
Expected content is:

ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

but actual is:

ERROR (0,0 - 0,0) : can't find crate for `std`

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
    ERROR (0,0 - 0,0) : can't find crate for `std`
Expected content contains following lines which are missing in actual content: 
    ERROR (1,4 - 1,16) : macro undefined: 'printtheline!'

  RustCompileErrorHighlighterTest.shouldOnlyShowErrorsFromThisFile:37 Content does not match between 'compile/errorinotherfile' and 'compile/errorinotherfile.compile_errors'
Expected content is:

ERROR (1,4 - 1,18) : unresolved name `expected_error`

but actual is:

It differs in the following things:

Actual content contains following lines which are missing in expected content: 

Expected content contains following lines which are missing in actual content: 
    ERROR (1,4 - 1,18) : unresolved name `expected_error`

  CargoConfigTest.shouldFindCratesForEachSource:41 Content does not match between 'crates/dependencies' and 'crates/dependencies.crates'
Expected content is:

crates:
    src/main.rs: EXECUTABLE
sources:
    src/orphan.rs:
        crate: src/orphan.rs
    src/main.rs:
        crate: src/main.rs
    src/other/mod.rs:
        crate: src/main.rs
    src/other/third.rs:
        crate: src/main.rs

but actual is:

crates:
    src\main.rs: EXECUTABLE
sources:
    src\main.rs:
        crate: src\main.rs
    src\orphan.rs:
        crate: src\orphan.rs
    src\other\third.rs:
        crate: src\main.rs
    src\other\mod.rs:
        crate: src\main.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\main.rs: EXECUTABLE
        src\main.rs:
            crate: src\main.rs
        src\orphan.rs:
            crate: src\orphan.rs
        src\other\third.rs:
            crate: src\main.rs
        src\other\mod.rs:
            crate: src\main.rs
Expected content contains following lines which are missing in actual content: 
        src/main.rs: EXECUTABLE
        src/orphan.rs:
            crate: src/orphan.rs
        src/main.rs:
            crate: src/main.rs
        src/other/mod.rs:
            crate: src/main.rs
        src/other/third.rs:
            crate: src/main.rs

  CargoConfigTest.shouldFindCratesInCargoConfig:36 Content does not match between 'crates/types' and 'crates/types.crates'
Expected content is:

crates:
    src/greetings.rs: DYLIB
    src/hello.rs: EXECUTABLE
sources:
    src/hello.rs:
        crate: src/hello.rs
    src/greetings.rs:
        crate: src/greetings.rs

but actual is:

crates:
    src\greetings.rs: DYLIB
    src\hello.rs: EXECUTABLE
sources:
    src\greetings.rs:
        crate: src\greetings.rs
    src\hello.rs:
        crate: src\hello.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\greetings.rs: DYLIB
        src\hello.rs: EXECUTABLE
        src\greetings.rs:
            crate: src\greetings.rs
        src\hello.rs:
            crate: src\hello.rs
Expected content contains following lines which are missing in actual content: 
        src/greetings.rs: DYLIB
        src/hello.rs: EXECUTABLE
        src/hello.rs:
            crate: src/hello.rs
        src/greetings.rs:
            crate: src/greetings.rs

  RustCompilerTest.shouldCompileMultiFileCrate:64 
Expected: is an empty collection
     got: <[[ERROR] C:\Users\leifeld\AppData\Local\Temp\junit5633489262476997024\main.rs 1,0-1,0: "can't find crate for `std`"]>

  RustCompilerTest.shouldCompileStringToExecutable:47 
Expected: is an empty collection
     got: <[[ERROR] C:\Users\leifeld\AppData\Local\Temp\junit2682202788782832607\test.rs 1,0-1,0: "can't find crate for `std`"]>

Tests run: 79, Failures: 7, Errors: 0, Skipped: 1

------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1:27.175s
Finished at: Mon Feb 23 21:01:11 CET 2015
Final Memory: 13M/352M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project rust-netbeans: There are test failures.

Please refer to C:\Users\leifeld\projekt\rust-netbeans\target\surefire-reports for the individual test results.
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
randomPoison commented 9 years ago

Tests all passed once I downgraded to Java 7. Syntax highlighting seems to be working correctly:

rust-netbeans

Brace matching and comment toggling work just fine, as well as auto-indentation. Linting and error highlighting seem to also work. So beyond being unable to build I haven't run into any other problems.

EdorianDark commented 9 years ago

The following change works:

diff --git a/src/main/java/com/github/drrb/rust/netbeans/project/Shell.java b/src/main/java/com/github/drrb/rust/netbeans/project/Shell.java
index bda4bba..b19fd3c 100644
--- a/src/main/java/com/github/drrb/rust/netbeans/project/Shell.java
+++ b/src/main/java/com/github/drrb/rust/netbeans/project/Shell.java
@@ -50,8 +50,7 @@ public class Shell {
         IoColorLines.printDebug(io, commandLine);
         //TODO: make this work on Windows too
         ProcessBuilder processBuilder = new ProcessBuilder()
-                .command("/bin/bash", "-lc", commandLine)
-                .directory(workingDir);
+                .command("CMD", "/C", commandLine);
         ExecutorTask task = ExecutionEngine.getDefault().execute(name, new WatchingProcessRunner(processBuilder, io), io);
         task.addTaskListener(new CleanUpStreamsWhenFinished(io));
     }

But then the path of cargo is wrong ("C:\Rust\cargo.exe" instead of "C:\Rust\bincargo.exe").

Vectrobe commented 9 years ago

directories would have to be configurable as the required binaries are not guaranteed to be in the default location (eg; on a different disk and/or under other directories)

drrb commented 9 years ago

Thanks @excaliburHisSheath and @EdorianDark for the investigation and feedback. I'm very happy that the editor features are working properly on Windows! I'll look into those test failures to get the build more reliable. I've opened #9 and #10 to track the Cargo issues. Thanks for the diff @EdorianDark. I'll update the implementation to work on Windows too. @Paul17041993 and @EdorianDark, the Cargo and library paths should be currently configurable through the Rust tab in the NetBeans preferences.

drrb commented 9 years ago

I've updated the Cargo support to use cmd on Windows, and changed the default path of Cargo to C:\Rust\bin\cargo.exe. I've also fixed some of those tests that relied on filesystem ordering. @excaliburHisSheath or @EdorianDark, would you mind confirming that it works for you?

Also, from those test results, it seems that the compiler might not be able to find the Rust libraries. Can you please let me know the path to the directory where Rust DLLs are installed on Windows by default?

randomPoison commented 9 years ago

I just downloaded the latest version, it compiles but tests fail:

-------------------------------------------------------------------------------
Test set: com.github.drrb.rust.netbeans.cargo.CargoConfigTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 8.021 sec <<< FAILURE! - in com.github.drrb.rust.netbeans.cargo.CargoConfigTest
shouldFindCratesInCargoConfig(com.github.drrb.rust.netbeans.cargo.CargoConfigTest)  Time elapsed: 7.208 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/types' and 'crates/types.crates'
Expected content is:

crates:
    src/greetings.rs: DYLIB
    src/hello.rs: EXECUTABLE
sources:
    src/greetings.rs:
        crate: src/greetings.rs
    src/hello.rs:
        crate: src/hello.rs

but actual is:

crates:
    src\greetings.rs: DYLIB
    src\hello.rs: EXECUTABLE
sources:
    src\greetings.rs:
        crate: src\greetings.rs
    src\hello.rs:
        crate: src\hello.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\greetings.rs: DYLIB
        src\hello.rs: EXECUTABLE
        src\greetings.rs:
            crate: src\greetings.rs
        src\hello.rs:
            crate: src\hello.rs
Expected content contains following lines which are missing in actual content: 
        src/greetings.rs: DYLIB
        src/hello.rs: EXECUTABLE
        src/greetings.rs:
            crate: src/greetings.rs
        src/hello.rs:
            crate: src/hello.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:82)
    at com.github.drrb.rust.netbeans.cargo.CargoConfigTest.shouldFindCratesInCargoConfig(CargoConfigTest.java:36)

shouldFindCratesForEachSource(com.github.drrb.rust.netbeans.cargo.CargoConfigTest)  Time elapsed: 0.666 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Content does not match between 'crates/dependencies' and 'crates/dependencies.crates'
Expected content is:

crates:
    src/main.rs: EXECUTABLE
sources:
    src/main.rs:
        crate: src/main.rs
    src/orphan.rs:
        crate: src/orphan.rs
    src/other/mod.rs:
        crate: src/main.rs
    src/other/third.rs:
        crate: src/main.rs

but actual is:

crates:
    src\main.rs: EXECUTABLE
sources:
    src\main.rs:
        crate: src\main.rs
    src\orphan.rs:
        crate: src\orphan.rs
    src\other\mod.rs:
        crate: src\main.rs
    src\other\third.rs:
        crate: src\main.rs

It differs in the following things:

Actual content contains following lines which are missing in expected content: 
        src\main.rs: EXECUTABLE
        src\main.rs:
            crate: src\main.rs
        src\orphan.rs:
            crate: src\orphan.rs
        src\other\mod.rs:
            crate: src\main.rs
        src\other\third.rs:
            crate: src\main.rs
Expected content contains following lines which are missing in actual content: 
        src/main.rs: EXECUTABLE
        src/main.rs:
            crate: src/main.rs
        src/orphan.rs:
            crate: src/orphan.rs
        src/other/mod.rs:
            crate: src/main.rs
        src/other/third.rs:
            crate: src/main.rs

    at junit.framework.Assert.fail(Assert.java:50)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:682)
    at org.netbeans.modules.csl.api.test.CslTestBase.assertDescriptionMatches(CslTestBase.java:623)
    at org.netbeans.modules.csl.api.test.CslTestHelper.assertDescriptionMatches(CslTestHelper.java:180)
    at com.github.drrb.rust.netbeans.test.NetbeansWithRust.checkCrates(NetbeansWithRust.java:82)
    at com.github.drrb.rust.netbeans.cargo.CargoConfigTest.shouldFindCratesForEachSource(CargoConfigTest.java:41)

It looks like one of the tests isn't taking into account Windows using \ for path separation.

drrb commented 9 years ago

Great, thanks! Updated in dc95fc3. I'm currently trying to build it on Appveyor.

drrb commented 9 years ago

Build on Appveyor now passes with Java 7 and Java 8 (64 bit). Thanks for your help everyone! I'll close this issue now. Please feel free to open other, more specific issues if there are problems.