Closed aacsus closed 11 months ago
/confirmPlease
Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue
and following the instructions. Once you have done that, please update the issue with the results.
Happy Coding!
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
I did F1, etc. A reporting window opened up. But when I click on `Preview on GitHub' button, it opens a 'Windows Explorer' for me to choose a file(?). So, I can't get past the Issue Reporter window. There's no 'Report' button. I'm stuck. Therefore, I'm writing here:
I hi-light a word (for instance, printf) and do a Ctrl+F to find them; I do some changes; I leave the FIND active; I then click on the triangle at the upper right corner of the screen to debug my code, and the following non-sense error pops-up:
PS E:\DIR> cd "e:\DIR\" ; if ($?) { gcc tempCodeRunnerFile.c -o tempCodeRunnerFile } ; if ($?) { .\tempCodeRunnerFile }
tempCodeRunnerFile.c:1:1: error: expected '=', ',', ';', 'asm' or 'attribute' at end of input
1 | printf
| ^~
BTW, I no longer do copy-paste and back. I close FIND, I click on an empty line, and I hit compile again. It works !
Type: Bug
VS Code Version# 1.81.1 on Windows 10 x64
Compiler gives error for the following:
include
printf("\nMemory allocation error\n");
This happens pretty often with printf(). I did some changes in my program (in this instance, I deleted couple of REM lines), and it came up with the error message: "too few arguments" for all the printf statements!
I then did a "select all", cut the whole program, and paste it into a Notepad blank page. I then cut it from the Notepad and paste it back to VS Code workbench. The problem was gone, no more errors.
Obviously, there is a bug in VS Code that introduces invisible characters.
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19045 Modes:
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3592)| |GPU Status|2d_canvas: enabledcanvas_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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.91GB (19.82GB free)| |Process Argv|--crash-reporter-id b5a2fca0-60b4-424b-a726-5d6682b3c5be| |Screen Reader|no| |VM|0%|
Extensions (25)
Extension|Author (truncated)|Version ---|---|--- android-dev-ext|ade|1.3.2 gnu-debugger|chi|1.0.3 codeium|Cod|1.2.66 dart-code|Dar|3.70.0 flutter|Dar|3.70.0 gitlens|eam|14.2.1 vscode-firefox-debug|fir|2.9.8 c-cpp-runner|fra|8.1.0 vs-code-runner|Har|2.0.1 vscode-gnu-global|jay|0.3.5 Kotlin|mat|1.7.1 cmake-tools|ms-|1.15.31 cpptools|ms-|1.17.2 cpptools-extension-pack|ms-|1.3.0 notepadplusplus-keybindings|ms-|1.0.7 java|red|1.21.0 cmake|twx|0.0.17 vscode-lldb|vad|1.9.2 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-java-debug|vsc|0.53.0 vscode-java-dependency|vsc|0.23.1 vscode-java-pack|vsc|0.25.13 vscode-java-test|vsc|0.39.1 vscode-maven|vsc|0.42.0 (1 theme extensions excluded)A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 py29gd2263cf:30792227 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30803844 2e4cg342:30602488 f6dab269:30613381 vscrp:30673768 showlangstatbar:30737416 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30804715 pythonnosmt12:30797651 pythonidxptcf:30805731 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30812749 ```