microsoft / vscode

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

git commit generates error dialog and git extension reports uncaught errors #202387

Closed bradlitterell closed 8 months ago

bradlitterell commented 9 months ago

Type: Bug

When I commit from the git extension, I frequently get an error message that "Git: Extention 'vscode.git' CANNOT use API proposal: telemetry".

When I look at "Running Extensions", git reports 32 uncaught errors.

I do not know if the two error counts are related.

This only recently started happening (last couple of weeks).

VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z) OS version: Windows_NT x64 10.0.26020 Modes: Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz (8 x 3302)| |GPU Status|2d_canvas: enabled
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| |Load (avg)|undefined| |Memory (System)|31.84GB (7.30GB free)| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu-22.04/home/brad/stpm --remote=wsl+Ubuntu-22.04 --crash-reporter-id 599da817-f9ce-4935-b18c-03818c17620d| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|Dev Container| |OS|Linux x64 5.15.90.1-microsoft-standard-WSL2| |CPUs|11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz (8 x 3302)| |Memory (System)|15.54GB (12.97GB free)| |VM|0%|
Extensions (13) Extension|Author (truncated)|Version ---|---|--- remote-containers|ms-|0.327.0 remote-wsl|ms-|0.81.8 rewrap|stk|1.16.3 markdown-table-prettify|dar|3.6.0 vscode-markdownlint|Dav|0.53.0 git-graph|mhu|1.30.0 python|ms-|2023.22.1 vscode-pylance|ms-|2023.12.1 cmake-tools|ms-|1.16.32 cpptools|ms-|1.18.5 rewrap|stk|1.16.3 cmake|twx|0.0.17 markdown-all-in-one|yzh|3.6.1
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 vsclangdc:30486549 c4g48928:30535728 azure-dev_surveyone:30548225 0bi6i642:30933247 pythongtdpath:30769146 i26e3531:30792625 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 aa_t_chat:30882232 ```
lszomoru commented 8 months ago

/gifPlease

vscodenpa commented 8 months ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

vscodenpa commented 8 months ago

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!

sergIcca commented 8 months ago

https://github.com/microsoft/vscode/assets/156079513/c990e7f2-7ee2-4d28-8711-992aca23502d

Here's an example of the ruling.

sergIcca commented 8 months ago

This bug is still active. I can't get rid of the problem. My version of VSCode is: Versión: 1.85.2 (user setup) Confirmar: 8b3775030ed1a69b13e4f4c628c612102e30a681 Fecha: 2024-01-18T06:40:10.514Z Electron: 25.9.7 ElectronBuildId: 26354273 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 SO: Windows_NT x64 10.0.22631

lszomoru commented 8 months ago

@sergIcca, are you able to reproduce this issue every time you try to commit? When the error occurs, could you open the developer console using the "Developer: Toggle Developer Tools" command and share all the errors/warnings in there? Are you able to reproduce this issue with all the extensions disabled? Thanks!

sergIcca commented 8 months ago

@lszomoru Yes, every time I commit I have this problem. image image I only have 3 extensions, I disable them and the same problem occurs. image Sorry for my English. I don't know if you mean this. But it's what I see when I open Toogle developer tools.

bradlitterell commented 8 months ago

still getting it too. I have dozens of git repositories across multiple versions of git (development containers with different Linux versions, Windows, etc.) Happens frequently, but not always, but does seem to happen consistently on some repositories and not others.

lszomoru commented 8 months ago

@sergIcca, thank you! After you reproduce the problem, could you also please send me the contents of the git output channel? Also, are you able to reproduce this issue with all extensions disabled? The easiest way to try this is to use the "Help: Troubleshoot Issue..." command from the command palette.

sergIcca commented 8 months ago

Todavía lo conseguí también. Tengo docenas de repositorios de git en múltiples versiones de git (contenedores de desarrollo con diferentes versiones de Linux, Windows, etc.) Ocurre con frecuencia, pero no siempre, pero parece suceder de manera consistente en algunos repositorios y no en otros.

It seems that way. Thank you

sergIcca commented 8 months ago

¡Gracias! Después de reproducir el problema, ¿podría enviarme también el contenido del canal de salida de git? Además, ¿puede reproducir este problema con todas las extensiones deshabilitadas? La forma más fácil de probar esto es usar la opción "Ayuda: Solucionar problema..." de la paleta de comandos.

Ok. First i delete output of git. image

After. I disable all extensions. image

After. I can one time more to make commit. image

New commit image

After commit image

Git output complet:

2024-02-01 10:24:20.195 [info] No remotes found in the git config file. 2024-02-01 10:24:20.244 [info] > git config --get commit.template [54ms] 2024-02-01 10:24:20.244 [info] > git for-each-ref --format %(refname) %(objectname) %(objectname) refs/tags [49ms] 2024-02-01 10:24:20.286 [info] > git status -z -uall [39ms] 2024-02-01 10:26:19.989 [info] > git add -A -- . [56ms] 2024-02-01 10:26:20.264 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [269ms] 2024-02-01 10:26:20.308 [info] > git config --get commit.template [39ms] 2024-02-01 10:26:20.317 [info] No remotes found in the git config file. 2024-02-01 10:26:20.364 [info] > git config --get commit.template [49ms] 2024-02-01 10:26:20.372 [info] > git for-each-ref --format %(refname) %(objectname) %(objectname) refs/tags [49ms] 2024-02-01 10:26:20.413 [info] > git status -z -uall [38ms] 2024-02-01 10:26:20.480 [info] No remotes found in the git config file. 2024-02-01 10:26:20.528 [info] > git config --get commit.template [51ms] 2024-02-01 10:26:20.533 [info] > git for-each-ref --format %(refname) %(objectname) %(*objectname) refs/tags [54ms] 2024-02-01 10:26:20.579 [info] > git status -z -uall [40ms] 2024-02-01 10:26:41.809 [info] > git ls-files --stage -- C:\Users\sricc\OneDrive - ICCA\Documentos\Angular\SergieCode\cargaPaginasApp\src\app\contacto\contacto.component.ts [49ms] 2024-02-01 10:26:41.859 [info] > git cat-file -s 0eb38dfc6610615af4643f3318ce0d7197c56d1f [43ms] 2024-02-01 10:26:41.908 [info] > git show --textconv :src/app/contacto/contacto.component.ts [42ms]

I hope it's everything you've asked for.

gilad905 commented 8 months ago

SOLVED For me, I found out it was because I was on a detached head on Git. For some reason, reattaching to master solved it.

lszomoru commented 8 months ago

Thank you! I have to admit that it's not clear to me what is happening here. Let me chat with my colleagues and see if I can come up with an action plan.

bradlitterell commented 8 months ago

+1 for gilad905's suggestion. I was able to easily repro the problem:

  1. create new repo from command line.
  2. make first commit.
  3. check out main
  4. edit and commit from git source-control panel in vscode, works.
  5. check out the new head (the second commit), detached.
  6. make another change and try to commit it in vs code

Expected: It works correctly Actual: The commit is created in the repository, but the "telemetry" error message shown above appears.

lszomoru commented 8 months ago

Thanks @bradlitterell. Fix for this will be in Monday's VS Code Insiders release. Apologies for the inconvenience!

bradlitterell commented 8 months ago

thanks

cameronelliott commented 8 months ago

I am not, and have not been using detached head repos. Sorry this is not the only problem occuring.

lszomoru commented 8 months ago

@cameronelliott, please share your repro steps in case you are able to reproduce with the latest VS Code Insiders release. Thanks!