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

Inform user to restart VS Code after it has been updated on Linux #5908

Closed
frkn-aydn opened this issue Apr 27, 2016 · 22 comments
Closed

Inform user to restart VS Code after it has been updated on Linux #5908

frkn-aydn opened this issue Apr 27, 2016 · 22 comments
Assignees
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux
Milestone

Comments

@frkn-aydn
Copy link

frkn-aydn commented Apr 27, 2016

  • VSCode Version: 1.0.0
  • OS Version: 14.4 UBUNTU

Steps to Reproduce:

  1. i just open the VS

i dont see any color on my codes and i see this warning : http://i.hizliresim.com/o31jQ2.png

http://i.hizliresim.com/o31jQ2.png


Edit from @Tyriar:

See #5908 (comment) for more details, this is the error:

Error from the extension host: spawn /usr/share/code-insiders/code-insiders (deleted) ENOENT

@bpasero bpasero added the freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues label Apr 27, 2016
@bpasero bpasero added this to the Backlog milestone Apr 27, 2016
@bpasero bpasero self-assigned this Apr 27, 2016
@bpasero
Copy link
Member

bpasero commented Apr 27, 2016

Never seen this error before. Almost seems to me the spawning via Electron just fails with this error.

@bpasero bpasero added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Apr 27, 2016
@frkn-aydn
Copy link
Author

Ok. i have last question. How can i fix that problem ? when i open Visual Studio i see this problem and i cant edit any code. Right now i just open and close visual studio few times and problem solved but its
temporary solution.

@bpasero
Copy link
Member

bpasero commented Apr 28, 2016

does it reproduce with our latest insider build?
You can give it a try from our insiders release today: http://code.visualstudio.com/Download#insiders

@RyanEwen
Copy link

RyanEwen commented May 10, 2016

I am seeing this after updating to 1.1

Edit: It went away after closing everything and launching again.

@17twenty
Copy link

17twenty commented Jun 7, 2016

Can confirm I had the same issue
Error from the extension host: spawn /usr/share/code/code (deleted) ENOENT

It went away when I killed any already running processes. Probably should force a killall when a user restarts from an update.

@hoangnguyenba
Copy link

same here, ubuntu 16.04
just updated vscode today

@psquickitprageet
Copy link

+1, same issue. just updated the vscode

@RAdamMartin
Copy link

Same here, just updated Ubuntu 14.04 to the June release. Went away after full close and reopen.

@ryanbowden
Copy link

Got the same error today after upgrading from 1.3 to 1.3.1 and opening a new window.

Ubuntu 14.04

@bpasero bpasero added the bug Issue identified by VS Code Team member as probable bug label Aug 17, 2016
@rafa-acioly
Copy link

same here.

Distributor ID: elementary OS
Description:    elementary OS Freya
Release:    0.3.2
Codename:   freya

Error from the extension host: spawn /usr/share/code/code (deleted) ENOENT

@JMSantos94
Copy link

JMSantos94 commented Sep 9, 2016

+1

Error from the extension host: spawn /usr/share/code/code (deleted) ENOENT

I am on 1.5.1 using Ubuntu 16.04

@rafa-acioly
Copy link

I solved the problem by re-installing vscode completely.

@17twenty
Copy link

The fix would be for the installer to do a killall code as part of the install scripts in the deb. Basically, it's getting sad because things are linking to old binaries/libs that have been replaced.

By all means, respawn code after installing but that would fix the issue.

@pepemarino
Copy link

I got this error on code 1.5.2 after installing extensions Ruby 0.5.6 and Ruby Language Colorization 0.0.6. My OS is Ubuntu 16.04.

@bpasero bpasero removed the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Sep 18, 2016
@bpasero bpasero removed this from the Backlog milestone Sep 18, 2016
@bpasero bpasero assigned Tyriar and unassigned bpasero Sep 18, 2016
@bpasero
Copy link
Member

bpasero commented Sep 18, 2016

Moving to @Tyriar based on the last comments that this could be a problem with the update from a package. Could it be the update leaves the old running instance around including the extension host and thus the new instance fails to create it?

@Tyriar
Copy link
Member

Tyriar commented Sep 19, 2016

If anyone reproduces this again can you check which processes are still running after you exit VS Code?

ps aux | grep code

@Tyriar Tyriar added the info-needed Issue requires more information from poster label Sep 19, 2016
@Tyriar
Copy link
Member

Tyriar commented Sep 19, 2016

OK never mind, I just reproduced this:

Error from the extension host: spawn /usr/share/code-insiders/code-insiders (deleted) ENOENT

These are my repro steps:

  1. Open vscode insiders
  2. Update vscode insiders to latest
  3. Open a new folder

I fixed the issue by simply exiting and reopening vscode. This is as designed, you must exit VS Code after updating or you will get a mish-mash of the current and old version which is not designed to work. Possible improvement that could be made:

  • Somehow catch this in a reliable way and present a more useful message indicating to restart VS Code
  • Have the deb/rpm packages inform running instances of VS Code to restart

@Tyriar Tyriar added help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality install-update VS Code installation and upgrade system issues labels Sep 19, 2016
@Tyriar Tyriar added linux Issues with VS Code on Linux and removed bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues info-needed Issue requires more information from poster labels Sep 19, 2016
@Tyriar Tyriar changed the title Error from the extension host : spawn:/user/share/code/code (deleted) ENCENT Inform user to restart VS Code after it has been updated on Linux Sep 19, 2016
@Tyriar Tyriar added this to the Backlog milestone Sep 19, 2016
@d4nyll
Copy link

d4nyll commented Nov 2, 2016

Error occurs when you have VSCode open whilst installing an update. Simply close all VSCode windows and open them again.

@Tyriar
Copy link
Member

Tyriar commented Apr 20, 2017

Accepting PRs for this, to fix this I think you'll need to search for where the exception is happening in the code base (somewhere related to reloading the window?) and handle ENOENT by giving a nicer error message. If you get ENOENT and then stat the file and it exists and we're on Linux, it's probably safe to assume this is the case.

@Tyriar
Copy link
Member

Tyriar commented Sep 12, 2018

The snap package would handle this when the snap is updated: #5458

@Tyriar
Copy link
Member

Tyriar commented Sep 12, 2018

Some solutions/problems discussed in #45569

@Tyriar
Copy link
Member

Tyriar commented Oct 9, 2019

I don't think this is a problem anymore.

@Tyriar Tyriar closed this as completed Oct 9, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities install-update VS Code installation and upgrade system issues linux Issues with VS Code on Linux
Projects
None yet
Development

No branches or pull requests