OmniSharp / omnisharp-roslyn

OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
MIT License
1.79k stars 420 forks source link

Build: Does not support Unix version numbers that use non-numeric values #1129

Open nico202 opened 6 years ago

nico202 commented 6 years ago

Hi, I'm trying to compile on NixOS and I get:

./build.sh -v diagnostic build.log

Any suggestion? Thanks, Nicolò

DustinCampbell commented 6 years ago

What is the content of the /etc/os-release/ file on your machine?

nico202 commented 6 years ago

It is a file, with:

NAME=NixOS
ID=nixos
VERSION="18.03pre130932.cc4677c36ee (Impala)"
VERSION_CODENAME=impala
VERSION_ID="18.03pre130932.cc4677c36ee"
PRETTY_NAME="NixOS 18.03pre130932.cc4677c36ee (Impala)"
HOME_URL="https://nixos.org/"
SUPPORT_URL="https://nixos.org/nixos/support.html"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
DustinCampbell commented 6 years ago

Thanks! We're trying to construct a System.Version` from "VERSION_ID", but it looks like NixOS does something very differently here. The build script will need to be updated here: https://github.com/OmniSharp/omnisharp-roslyn/blob/master/scripts/platform.cake#L115-L123