-
Notifications
You must be signed in to change notification settings - Fork 676
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
Invalid file reported in Problems list #6309
Comments
Whatever is scraping the error information from the terminal output is being confused by the width of the terminal. Making the window wider or narrower will affect what is listed in the Problems tab. |
Downgrading C# extension from 2.1.2 to previous (2.0.436) helps, somewhat. The files listed in the Problems tab look correct, but some of the error / warning text is still cut off (based on the size of the Terminal pane) Actually, no it's not. The same thing is happening. File names are being truncated in 2.0.436) |
@jtsom would you be able to set the configuration |
Here are the logs. The build error window looks like this for these logs: |
Ah apologies I originally mis-read this and thought these were coming from the live diagnostics, but these are coming from the build. @jtsom How are you invoking the build - do you have a tasks.json in your repo? Or are you invoking the '.NET Build' command? And would you mind posting the a snippet of the actual terminal output for the errors? |
In this instance, I am using the Tasks: Run Build Tasks command (Control-Shift-B). When using the Here is one warning that appears in the Terminal, after doing a Control-Shift-B (Note where the line break is, just after the 'T':
Here is the Problems window (note that there is only ONE entry in the Problems tab, but there are 11 actual warnings in the Terminal tab, but are NOT shown in the Problems tab: If I shrink the window down, to make more line breaks, and if it happens to be in the middle of the file name in the warning, that message in the Problems tab will not have the full file name, and clicking it will show an error about not being able to open the referenced file.
(And this time, after doing a clean and build, I am seeing 13 messages in the Problems tab (Yes I did a clean previously when I only saw 1 message) |
FWIW - I modified the build task in the tasks.json to change the
|
Thanks - thats helpful. We actually don't own the However what we should do here (and what you found) is update our tasks.json generation to include I'll take a look at doing that. |
Cool thanks! Glad I found a work around, but agree the problem matched does seem to have a issue, as the tasks.json has not had that parameter and it's has been working. |
Type: Bug
Issue Description
After building a project, any errors or warning in the Problems tab reference incorrect files, that cannot be opened.
Steps to Reproduce
Build an application that has errors or warnings. Look in the Problems tab.
Expected Behavior
Correct files listed.
Actual Behavior
Incorrect, invalid file names listed.
Logs
C# log
C# LSP Trace Logs
Environment information
VSCode version: 1.82.0-insider
C# Extension: 2.1.2
Using OmniSharp: false
Dotnet Information
Error running dotnet --info: Error: Command failed: C:\Program Files\dotnet\dotnet.exe --info 'C:\Program' is not recognized as an internal or external command, operable program or batch file.'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Visual Studio Code Extensions
Extension version: 2.1.2
VS Code version: Code - Insiders 1.82.0-insider (16e9205452dd417e32f164325b589b94892846b4, 2023-09-06T08:16:52.204Z)
OS version: Windows_NT x64 10.0.22621
Modes:
System Info
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: