OmniSharp / omnisharp-sublime

C# IDE Plugin for Sublime Text 3
http://omnisharp-sublime.readthedocs.org/en/latest/
MIT License
551 stars 64 forks source link

Test Execution freeze #219

Closed qmmp123 closed 6 years ago

qmmp123 commented 8 years ago

My OC is ArchLinux when build.sh run tests, 1 test finished successful, then run OmniSharp.Dnx.Tests and nothing happen.

here is part of log:

=== TEST EXECUTION SUMMARY === OmniSharp.Bootstrap.Tests Total: 4, Errors: 0, Failed: 0, Skipped: 0, Time: 0,384s ~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn ~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Dnx.Tests ~/.config/sublime-text-3/Packages/OmniSharp/omnisharp-roslyn xUnit.net DNX test runner (64-bit DNX 4.5.1) Copyright (C) 2015 Outercurve Foundation.

Discovering: OmniSharp.Dnx.Tests Discovered: OmniSharp.Dnx.Tests Starting: OmniSharp.Dnx.Tests

And then nothing happen. How to fix it?

gordio commented 8 years ago

I have some problem on OS X El Capitan.

HagamosVideojuegos commented 8 years ago

I have the same problem too, here my stacktrace

~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Dnx.Tests ~/OmniSharp/omnisharp-roslyn
xUnit.net DNX test runner (64-bit DNX 4.5.1)
Copyright (C) 2015 Outercurve Foundation.

Discovering: OmniSharp.Dnx.Tests
Discovered:  OmniSharp.Dnx.Tests
Starting:    OmniSharp.Dnx.Tests

OmniSharp.Tests.CurrentProjectFacts.CanGetDnxProject [FAIL]
      Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException : ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(115,28): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(116,30): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(173,28): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
     ~/OmniSharp/omnisharp-roslyn/tests/OmniSharp.Tests/TestHelpers.cs(174,30): error CS0619: 'MetadataReference.CreateFromAssembly(Assembly)' is obsolete: 'Use CreateFromFile(assembly.Location) instead'
      Stack Trace:

Yes, the Stack Trace is void...

nfantone commented 8 years ago

Came here for this. I've tried commenting out the problematic Dnx test case in omnisharp-roslyn/build.sh, like so:

# pushd tests/OmniSharp.Dnx.Tests
# dnx . test -parallel none
# rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
# popd

But then, the next set of tests failed:

OmniSharp.Tests.SolutionFileTests.Can_load_unity_solution_file [FAIL]
      Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException : /Users/nfantone/Library/Application Support/Sublime Text 3/Packages/OmniSharp/omnisharp-roslyn/src/OmniSharp.MSBuild/MSBuildProjectSystem.cs(321,49): error CS7036: There is no argument given that corresponds to the required formal parameter 'assemblyLoader' of 'AnalyzerFileReference.AnalyzerFileReference(string, IAnalyzerAssemblyLoader)'

...

   OmniSharp.MSBuild.Tests  Total: 6, Errors: 0, Failed: 6, Skipped: 0, Time: 0.624s

I believe this may be related to the use of an outdated API? Maybe incompatible .NET or mono versions?