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

When opening a file from problem view, the file is opened again in a new tab. #18684

Closed
martincohen opened this issue Jan 17, 2017 · 6 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@martincohen
Copy link

I'm using MSVC 2015 and cpptools. When I click on errors in problem view, I get the file opened as a duplicate with path "." (for example lib.h opens again as lib.h .) This later causes errors with saving files (as Code detects that the file is "newer" on the disk) and I've already lost several hours of work due to this bug.

  • VSCode Version:
    1.8.1 (with freshly installed cpptools)
  • OS Version:
    Windows 10

Steps to Reproduce:

This happens quite random

  1. Open files from the Explorer sidebar.
  2. Create a file with compile errors.
  3. Compile.
  4. Hit F8 (and if it actually works, as it's buggy) and the file is opened in another tab.
@martincohen
Copy link
Author

This also happens from cpptools callstack. The files simply have different case in the paths (which is natural for Windows).

  • W:\Work\Projects\lever\development\runtime.c (opened from Explorer)
  • W:\work\projects\lever\development\runtime.c (opened from Call Stack in Debug mode)

@dbaeumer
Copy link
Member

@bpasero I start this with you. When we compare file inputs are we comparing them case insensitive under Windows? If we do then this sounds like a cpptools problem then.

@bpasero
Copy link
Member

bpasero commented Jan 18, 2017

This should be reported to the C++ extension, otherwise, duplicate of #12448

@bpasero bpasero closed this as completed Jan 18, 2017
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 18, 2017
@martincohen
Copy link
Author

I've already reported this issue to cpptools and been sent by the guys there to report it here. However, yah, it sounds like duplicate of #12448 and also my recent one #18718 (requested by @isidorn to be filed separately as it might contain more info).

@isidorn
Copy link
Contributor

isidorn commented Jan 18, 2017

@martincohen might be a dup of #12448, @bpasero would know best. Sorry for making you file a new issue that turns out to be a dup!

@martincohen
Copy link
Author

@isidorn no problem at all, hopefully it adds more visibility to the issue and helps you guys. I would love to take a look at the issue myself, but I'm still trying to find my way around the source code.

@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
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

4 participants