OmniSharp / omnisharp-atom

Omnisharp support for the atom editor
https://atom.io/packages/omnisharp-atom
MIT License
318 stars 61 forks source link

Why always Downloading? #621

Open ccbentlee opened 8 years ago

ccbentlee commented 8 years ago

When I open a project created by Unity,the output of omnisharp always shows "Downloading". So it can't work properly."Starting OmniSharp server (pid:undefined)",could be something wrong here?

david-driscoll commented 8 years ago

That's odd, are you seeing any other errors?

soimy commented 8 years ago

Same here, error message :

/Users/???/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/roslyn/runtimes/dnx-mono.1.0.0-rc2-16388/bin/dnx: line 14: exec: mono: not found

OSX 10.11.2 After upgraded to omnisharp-atom v0.26.9

mono --version Mono JIT compiler version 4.2.0 (Stable 4.2.0.179/a224653 Tue Oct 6 11:28:25 PDT 2015) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: altstack Notification: kqueue Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

ccbentlee commented 8 years ago

@david-driscoll Sorry,there isn't any error. It just didn't work.

ccbentlee commented 8 years ago

Starting OmniSharp server (pid:undefined) OmniSharp Location: /Users/Lee/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/roslyn/run Change the location that OmniSharp is loaded from by setting the OMNISHARP environment variable

That's what the output window shows when I open a project.The fire icon is always grey.

willl commented 8 years ago

I have managed to see the same issue (Downloading message next to the bolt icon) on a Windows machine with Atom installed. Nothing obvious, but poked around the Atom Dev Tools and found the line Downloading C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\omnisharp-clr-win-x86.zip.

It kept showing "Downloading" as the status until I manually triggered "Code Format" from the OmniSharp menu. After this, things started working again.

Here's the full log (with some masking of my code path and deleted the irrelevant project finder lines):

getPackageDirPaths: C:\Users\william\.atom\packages
packagePath C:\Users\william\.atom\packages exists: true
Window load time: 4172ms
Activating omnisharp-atom solution tracking...
Getting features for "atom"...
/deep/ combinator is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
::shadow pseudo-element is deprecated. See https://www.chromestatus.com/features/6750456638341120 for more details.
Omni Project Candidates: Found C:\path\to\code\CodeProject\CodeProject.sln
Downloading C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\omnisharp-clr-win-x86.zip
Loading feature "atom/command-runner.js"...
Loading feature "atom/dock.js"...
Loading feature "atom/feature-buttons.js"...
Loading feature "atom/framework-selector.js"...
Loading feature "atom/generator-aspnet.js"...
Loading feature "atom/menu.js"...
Loading feature "atom/server-information.js"...
Loading feature "atom/settings-button.js"...
Loading feature "atom/solution-information.js"...
Loading feature "atom/status-bar.js"...
Loading feature "atom/update-projects.js"...
Attaching feature "dock"...
Attaching feature "frameworkSelector"...
Attaching feature "statusBar"...
Attaching feature "updateProject"...
Activating feature "featureButtons"...
Activating feature "featureEditorButtons"...
Attaching feature "featureEditorButtons"...
Activating feature "topMenu"...
Getting features for "features"...
Loading feature "features/code-check.js"...
Loading feature "features/code-action.js"...
Loading feature "features/code-format.js"...
Loading feature "features/code-lens.js"...
Loading feature "features/find-symbols.js"...
Loading feature "features/find-usages.js"...
Loading feature "features/go-to-definition.js"...
Loading feature "features/highlight.js"...
Loading feature "features/intellisense.js"...
Loading feature "features/lookup.js"...
Loading feature "features/navigate-up-down.js"...
Loading feature "features/notification-handler.js"...
Loading feature "features/package-restore.js"...
Loading feature "features/project-lock.js"...
Loading feature "features/reload-workspace.js"...
Loading feature "features/rename.js"...
Loading feature "features/run-tests.js"...
Loading feature "features/signature-help.js"...
Activating feature "codeFormat"...
Activating feature "ExcludeClassifications"...
'omnisharp-atom.ExcludeClassifications' could not set the default. Attempted default: true; Schema: {"title":"undefined","type":"boolean","default":true}
Activating feature "intellisense"...
Activating feature "typeLookup"...
Activating feature "fileMonitor"...
Extracting C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\omnisharp-clr-win-x86.zip
Finished downloading C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\omnisharp-clr-win-x86.zip
Downloading C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\boot\omnisharp.bootstrap-clr-win-x86.zip
Finished extracting C:\Users\william\.atom\packages\omnisharp-atom\node_modules\omnisharp-client\roslyn\omnisharp-clr-win-x86.zip

I imagine the others who are encountering this the same issue will probably see an omnisharp-clr-*.zip file (in addition to a .version file) in their ~/.atom/packages/omnisharp-atom/node_modules/omnisharp-client/roslyn folder that has not been extracted.

ccbentlee commented 8 years ago

@willl Hi,I use Mac and I found a "omnisharp-moto.tar.gz" in the roslyn folder.It's size is zero.I can't extracted it.

willl commented 8 years ago

@ccbentlee My guess is that downloads may be timing out perhaps?

Did you try opening a code file and invoking something from the omnisharp menu?

ccbentlee commented 8 years ago

@willl Yeah I tried all of them and didn't work.In the first line of OMNISHARP OUTPUT,it says "Starting OmniSharp server (pid:undefined)".I'm wondering why it is undefined because in the settings of omnisharp,the first line is also undefined.Do you have the same setting?

willl commented 8 years ago

@ccbentlee I don't recall, but I would assume so. That omnisharp-mono.tar.gz package that it was downloading would be the omnisharp-roslyn server that it's trying to start.

My guess is that perhaps the download is timing out for some reason.

Also, you should have a .version file in that roslyn folder, could you open that up and paste what version it's looking for? Eg: v1.7.0.

ccbentlee commented 8 years ago

@willl No,nothing but omnisharp-mono.tar.gz in the folder. Can I download the file manually? Could you paste you OMNISHARP OUTPUT infos please? thanks

ccbentlee commented 8 years ago

@willl I found the .version file is v1.7.0

primitivorm commented 8 years ago

remove OMNISHARP environment variable works for me!

ccbentlee commented 8 years ago

@primitivorm how to do this.I am using Mac.

primitivorm commented 8 years ago

View if .bash_profile that contains this variable with: $cat .bash_profile | grep OMNISHARP Remove this lines from your .bash_profile or use command to unset value: $unset OMNISHARP