Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Compiling problems (on linux) #15

Closed
chtenb opened this issue Apr 28, 2013 · 8 comments
Closed

Compiling problems (on linux) #15

chtenb opened this issue Apr 28, 2013 · 8 comments

Comments

@chtenb
Copy link
Contributor

chtenb commented Apr 28, 2013

I tried to compile OmniSharp in order to run the server, without success.
Running xbuild (mono equivalent of msbuild) in the plugin directory gives the following errors.

XBuild Engine Version 2.10.8.1
Mono, Version 2.10.8.1
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.
        Configuration: Debug Platform: AnyCPU
    Could not load type 'NuGet.Commands.ProjectFactory' from assembly 'NuGet, Version=2.2.31210.9045, Culture=neutral, PublicKeyToken=null'.
/home/chiel/.vim/bundle/Omnisharp/.nuget/NuGet.targets: error : Command 'mono --runtime=v4.0.30319 /home/chiel/.vim/bundle/Omnisharp/.nuget/NuGet.exe install "packages.config" -source ""   -o "/home/chiel/.vim/bundle/Omnisharp/packages"' exited with code: 1.
Configuration: Debug Platform: AnyCPU
Configuration: Debug Platform: AnyCPU
Could not load type 'NuGet.Commands.ProjectFactory' from assembly 'NuGet, Version=2.2.31210.9045, Culture=neutral, PublicKeyToken=null'.
/home/chiel/.vim/bundle/Omnisharp/.nuget/NuGet.targets: error : Command 'mono --runtime=v4.0.30319 /home/chiel/.vim/bundle/Omnisharp/.nuget/NuGet.exe install "packages.config" -source ""   -o "/home/chiel/.vim/bundle/Omnisharp/packages"' exited with code: 1.

What is going wrong?

@nosami
Copy link
Contributor

nosami commented Apr 28, 2013

My xbuild output is as follows :-

XBuild Engine Version 2.10.8.0
Mono, Version 2.10.8.0
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 28/04/2013 15:26:52.
__________________________________________________
Project "/home/jason/src/Omnisharp/OmniSharp.sln" (default target(s)):
    Target ValidateSolutionConfiguration:
        Building solution configuration "Debug|Any CPU".
    Target Build:
        Project "/home/jason/src/Omnisharp/Microsoft.Build.Evaluation/Microsoft.Build.Evaluation.csproj" (default target(s)):
            Target PrepareForBuild:
                Configuration: Debug Platform: AnyCPU
            Target GenerateSatelliteAssemblies:
            No input files were specified for target GenerateSatelliteAssemblies, skipping.
            Target CoreCompile:
            Skipping target "CoreCompile" because its outputs are up-to-date.
        Done building project "/home/jason/src/Omnisharp/Microsoft.Build.Evaluation/Microsoft.Build.Evaluation.csproj".
        Project "/home/jason/src/Omnisharp/OmniSharp/OmniSharp.csproj" (default target(s)):
            Target PrepareForBuild:
                Configuration: Debug Platform: AnyCPU
            Target RestorePackages:
                Executing: mono --runtime=v4.0.30319 /home/jason/src/Omnisharp/.nuget/NuGet.exe install "packages.config" -source ""   -o "/home/jason/src/Omnisharp/packages"
                Successfully installed 'Mono.Cecil 0.9.5.4'.
                Successfully installed 'Nancy 0.16.1'.
                Successfully installed 'Nancy.Hosting.Self 0.16.1'.
                Successfully installed 'ICSharpCode.NRefactory 5.3.0'.
            Target GenerateSatelliteAssemblies:
            No input files were specified for target GenerateSatelliteAssemblies, skipping.
            Target CoreCompile:
            Skipping target "CoreCompile" because its outputs are up-to-date.
            Target _CopyAppConfigFile:
            Skipping target "_CopyAppConfigFile" because its outputs are up-to-date.
        Done building project "/home/jason/src/Omnisharp/OmniSharp/OmniSharp.csproj".
        Project "/home/jason/src/Omnisharp/OmniSharp.Tests/OmniSharp.Tests.csproj" (default target(s)):
            Target PrepareForBuild:
                Configuration: Debug Platform: AnyCPU
            Target RestorePackages:
                Executing: mono --runtime=v4.0.30319 /home/jason/src/Omnisharp/.nuget/NuGet.exe install "packages.config" -source ""   -o "/home/jason/src/Omnisharp/packages"
                Successfully installed 'Nancy.Testing 0.16.1'.
                Successfully installed 'NUnit 2.6.2'.
                Successfully installed 'Nancy 0.16.1'.
                Successfully installed 'ICSharpCode.NRefactory 5.3.0'.
                Successfully installed 'CsQuery 1.3.4'.
                Successfully installed 'Should 1.1.12.0'.
                Successfully installed 'Mono.Cecil 0.9.5.4'.
            Target ResolveAssemblyReferences:
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Nancy.Authentication.Forms, Version=0.16.1.0, Culture=neutral, PublicKeyToken=null' not resolved
                For searchpath /home/jason/src/Omnisharp/packages/Nancy.Testing.0.16.1/lib/net40
                Considered '/home/jason/src/Omnisharp/packages/Nancy.Testing.0.16.1/lib/net40/Nancy.Authentication.Forms' as a file, but the file does not exist
                Considered '/home/jason/src/Omnisharp/packages/Nancy.Testing.0.16.1/lib/net40/Nancy.Authentication.Forms.exe' as a file, but the file does not exist
                Considered '/home/jason/src/Omnisharp/packages/Nancy.Testing.0.16.1/lib/net40/Nancy.Authentication.Forms.dll' as a file, but the file does not exist
                For searchpath {CandidateAssemblyFiles}
                Warning: {CandidateAssemblyFiles} not supported currently
                For searchpath {HintPathFromItem}
                HintPath attribute not found
                For searchpath {TargetFrameworkDirectory}
                Considered target framework dir /usr/lib/mono/4.0, assembly named 'Nancy.Authentication.Forms' not found.
                For searchpath {PkgConfig}
                Considered Nancy.Authentication.Forms, Version=0.16.1.0, Culture=neutral, PublicKeyToken=null, but could not find in any pkg-config files.
                For searchpath {GAC}
                Considered Nancy.Authentication.Forms, Version=0.16.1.0, Culture=neutral, PublicKeyToken=null, but could not find in the GAC.
                For searchpath {RawFileName}
                Considered '/home/jason/src/Omnisharp/OmniSharp.Tests/Nancy.Authentication.Forms, Version=0.16.1.0, Culture=neutral, PublicKeyToken=null' as a file, but the file does not exist
                For searchpath bin/Debug/
                Considered '/home/jason/src/Omnisharp/OmniSharp.Tests/bin/Debug/Nancy.Authentication.Forms' as a file, but the file does not exist
                Considered '/home/jason/src/Omnisharp/OmniSharp.Tests/bin/Debug/Nancy.Authentication.Forms.exe' as a file, but the file does not exist
                Considered '/home/jason/src/Omnisharp/OmniSharp.Tests/bin/Debug/Nancy.Authentication.Forms.dll' as a file, but the file does not exist
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'CsQuery, Version=1.3.3.249, Culture=neutral, PublicKeyToken=null' and 'CsQuery, Version=1.3.3.5, Culture=neutral, PublicKeyToken=null'. Using 'CsQuery, Version=1.3.3.249, Culture=neutral, PublicKeyToken=null' reference.
            Target GenerateSatelliteAssemblies:
            No input files were specified for target GenerateSatelliteAssemblies, skipping.
            Target CoreCompile:
            Skipping target "CoreCompile" because its outputs are up-to-date.
        Done building project "/home/jason/src/Omnisharp/OmniSharp.Tests/OmniSharp.Tests.csproj".
