Closed qmmp123 closed 6 years ago
I have some problem on OS X El Capitan.
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...
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?
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:
And then nothing happen. How to fix it?