Estou usando o Visual Studio no Windows há alguns anos, mas estou começando a mudar para o Visual Code no Linux (Ubuntu 16).
Eu segui as instruções de instalação da página Microsoft dotnet e até assisti a um tutorial em vídeo que eles postaram. Tudo instalado e parecia funcionar muito bem. Eu criei a amostra hello world app e corri no terminal VS e correu tudo bem sem erros .. Mas quando adicionei um pouco mais de código só fui depurar, me dá um erro de ..
Error: Debug adapter process has terminated unexpectedly ..
Eu tenho o C # e todas as outras extensões necessárias instaladas junto com o mono etc.
Estou sentindo falta de algo?
Não tenho certeza de quais informações postar sobre o erro, mas
A saída do log de extensão diz:
Failed to initialize CoreCLR, HRESULT: 0x80131500Failed to initialize CoreCLR, HRESULT: 0x80131500Failed to initialize CoreCLR, HRESULT: 0x80131500Failed to initialize CoreCLR, HRESULT: 0x80131500Failed to initialize CoreCLR, HRESULT: 0x80131500Failed to initialize CoreCLR, HRESULT: 0x80131500
e o log do OmniSharp diz:
Starting OmniSharp server at 11/18/2016, 1:14:40 AM
Target: /home/dany/Documents/VisualCodeProjects/hwapp
OmniSharp server started wth Mono
Path: /home/dany/.vscode/extensions/ms-vscode.csharp-1.5.2/bin/run
PID: 15606
OmniSharp: -s /home/dany/Documents/VisualCodeProjects/hwapp --hostPID 15567 --stdio DotNet:enablePackageRestore=false --encoding utf-8
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/home/dany/Documents/VisualCodeProjects/hwapp' on host 15567."},"Seq":1,"Type":"event"}
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /home/dany/Documents/VisualCodeProjects/hwapp
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update project /home/dany/Documents/VisualCodeProjects/hwapp
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Add project /home/dany/Documents/VisualCodeProjects/hwapp/project.json => 1ab361c7-ef0a-46cf-9d9e-dc6a791377d5
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Processing [ProjectState] hwapp/.NETCoreApp,Version=v1.1
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Added 73 and removed 0 file references
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Added 1 and removed 0 documents.
[INFORMATION:OmniSharp#MSBuild] No solution files found in '/home/dany/Documents/VisualCodeProjects/hwapp'
[INFORMATION:OmniSharp.Startup] Configuration finished.