Done building project "/home/jason/src/Omnisharp/OmniSharp.sln".

Build succeeded.

Warnings:

/home/jason/src/Omnisharp/OmniSharp.sln (default targets) ->
(Build target) ->
/home/jason/src/Omnisharp/OmniSharp.Tests/OmniSharp.Tests.csproj (default targets) ->
/usr/lib/mono/4.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Using 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' reference.
    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Nancy.Authentication.Forms, Version=0.16.1.0, Culture=neutral, PublicKeyToken=null' not resolved
    /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Found a conflict between : 'CsQuery, Version=1.3.3.249, Culture=neutral, PublicKeyToken=null' and 'CsQuery, Version=1.3.3.5, Culture=neutral, PublicKeyToken=null'. Using 'CsQuery, Version=1.3.3.249, Culture=neutral, PublicKeyToken=null' reference.

     6 Warning(s)
     0 Error(s)

Time Elapsed 00:00:51.5287720

I remember Nuget being problematic to get working correctly on linux, though it's some time since I did it. I can't remember the exact steps. I think I followed the steps here http://monomvc.wordpress.com/2012/03/06/nuget-on-mono/

If you still have problems compiling, maybe I should create a fork without Nuget. Alternatively, DM me your email and I can give you access to the build server where you can download a Release build.

@nosami
Copy link
Contributor

nosami commented Apr 28, 2013

p.s. I wouldn't put the whole git tree under your .vim/bundle directory. Underneath your .vim/bundle/Omnisharp folder should just be the contents of the vimfiles folder.

@chtenb
Copy link
Contributor Author

chtenb commented Apr 28, 2013

Thanks for your answer. I will try to install nuget. I would rather avoid using a release build of Omnisharp, since I want to be able to adept the code.

@chtenb
Copy link
Contributor Author

chtenb commented Apr 28, 2013

About the git tree, I use Vundle to manage my plugins, which means that its done automatically. But I don't think its a problem. I see more plugins doing likewise.

@nosami
Copy link
Contributor

nosami commented Apr 28, 2013

OK.. please let me know if it works. I use Pathogen which uses the same tree structure as Vundle but just assumed that it wouldn't work as OmniSharp's vim files are one level lower down than most Pathogen plugins.

You have some interesting vim plugins btw :)

@chtenb
Copy link
Contributor Author

chtenb commented Apr 28, 2013

Ah, now I understand what you meant to say about the vimfiles. Indeed they don't get loaded this way. I assumed they were somehow sourced. :)

You mentioned earlier something about Omnisharp without nuget. I actually would like that very much. This would make things easier for people who don't have visual studio installed. And since I (and many people, I think) would use this plugin to replace visual studio, it might be a good idea to make Omnisharp independent of visual studio.

@nosami
Copy link
Contributor

nosami commented Apr 28, 2013

OK. I've included the binary packages into the source tree. I feel a little dirty somehow doing this, but it should work without Nuget now.

@chtenb
Copy link
Contributor Author

chtenb commented Apr 28, 2013

Thanks a lot! I just compiled the stuff without errors, only some warnings. I agree with you on the dirtyness of it, but it works for now. We may get a better solution at some point.

@chtenb chtenb closed this as completed Apr 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants