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

Delay when saving files in projects with tasks.json #19945

Closed
gshaw opened this issue Feb 4, 2017 · 8 comments
Closed

Delay when saving files in projects with tasks.json #19945

gshaw opened this issue Feb 4, 2017 · 8 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Milestone

Comments

@gshaw
Copy link

gshaw commented Feb 4, 2017

  • VSCode Version: 1.9.0
  • OS Version: macOS Sierra 10.12.3

Steps to Reproduce:

  1. Create new directory for a minimal test project.
mkdir test
cd test
mkdir .vscode
echo // Empty File > .vscode/tasks.json
echo Test > test.txt
  1. Open minimal test project
code --disable-extensions . 
  1. Edit test.txt file (e.g., add a blank line) and save changes (File > Save)

Expected: File to immediately save as it did with 1.8.1 (and verified after downgrading to 1.8.1)

Actual: File saves but with approximate 1 second delay.

Workarounds:

  • Remove the tasks.json
  • Revert to 1.8.1
@bpasero bpasero self-assigned this Feb 5, 2017
@bpasero
Copy link
Member

bpasero commented Feb 5, 2017

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

@bpasero bpasero added the info-needed Issue requires more information from poster label Feb 5, 2017
@bpasero bpasero added this to the Backlog milestone Feb 5, 2017
@gshaw gshaw changed the title Delay when saving files Delay when saving files in projects with tasks.json Feb 5, 2017
@gshaw
Copy link
Author

gshaw commented Feb 5, 2017

That is a great idea. I tried it and it still had the slowdown but it got me thinking that it might have been something in my project so I managed to narrow down the test case to make it reproducible.

@gshaw
Copy link
Author

gshaw commented Feb 5, 2017

I've updated the issue title and description with the steps to reproduce. It seems to be triggered by the presence of a .vscode/tasks.json file.

@bpasero
Copy link
Member

bpasero commented Feb 5, 2017

Please see if you can find any logged output that could help us find the source of the issue:

  • run code --verbose from the command line and attach the output
  • in Code select Help | Toggle Developer Tools and select the Console
  • attach any output you see in the Console you can find

Thanks!

@gshaw
Copy link
Author

gshaw commented Feb 6, 2017

Attached is a Gist with the Terminal console log and the web console log. I ran it with extensions disabled to ensure I wasn't logging any extra junk from my extensions.

https://gist.github.com/gshaw/0d76fae2a6fa147501d8a740982390a8

Unfortunately I'm not seeing anything of much help to move this along. The only thing I did notice was the log message for ipc.cp.ts:152 [IPC Library: Watcher] [CHANGED] /Users/gerry/test/test.txt didn't appear in the log until after the delay between triggering a save and the save actually happening.

Is anybody else able to duplicate the problem? I'll try on Monday (Pacific Time) when I have access to other Macs and comment back here.

@bpasero
Copy link
Member

bpasero commented Feb 6, 2017

@gshaw this seems to be #19773 and I kindly ask you to maybe try what I suggested (set "break on error" and see if you are able to hit the breakpoint where the error happens).

@bpasero bpasero closed this as completed Feb 6, 2017
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 6, 2017
@gshaw
Copy link
Author

gshaw commented Feb 6, 2017

I didn't hit any breakpoints during save but looking at #19733 this issue seems like it's resolved. If you need any other info let me know. The fast response and great communication is much appreciated.

@bpasero
Copy link
Member

bpasero commented Feb 7, 2017

Yeah we fixed it and will backport it to a 1.9.1 release.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants