-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Support relative file only links in terminal (no folder) #88259
Comments
/needsMoreInfo |
Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue. Happy Coding! |
@connor4312 Here is the scenario You installed VS code and installed the dotnet core and get started to program dotnet core app in VS code. Now you create a project and open it in vs code. Normally how a developer does normally. Now try to compile using powershell (integrated) in vs code. Now it will show you HomeController.cs have blah blah error. Now when you click on the file name like HomeController in this case, sadly it doesn't open the file. I does this on windows machine. So what someone opened is root of the project, In this case Controller/Homecontroller.cs Note :- I am doing dotnet build from inside the terminal provided in VS Code. |
This is the build output on my case on an Ubuntu VM. You're referring to
I can repro but I don't think this is something we'd likely recognize in VS Code with false positives elsewhere. |
Few days ago when I tried this it's showing the (Powershell integrated) in terminal inside my vscode. I tried to click on that and it's not working. that's the issue. I tried again and in all 3 and it's look working. Not sure what is breaking that time. Is there a way to check that powershell integrated thing in VS code. in those case it's not working. |
@anirugu please share OS/version and VS Code version |
I reset my windows last weekend. I have the stable version latest. When I was using it's showing some "Powershell Integrated" in terminal. Can it happen because of some plugin. my user directory in C is intact as it is. I can see all my plugin get reinstalled after I installed the VS code in refresh window. |
@anirugu open cmd.exe and run |
Microsoft Windows [Version 10.0.18363.535] |
What I suspect is happening is the file in question is getting output without any path separators which until #21125 won't work. For example these type of paths should work:
But this should not:
Note also that the working directory that the terminal starts in is what all link are relative to on Windows as it's impossible to extract the cwd of a particular shell. To verify this, could you show a screenshot of the terminal in the problem state to see the exact file? |
I have reset my windows machine last week. I will reproduce this and let you know |
Microsoft Windows [Version 10.0.19041.153]
|
Related: #21125 |
I am using a dotnet web project in vscode. I have some build error so when I run dotnet build, it's showing me some error.
I click on file and it doesn't open the file that is relative to the directory I have opened in my vs code.
The text was updated successfully, but these errors were encountered: