microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.4k stars 28.94k forks source link

terminal error and unable to run code #134316

Closed jlokesh886 closed 2 years ago

jlokesh886 commented 3 years ago

my terminal is showing errors when running code.

VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T12:00:31.514Z) OS version: Windows_NT x64 6.1.7601 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD A6-7310 APU with AMD Radeon R4 Graphics (4 x 1996)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|undefined| |Memory (System)|3.47GB (1.48GB free)| |Process Argv|--crash-reporter-id bfeef099-debd-4556-a76f-4694aee65eb5| |Screen Reader|no| |VM|0%|
Extensions (12) Extension|Author (truncated)|Version ---|---|--- android-dev-ext|ade|1.3.2 scriptcsRunner|fil|0.1.0 code-runner|for|0.11.5 csharpextensions|jch|1.3.1 csharp|ms-|1.23.15 python|ms-|2021.9.1246542782 vscode-pylance|ms-|2021.9.4 jupyter|ms-|2021.8.2041215044 jupyter-keymap|ms-|1.0.0 mono-debug|ms-|0.16.2 godot-csharp-vscode|nei|0.1.3 json|Zai|2.0.2
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30358481 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwtct:30364498 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt2:30371810 dockerwalkthrucf:30370837 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30364666 pythonvspyt187:30373474 pydsgsc2:30361791 vsqsis300:30374797 ```
oo large to send. Please paste.
gjsjohnmurray commented 3 years ago

/needsMoreInfo

yvvt0379 commented 3 years ago

my terminal is showing errors when running code.

VS Code version: Code 1.60.2 (7f6ab5485bbc008386c4386d08766667e155244e, 2021-09-22T12:00:31.514Z) OS version: Windows_NT x64 6.1.7601 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|AMD A6-7310 APU with AMD Radeon R4 Graphics (4 x 1996)| |GPU Status|2d_canvas: unavailable_software
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: disabled_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software| |Load (avg)|undefined| |Memory (System)|3.47GB (1.48GB free)| |Process Argv|--crash-reporter-id bfeef099-debd-4556-a76f-4694aee65eb5| |Screen Reader|no| |VM|0%|
Extensions (12) Extension|Author (truncated)|Version ---|---|--- android-dev-ext|ade|1.3.2 scriptcsRunner|fil|0.1.0 code-runner|for|0.11.5 csharpextensions|jch|1.3.1 csharp|ms-|1.23.15 python|ms-|2021.9.1246542782 vscode-pylance|ms-|2021.9.4 jupyter|ms-|2021.8.2041215044 jupyter-keymap|ms-|1.0.0 mono-debug|ms-|0.16.2 godot-csharp-vscode|nei|0.1.3 json|Zai|2.0.2
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551cf:30345471 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30358481 pythondataviewer:30285071 pythonvsuse255:30340121 vscod805cf:30301675 pythonvspyt200:30340761 binariesv615:30325510 vsccppwtct:30364498 pythonvssor306:30344512 bridge0708:30335490 pygetstartedt2:30371810 dockerwalkthrucf:30370837 bridge0723:30353136 pythonrunftest32:30373476 pythonf5test824:30373475 javagetstartedt:30364666 pythonvspyt187:30373474 pydsgsc2:30361791 vsqsis300:30374797 ```
oo large to send. Please paste.

What kind of errors? Screenshot, ok?

meganrogge commented 3 years ago

Can you share your settings.json file and also do a trace log while creating a terminal? https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

jlokesh886 commented 3 years ago

this is my settings.json file { "code-runner.saveFilesBeforeRun":true, "code-runner.saveAllFilesBeforeRun":true, "code-runner.integrated.defaultProfile.windows": "Command Prompt", "code-runner.showRunCommandInEditorContextMenu": true, "code-runner.executorMap": { "javascript": "node", "java": "cd $dir && javac $fileName && java $fileNameWithoutExt", "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "php": "php", "python": "python -u", "perl": "perl", "perl6": "perl6", "ruby": "ruby", "go": "go run", "lua": "lua", "groovy": "groovy", "powershell": "powershell -ExecutionPolicy ByPass -File", "bat": "cmd /c", "shellscript": "bash", "fsharp": "fsi", "csharp": "cd $dir && dotnet run $fileName", "vbscript": "cscript //Nologo", "typescript": "ts-node", "coffeescript": "coffee", "scala": "scala", "swift": "swift", "julia": "julia", "crystal": "crystal", "ocaml": "ocaml", "r": "Rscript", "applescript": "osascript", "clojure": "lein exec", "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt", "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt", "racket": "racket", "scheme": "csi -script", "ahk": "autohotkey", "autoit": "autoit3", "dart": "dart", "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt", "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt", "haskell": "runhaskell", "nim": "nim compile --verbosity:0 --hints:off --run", "lisp": "sbcl --script", "kit": "kitc --run", "v": "v run", "sass": "sass --style expanded", "scss": "scss --style expanded", "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css", "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" , "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt" }, "terminal.integrated.defaultProfile.windows": "PowerShell", "terminal.integrated.windowsEnableConpty": false, "code-runner.runInTerminal": true }

On Mon, Oct 4, 2021 at 9:05 PM Megan Rogge @.***> wrote:

Can you share your settings.json file and also do a trace log while creating a terminal? https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/134316#issuecomment-933605779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV4HX2AWSSDGGAUNDQYXT6TUFHCVHANCNFSM5FGHIJEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

meganrogge commented 3 years ago

what happens if you comment your settings out and disable all extensions?

jlokesh886 commented 3 years ago

I am finding no way to run c# code if I disabled extension but when I enable again It is showing dotnet is not recognized as an the name of a cmdlet, function, script file or operable program when trying to run my c# code.

On Mon, Oct 11, 2021, 11:09 PM Megan Rogge @.***> wrote:

what happens if you comment your settings out and disable all extensions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/134316#issuecomment-940222635, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV4HX2EGTTNMV5MLP4SQIO3UGMOLLANCNFSM5FGHIJEA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.