You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve VS Code when working with network drives #13665
Reacted by JSecademy, Carl Sutton, Luca Anceschi, Univar Environmental Sciences, Noe De La Mora, twig, alanwsx, Ben Creasy, MartyIX, Yukai Huang and 19 more
Reacted by Rick, Jens Hausdorf, Dario Delle Donne, Jen Cant and Maxwell Krause
This happens a lot while working on my computer (not a network hard drive).
To make things worse, it flushes any "undo history" I may have. So even if I go through the compare and accept changes, then I cannot undo any of the stuff.
It is starting to get a bit frustrating. You should at least add a setting to disable it.
Update: With the new update I can't even compare and save anymore. Now after I press the compare button I get a notification pop up that says Could not resolve any model with provided uri..
So now I have a lot of unsaved changes in my file and no way to save them.
Hi all - I've been using VS Code for a week. I'm getting this error 4 out 10 times I save the file. This happens specifically with files in a SharePoint.
When I click on compare it does show me the differences, but I can't push my version over the SP one.
Benjamin Pasero (@bpasero) I've been able to reproduce this using the insider version. What troubles me is that when I'm comparing the disk vs VS Code versions; discard or accept the changes does exactly the same (changes wiped out).
Ok thanks for trying, I think this needs another look then. What I fixed specifically was this error happens when you have a slow connection and manage to hit Ctrl+S multiple times without the first save actually returning. There might still be a bug that the mtime we get back after the save is not the same as the one on the server. Though still hard for me to understand how that can happen.
Error: Failed to save 'syncSummary.txt': The content on disk is newer. Click on Compare to compare your version with the one on disk. (Settings Sync 2.8.2 on Dec 18, 2017)
Paul E. Jones (@paulej) that is a good question. Yea I was looking at that repo yesterday as well. I've been taken down a rabbit hole where it's hard for me to determine if this is a problem with the application or a problem with the extension. I'll report back when I have a better idea.
hi:I also have similar problem, I work with samba, open a folder on remote machine, (mine is Win, remote‘s is linux), and I wanna use shell on remote machine, can VSCode integrated teminal do it?
Haoran Li (@THCloud) yes, you can, but I strongly recommend you to use the integrated terminal by SSH, I mean, connect to the server using SSH session.
Is there any update for this? As I m using it for Linux network drive and it's taking so much time compared to sublime text. Sublime text it's blazing fast.
I have problems with sshfs mounted directories in Visual Studio Code on Ubuntu, too. Autocomplete and IntelliSense don't work properly.
So I've created a small workaround that I want to share: It worked for me to copy the sshfs directory locally, watch changes in this directory with inotifywait and copy them into the sshfs directory with a small shell script. This doesn't reflect changes on the remote filesystem but this is not important for me.
Another Samba user here. I have two workflows - If I'm remote, I work with a Debian VM on Hyper-V (on my laptop). If I am at my desk, I work with a Debian VM on a VMware server that has better hardware.
In both cases, the Git features in code have very poor performance. Search is fairly performant though.
I was trying to use VS Code with my git repository on a samba share. I am using mac and the samba share is on a remote Ubuntu 18.04 machine hosted on AWS. VS code and git would not work properly when I had my repository on a samba share but I had to get work done so I went ahead and started working without git. I was editing a file that was 2 days old, hours of work, and VS code hanged. When I reopened VS Code I was shocked to see my file on the server was blank. In fact, every file I had open at the time of the crash was blank. Now if git would have been workign properly I would not have lost data.
I guess it is back to Dreamweaver? Before I do somethign crazy like that, I am trying also a NFS. Git hub is still having issues. but I got 2 commits to go through. I am hacing trouble with more commits. It keeps telling me I can not write and index.lock file. Prob because VS code is unable to write to the network drive
I am closing this issue and ask people to file individual issues with reproducible steps after searching for duplicates. Having one large issue turns out to be not very helpful to manage.
Activity
[-]Improve VS Code when working with slow network drives[/-][+]Improve VS Code when working with network drives[/+]dogmatic69 commentedon Nov 15, 2016
Just had this happen, I did notice once the drive is reconnected and I open the folder manually all the open files I had were re-opened.
Edit: Closer inspection, these are files I had open at some point, but not what I had open last. Also did not maintain the order of the files opened.
dogmatic69 commentedon Nov 15, 2016
Another problem while using network drives is that the go to file
ctrl+pis very slow, pretty much unusable.Sublime45 commentedon Dec 2, 2016
This happens a lot while working on my computer (not a network hard drive).
To make things worse, it flushes any "undo history" I may have. So even if I go through the compare and accept changes, then I cannot undo any of the stuff.
It is starting to get a bit frustrating. You should at least add a setting to disable it.
Update: With the new update I can't even compare and save anymore. Now after I press the compare button I get a notification pop up that says
Could not resolve any model with provided uri..So now I have a lot of unsaved changes in my file and no way to save them.
andrewdigitalchaosca commentedon Dec 19, 2016
This is happening very frequently to me as well, working on a network drive as well, every other save I get an error
pmhoudry commentedon Dec 23, 2016
I got the same frequent error on a samba share via virtualbox host only network.
bpasero commentedon Jan 4, 2017
I pushed a fix for the annoying save error, happy for feedback in todays insider build.
pmhoudry commentedon Jan 4, 2017
fegumi2003 commentedon Jan 10, 2017
Hi all - I've been using VS Code for a week. I'm getting this error 4 out 10 times I save the file. This happens specifically with files in a SharePoint.
When I click on compare it does show me the differences, but I can't push my version over the SP one.
bpasero commentedon Jan 10, 2017
Felipe Gutierrez (@fegumi2003)
Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: http://code.visualstudio.com/Download#insiders
fegumi2003 commentedon Jan 12, 2017
Benjamin Pasero (@bpasero) I've been able to reproduce this using the insider version. What troubles me is that when I'm comparing the disk vs VS Code versions; discard or accept the changes does exactly the same (changes wiped out).
bpasero commentedon Jan 12, 2017
Ok thanks for trying, I think this needs another look then. What I fixed specifically was this error happens when you have a slow connection and manage to hit
Ctrl+Smultiple times without the first save actually returning. There might still be a bug that themtimewe get back after the save is not the same as the one on the server. Though still hard for me to understand how that can happen.57 remaining items
ChadRidings commentedon Dec 18, 2017
Error: Failed to save 'syncSummary.txt': The content on disk is newer. Click on Compare to compare your version with the one on disk. (Settings Sync 2.8.2 on Dec 18, 2017)
paulej commentedon Dec 18, 2017
Chad Ridings (@ChadRidings) Is that a Visual Studio Code issue or a Settings Sync issue (https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync). That repo is https://github.com/shanalikhan/code-settings-sync/
ChadRidings commentedon Dec 19, 2017
Paul E. Jones (@paulej) that is a good question. Yea I was looking at that repo yesterday as well. I've been taken down a rabbit hole where it's hard for me to determine if this is a problem with the application or a problem with the extension. I'll report back when I have a better idea.
THCloud commentedon Jan 9, 2018
hi:I also have similar problem, I work with samba, open a folder on remote machine, (mine is Win, remote‘s is linux), and I wanna use shell on remote machine, can VSCode integrated teminal do it?
danvc commentedon Jan 9, 2018
Haoran Li (@THCloud) yes, you can, but I strongly recommend you to use the integrated terminal by SSH, I mean, connect to the server using SSH session.
JalpeshVadgama commentedon Jan 25, 2018
Is there any update for this? As I m using it for Linux network drive and it's taking so much time compared to sublime text. Sublime text it's blazing fast.
aimcom commentedon Mar 15, 2018
I have problems with sshfs mounted directories in Visual Studio Code on Ubuntu, too. Autocomplete and IntelliSense don't work properly.
So I've created a small workaround that I want to share: It worked for me to copy the sshfs directory locally, watch changes in this directory with inotifywait and copy them into the sshfs directory with a small shell script. This doesn't reflect changes on the remote filesystem but this is not important for me.
johndugan commentedon Apr 13, 2018
Another Samba user here. I have two workflows - If I'm remote, I work with a Debian VM on Hyper-V (on my laptop). If I am at my desk, I work with a Debian VM on a VMware server that has better hardware.
In both cases, the Git features in code have very poor performance. Search is fairly performant though.
Brent-Chiono commentedon Jul 22, 2018
I was trying to use VS Code with my git repository on a samba share. I am using mac and the samba share is on a remote Ubuntu 18.04 machine hosted on AWS. VS code and git would not work properly when I had my repository on a samba share but I had to get work done so I went ahead and started working without git. I was editing a file that was 2 days old, hours of work, and VS code hanged. When I reopened VS Code I was shocked to see my file on the server was blank. In fact, every file I had open at the time of the crash was blank. Now if git would have been workign properly I would not have lost data.
I guess it is back to Dreamweaver? Before I do somethign crazy like that, I am trying also a NFS. Git hub is still having issues. but I got 2 commits to go through. I am hacing trouble with more commits. It keeps telling me I can not write and index.lock file. Prob because VS code is unable to write to the network drive
bpasero commentedon Sep 10, 2018
I am closing this issue and ask people to file individual issues with reproducible steps after searching for duplicates. Having one large issue turns out to be not very helpful to manage.