I am not that familiar with how the whole dotnet ecosystem works under the hood, so apologies if this isn't enough information or just an issue on my part.
I am running Arch and wanted to fiddle with a bit with .net core, and decided to use Atom as my IDE. I installed .net core via the dotnet-cli AUR package, and am able to do a dotnet new and dotnet restore and lastly dotnet run without any issues.
Here is me running dotnet info and dotnet version if it helps:
hak8or@hak8or ~> dotnet --version
1.0.0-preview2-003121
hak8or@hak8or ~> dotnet --info
.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: antergos
OS Version:
OS Platform: Linux
RID: antergos.-x64
Sadly, when installing the omnisharp plugin in atom, I get the following:
So I go into the directory and it's empty:
hak8or@hak8or ~/.a/p/o/n/o/omnisharp-none-x64-netcoreapp1.0> pwd
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/omnisharp-none-x64-netcoreapp1.0
hak8or@hak8or ~/.a/p/o/n/o/omnisharp-none-x64-netcoreapp1.0> ls -a -l
total 12
drwxr-xr-x 2 hak8or users 4096 Aug 25 00:18 ./
drwxr-xr-x 10 hak8or users 4096 Aug 25 00:18 ../
-rw-r--r-- 1 hak8or users 11 Aug 25 00:18 .version
The other folders (omnisharp-mono and omnisharp-ubuntu14-x64-netcoreapp1.0 )have a decent bit of files in them including OmniSharp.exe.
If I just copy by doing cp -r omnisharp-ubuntu14-x64-netcoreapp1.0/* omnisharp-none-x64-netcoreapp1.0/ and restart atom, I get the following when clicking the little squiggle on the bottom left for sharp and then start:
Array[12]0: "NAME="Antergos Linux""1: "VERSION="16.6-ISO-Rolling""2: "ID="antergos""3: "ID_LIKE="arch""4: "PRETTY_NAME="Antergos Linux""5: "CPE_NAME="cpe:/o:antergosproject:antergos:16.6""6: "ANSI_COLOR="1;34;40""7: "HOME_URL="https://antergos.com/""8: "SUPPORT_URL="https://forum.antergos.com/""9: "BUG_REPORT_URL="https://github.com/antergos""10: ""11: ""length: 12__proto__: Array[0]
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/lib/helpers/platform.js:50 getValue("ID") antergos
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/lib/drivers/stdio.js:106 Connecting to child @ /usr/lib/electron/electron
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/lib/drivers/stdio.js:107 Path to server: /home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/omnisharp-none-x64-netcoreapp1.0/OmniSharp
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/lib/drivers/stdio.js:108 Selected project: /home/hak8or/Desktop/development/UDP_Parrot/csharp
/home/hak8or/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/lib/drivers/stdio.js:115 Arguments: --stdio,--zero-based-indices,-s,/home/hak8or/Desktop/development/UDP_Parrot/csharp,--hostPID,7028
events.js:101 Failed to initialize CoreCLR, HRESULT: 0x80131500
emitOne @ events.js:101
text-editor-component.js:1021 ::shadow pseudo-element is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
So then I try to copy the contents of the omnisharp-mono directory into the omnisharp-none-x64-netcoreapp1.0 directory, do a symbolic link from OmniSharp.exe to OmniSharp. And, then it seems to work! Meaning, autocomplete and error checking seem to work fine.
It seems though that this is using mono instead of dotnet core, even though I would prefer dotnet core. Mono is installed on this machine. I guess the issue is that the omnisharp-none-x64-netcoreapp1.0 directory is empty, even though the plugin logs during installation show something should be in there due to extracting.
I am not that familiar with how the whole dotnet ecosystem works under the hood, so apologies if this isn't enough information or just an issue on my part.
I am running Arch and wanted to fiddle with a bit with .net core, and decided to use Atom as my IDE. I installed .net core via the dotnet-cli AUR package, and am able to do a
dotnet new
anddotnet restore
and lastlydotnet run
without any issues.Here is me running dotnet info and dotnet version if it helps:
Sadly, when installing the omnisharp plugin in atom, I get the following:
So I go into the directory and it's empty:
The other folders (
omnisharp-mono
andomnisharp-ubuntu14-x64-netcoreapp1.0
)have a decent bit of files in them includingOmniSharp.exe
.If I just copy by doing
cp -r omnisharp-ubuntu14-x64-netcoreapp1.0/* omnisharp-none-x64-netcoreapp1.0/
and restart atom, I get the following when clicking the little squiggle on the bottom left for sharp and then start:So then I try to copy the contents of the
omnisharp-mono
directory into theomnisharp-none-x64-netcoreapp1.0
directory, do a symbolic link from OmniSharp.exe to OmniSharp. And, then it seems to work! Meaning, autocomplete and error checking seem to work fine.It seems though that this is using mono instead of dotnet core, even though I would prefer dotnet core. Mono is installed on this machine. I guess the issue is that the
omnisharp-none-x64-netcoreapp1.0
directory is empty, even though the plugin logs during installation show something should be in there due to extracting.