Closed dgard1981 closed 4 years ago
By Synchronise Changes
do you mean the refresh icon atop of the SCM view?
When viewing the output under Git I can see that no
git
commands are run when I update a file.
Can you show me the full output of Git: Show Git Output
right after opening the folder in VS Code?
@joaomoreno - I was meaning the sync icon next to the branch name, but the refresh icon you described does the same thing.
Hers is the git output after I open a folder. If there are any uncommitted changes, these are detected at this time. However, future changes are not detected until I refresh in the SCM view.
Looking for git in: C:\Program Files\Git\cmd\git.exe
Using git 2.28.0.windows.1 from C:\Program Files\Git\cmd\git.exe
> git rev-parse --git-dir
Open repository: c:\correct-path\to\my\repo
> git status -z -u
> git symbolic-ref --short HEAD
> git rev-parse CS-1160
> git rev-parse --symbolic-full-name CS-1160@{u}
> git rev-list --left-right CS-1160...refs/remotes/origin/CS-1160
> git for-each-ref --sort -committerdate --format %(refname) %(objectname)
> git remote --verbose
> git config --get commit.template
Edit: Having just checked, if I select a changed file in the SCM view to compare the differences, this will also cause other changes to be found.
I'm interested in the actual output, since I suspect there is an issue with the path casing. Please do not replace the actual path with Open repository: c:\correct-path\to\my\repo
.
OK, real path is - c:\Users\dgard\Documents\Repositories\core-services--transaction-service--function-app
The rest of the output is as above.
OK let's try this then:
Developer: Set Log Level
to Trace
Git: Show Git Output
And send me entire, unaltered git log file.
Output as requested -
Looking for git in: C:\Program Files\Git\cmd\git.exe
Using git 2.28.0.windows.1 from C:\Program Files\Git\cmd\git.exe
> git rev-parse --git-dir
Open repository: c:\Users\dgard\Documents\Repositories\core-services--transaction-service--function-app
> git status -z -u
> git symbolic-ref --short HEAD
> git rev-parse CS-1160
> git rev-parse --symbolic-full-name CS-1160@{u}
> git rev-list --left-right CS-1160...refs/remotes/origin/CS-1160
> git for-each-ref --sort -committerdate --format %(refname) %(objectname)
> git remote --verbose
> git config --get commit.template
> git status -z -u
> git symbolic-ref --short HEAD
> git rev-parse CS-1160
> git rev-parse --symbolic-full-name CS-1160@{u}
> git rev-list --left-right CS-1160...refs/remotes/origin/CS-1160
> git for-each-ref --sort -committerdate --format %(refname) %(objectname)
> git remote --verbose
> git config --get commit.template
> git check-ignore -v -z --stdin
This is interesting, no file events happen at all. Can you see if there are any file event logs in Output --> Log (Window)
when you touch a file?
These are the logs around me opening, editing and saving a file from Output --> Log (Window)
OK. So is Z:
an alias to c:\Users\dgard\Documents\Repositories
?
Duplicate of https://github.com/microsoft/vscode/issues/100274?
Correct, I map a drive to avoid issues with long paths/names. The issue that you have linked does indeed seem to be what is affecting me.
I haven't purposely updated Git, but I was running 2.28.0.windows.1
- not sure if that came from the VS Code update?
The linked issue suggests that the problem was introduced in 2.25.0
, so I downgraded to 2.24.0.windows.2
and proper functionality has been restored.
As this is on your radar, do you know if a change will be made to VS Code to handle this Git change?
Thanks very much for the help.
As this is on your radar, do you know if a change will be made to VS Code to handle this Git change?
It's possible that there is something we can do, yeah.
Issue Type: Bug
When I save a file, previously the Source Control tab would see the changes and I'd be able to stage/commit files. However, since updating to version 1.49.2 yesterday, these changes are not discovered unless I 'Synchronise Changes'.
Additionally, the changes are not displayed on the Explorer tab of VS Code as they previously were, even after I manually 'Synchronise Changes'.
In my case, the stpes to reporduce are simple changing/saving a file in the opened repository and seeing that the change is not discovered.
I have set
Developer: Set Log Level
to trace, and under Output --> Log (Window) I can see the following -When viewing the output under Git I can see that no
git
commands are run when I update a file. However, if I 'Synchronise Changes' some commands are (obviously) run. Actions in the Source Control tab also correctly executegit
commands.Not sure if it relevant here, but in the settings I have
"git.path": "C:\\Program Files\\Git\\bin\\git.exe"
.VS Code version: Code 1.49.2 (e5e9e69aed6e1984f7499b7af85b3d05f9a6883a, 2020-09-24T16:29:41.983Z) OS version: Windows_NT x64 10.0.19041
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800)| |GPU Status|2d_canvas: enabledflash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.86GB (3.19GB free)| |Process Argv|--crash-reporter-id ea5a1e03-47e7-4a3c-897c-a6096037a7b6| |Screen Reader|no| |VM|0%|
Extensions (31)
Extension|Author (truncated)|Version ---|---|--- atlascode|atl|2.8.2 highlight-line-vscode|cli|0.0.1 bracket-pair-colorizer|Coe|1.0.61 xml|Dot|2.5.1 json-tools|eri|1.0.2 prettier-vscode|esb|5.7.1 go|gol|0.17.0 gc-excelviewer|Gra|3.0.40 rest-client|hum|0.24.2 vscode-nuget-package-manager|jmr|1.1.6 postgresql|JPT|0.0.2 docomment|k--|0.1.18 prettify-json|moh|0.0.3 vscode-azurefunctions|ms-|0.24.1 vscode-docker|ms-|1.6.0 csharp|ms-|1.23.2 vscode-dotnet-runtime|ms-|0.1.2 remote-wsl|ms-|0.44.5 azure-account|ms-|0.9.3 azurecli|ms-|0.5.0 powershell|ms-|2020.6.0 vscode-typescript-tslint-plugin|ms-|1.2.3 azurerm-vscode-tools|msa|0.12.0 color-highlight|nau|2.3.0 copy-json-path|nid|0.1.0 angular-console|nrw|14.0.0 indent-rainbow|ode|7.4.0 vscode-yaml|red|0.11.1 preview-vscode|sea|2.1.0 markdown-preview-enhanced|shd|0.5.13 es6-string-html|Tob|1.8.8