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

Sometimes Open with Code doesn't open the file #15908

Closed
digeff opened this issue Nov 22, 2016 · 14 comments
Closed

Sometimes Open with Code doesn't open the file #15908

digeff opened this issue Nov 22, 2016 · 14 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) windows VS Code on Windows issues
Milestone

Comments

@digeff
Copy link

digeff commented Nov 22, 2016

  • VSCode Version: 1.7.1
  • OS Version: Windows 10 Enterprise

Sometimes when VS Code is already opened, trying to use the Open With Code menu on a file doesn't work (has no effect).

I'm not sure how to reproduce this, but it happens from time to time

@joaomoreno
Copy link
Member

How often does it happen?

@joaomoreno joaomoreno added the info-needed Issue requires more information from poster label Nov 23, 2016
@digeff
Copy link
Author

digeff commented Nov 23, 2016

A few times a month, depending on how much I use VS Code

@joaomoreno
Copy link
Member

Can you keep an open eye as to what kind of files make this happen? It's hard to figure out what could be wrong without any clues.

@digeff
Copy link
Author

digeff commented Nov 23, 2016

While it happens, it seems to happen with every file I try to do this with…
If I then close all open VS Code instances, Open with Code starts to work again for all files.
I also noticed that there were a lot of Code.exe instances running while this was happening…

From: João Moreno [mailto:[email protected]]
Sent: Wednesday, November 23, 2016 8:33 AM
To: Microsoft/vscode [email protected]
Cc: Diego Geffner [email protected]; Author [email protected]
Subject: Re: [Microsoft/vscode] Sometimes Open with Code doesn't open the file (#15908)

Can you keep an open eye as to what kind of files make this happen? It's hard to figure out what could be wrong without any clues.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvscode%2Fissues%2F15908%23issuecomment-262564975&data=02%7C01%7Cdigeff%40microsoft.com%7Cbf06c1b012d543eefa1408d413be61d3%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636155155785169694&sdata=hZ6KBBo7AhhWI3sUTyF%2B4dWC4JgplNto9vLoF937Cxs%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANce3NNUDUIeBPRjpp49Aeg8bN9iads1ks5rBGq2gaJpZM4K511i&data=02%7C01%7Cdigeff%40microsoft.com%7Cbf06c1b012d543eefa1408d413be61d3%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636155155785169694&sdata=frRrLGIXs4BHOmnHE5ZZdq4rNEVqf1Jff9tOc1pS4FQ%3D&reserved=0.

@joaomoreno joaomoreno added bug Issue identified by VS Code Team member as probable bug windows VS Code on Windows issues and removed info-needed Issue requires more information from poster labels Nov 23, 2016
@joaomoreno joaomoreno added this to the Backlog milestone Nov 23, 2016
@sebagomez
Copy link

I've found a way of reproducing this issue.
In my case at least, I have an opened command line all time which is ran as Admin. I usually start code from there code . or code somefile. When I have opened VSCode like that, I can't use Open with Code anymore, either for a file or folder.

Hope it helps track this annoying bug.

@joaomoreno
Copy link
Member

This is #1614

@joaomoreno joaomoreno added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 30, 2016
@ghost
Copy link

ghost commented Feb 24, 2017

@joaomoreno How is this related to #1614? That bug is all about Running VS Code as an administrator, whereas this is about VS Code not opening a file? I don't see the connection. I run into this bug almost every day.

@digeff
Copy link
Author

digeff commented Feb 24, 2017

It happens quite often to me, and I don't run VS Code as an admin. I still haven't figured out what's the pattern though...

@ghost
Copy link

ghost commented Feb 24, 2017

For me is really easy to reproduce:

  1. Open a command prompt in windows and start VS Code by typing "code ."
  2. Open a File Explorer window and try to open a file using Right Click -> Open With Code
    The file doesn't open every time for me.

@joaomoreno
Copy link
Member

@daschult This is quite old now. Can you try to fully reinstall Code?

@digeff
Copy link
Author

digeff commented Feb 28, 2017

I still had this issue last week, and I usually use the latest version of VS Code.

@ghost
Copy link

ghost commented Feb 28, 2017

I just uninstalled and reinstalled VS Code and I get the same result that I reported 4 days ago. Can you guys not reproduce it?

@joaomoreno
Copy link
Member

joaomoreno commented Mar 1, 2017

Can you show me a screenshot of that "Open with Code" action?

No, I can't reproduce.

@ghost
Copy link

ghost commented Mar 1, 2017

image
image
image
Ah, I just tried it with a non-administrator command prompt, and it worked, just like you said. However, if I try it from an administrator command prompt, then it does the behavior that I've described.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

4 participants