Skip to content
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

Git changes showing in Source Control, but not in editor, in a certain file #243021

Open
alythobani opened this issue Mar 10, 2025 · 0 comments
Open
Assignees

Comments

@alythobani
Copy link

alythobani commented Mar 10, 2025

Type: Bug

  1. Open the file (in this case, docs/API.md)
  2. Edit the document so that it has unstaged changes
  3. Try running commands like "Go to Next Change" and "Show Next Change"
  4. See that nothing happens, that no gutter diff markers are shown, etc

Note that changes are shown in Source Control:

Image

And from Source Control I can open a diff file:

Image

And the file name itself is colored blue with a "Modified" tag, but in the editor itself, no git changes are shown:

Image

But, other files do successfully show git changes in the editor:

Image

I did also try an Extension Bisect, but it failed on step one when it disabled all extensions but the issue still persisted. I also tried restarting VSCode in various ways (close + restart; Developer: Reload Window; etc) which didn't work.

Finally in case they're useful/relevant, here are some error messages printed to the console:

Error messages in console
www.vscode-unpkg.net/_gallery/alythobani/alys-custom-extension/latest:1 
        
        
       Failed to load resource: the server responded with a status of 404 ()
log.ts:436  INFO Settings Sync: Account status changed from uninitialized to unavailable
console.ts:137 [Extension Host] rejected promise not handled within 1 second: TypeError: Cannot read properties of undefined (reading 'children')
mls @ console.ts:137
console.ts:137 [Extension Host] stack trace: TypeError: Cannot read properties of undefined (reading 'children')
    at l (/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:9949)
    at Ct._syncFile (/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:10746)
    at async Promise.all (index 0)
    at Ct.scanFiles (/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:13921)
    at Ct.startWatchingWorkspace (/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:11646)
mls @ console.ts:137
mainThreadExtensionService.ts:78 [ms-vscode.extension-test-runner]Cannot read properties of undefined (reading 'children')
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 TypeError: Cannot read properties of undefined (reading 'children')
    at l (vscode-file://vscode-app/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:9949)
    at Ct._syncFile (vscode-file://vscode-app/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:10746)
    at async Promise.all (index 0)
    at Ct.scanFiles (vscode-file://vscode-app/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:13921)
    at Ct.startWatchingWorkspace (vscode-file://vscode-app/Users/alythobani/.vscode/extensions/ms-vscode.extension-test-runner-0.0.12/out/extension.js:137:11646)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
log.ts:456   ERR An unknown error occurred. Please consult the log for more details.
error @ log.ts:456
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED
vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates:1 
        
        
       Failed to load resource: net::ERR_NAME_NOT_RESOLVED

VS Code version: Code 1.98.0 (Universal) (6609ac3, 2025-03-04T21:06:18.612Z)
OS version: Darwin arm64 21.6.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 7, 8, 10
Memory (System) 64.00GB (2.67GB free)
Process Argv --crash-reporter-id f6fcbde6-e25c-440b-a68f-dd3d5c835731
Screen Reader no
VM 0%
Extensions (76)
Extension Author (truncated) Version
alys-custom-extension aly 0.0.1
region-helper Aly 1.1.0
tsl-problem-matcher amo 0.6.2
ng-template Ang 19.2.0
vscode-django bat 1.15.0
tailwindshades bou 0.0.5
vscode-tailwindcss bra 0.14.8
cyberpunk-2020 Car 0.1.4
path-intellisense chr 2.10.0
postcss css 1.0.9
vscode-markdownlint Dav 0.59.0
vscode-eslint dba 3.0.10
python-environment-manager don 1.2.7
python-extension-pack don 1.7.0
dprint dpr 0.16.4
viml dun 0.1.7
bracket-pair-toggler dzh 0.0.3
gitlens eam 16.3.2
vscode-html-css ecm 2.0.13
EditorConfig Edi 0.17.1
elm-ls-vscode elm 2.8.0
prettier-vscode esb 11.0.0
copilot Git 1.277.0
copilot-chat Git 0.25.0
vscode-github-actions git 0.27.1
haskell has 2.4.4
vscode-test-explorer hbe 2.22.1
githd hui 2.5.6
output-colorizer IBM 0.1.2
applescript idl 0.26.1
search-node-modules jas 1.3.0
language-haskell jus 3.6.0
vsc-python-indent Kev 1.21.0
bash-ide-vscode mad 1.43.0
Kotlin mat 1.7.1
autoflake-extension mik 1.0.4
graphql mqu 0.1.2
vscode-json5 mrm 1.0.0
black-formatter ms- 2025.2.0
debugpy ms- 2025.4.0
isort ms- 2023.10.1
mypy-type-checker ms- 2025.2.0
pylint ms- 2025.2.0
python ms- 2025.2.0
vscode-pylance ms- 2025.3.1
remote-containers ms- 0.401.0
atom-keybindings ms- 3.3.0
cpptools ms- 1.23.6
extension-test-runner ms- 0.0.12
makefile-tools ms- 0.12.17
test-adapter-converter ms- 0.2.1
prettify-ts Myl 0.2.0
autodocstring njp 0.6.1
erlang pgo 1.1.2
tsserver-live-reload rbu 1.0.1
multi-command ryu 1.6.0
markdown-preview-enhanced shd 0.8.15
stannum-shellscript-syntax sta 0.0.3
code-spell-checker str 4.0.40
vscode-styled-components sty 1.7.8
svelte-vscode sve 109.5.3
language-stylus sys 1.16.0
even-better-toml tam 0.21.2
shellcheck tim 0.37.7
jest-snapshot-language-support tle 1.1.1
theme-manager und 0.0.1
vscode-mdx uni 1.8.13
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
vim vsc 1.29.0
jinja who 0.0.8
color-vision wil 0.1.0
change-case wma 1.0.0
vscode-mdx-preview xyc 0.3.3
markdown-all-in-one yzh 3.6.3
html-css-class-completion Zig 1.20.0

(23 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
vscaac:30438847
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
5a9hg449:31230677
9064b325:31222308
copilot_t_ci:31222730
f5992895:31254866
jda6j935:31233686
fh1c7952:31247582

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants