-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Wrong Path of Files Listed Under "Problems" Tab #156720
Comments
More useful information
Here is what is happening.
Now for the unexpected behavior:
|
Additional follow-up It occurs to me that I made a change recently. I am trying to use PowerShell at the default terminal for several reasons, especially to run builds to immediate testing, which means I switch from using the cmd shell When I switched back to cmd as the default terminal, all the problems with Problem panel went away. Errors were correctly identified and their links clickable because the path was not in error. Thus this seems to be an issue related to use of PowerShell (7.2). (I have not tested an earlier version 5.x) I am returning to use of cmd as the default. |
@meganrogge / @mjbvz Problems tab just shows the problems generated by the extension or task. Source of these errors could be typescript extension or task. I think this is an issue in the source of generation that the paths are not set correctly. Hence moving it back to you. |
Issue Type: Bug
All extensions temporarily disabled.
I have .ts files in two locations of project. Relative to tsconfig.json file, one folder is "./src", the other is "./SPREST/src". The root path is "d:\dev\SharePoint\SPTools" (this fact is important in the issue). The latter folder was created with 'git submodule add '. I do a build with the default task, created with Configure Default Build Task. The tsc runs correctly, pointing to the tsconfig.json file. The compiler finds the errors and lists them under "Problems" as expected.
When I try to click open the file that has the errors, the path is all wrong. Suppose the actual path to the source file is "d:\dev\SharePoint\SPTools\SPREST\src\SPListREST.ts". Hovering over the file name under Problems tab brings up the tool tip: "d:\dev\SharePoint\SPTools\SharePoint\SPTools\SPREST\src\SPListREST.ts" and clicking on it says brings up a "File is not found. Create the file?" Note that part of the path is duplicated "\SharePoint\SPTools" and I have not observed this before in working with VSCode ever.
VS Code version: Code 1.69.2 (3b889b0, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: