Skip to content

Improve VS Code when working with network drives #13665

Closed

Description

Some issues impact users that try to run VS Code against slow network drives. Specifically:

Activity

  1. changed the title [-]Improve VS Code when working with slow network drives[/-] [+]Improve VS Code when working with network drives[/+] on Oct 14, 2016
  2. dogmatic69 commented on Nov 15, 2016

    @dogmatic69

    we remove folders from the recent folders list when they do not seem to exist even though they are

    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.

  3. dogmatic69 commented on Nov 15, 2016

    @dogmatic69

    Another problem while using network drives is that the go to file ctrl+p is very slow, pretty much unusable.

  4. Sublime45 commented on Dec 2, 2016

    @Sublime45

    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.

  5. andrewdigitalchaosca commented on Dec 19, 2016

    @andrewdigitalchaosca

    This is happening very frequently to me as well, working on a network drive as well, every other save I get an error

  6. pmhoudry commented on Dec 23, 2016

    @pmhoudry

    I got the same frequent error on a samba share via virtualbox host only network.

  7. bpasero commented on Jan 4, 2017

    @bpasero
    ContributorAuthor

    I pushed a fix for the annoying save error, happy for feedback in todays insider build.

  8. pmhoudry commented on Jan 4, 2017

    @pmhoudry
  9. fegumi2003 commented on Jan 10, 2017

    @fegumi2003

    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.

  10. bpasero commented on Jan 10, 2017

    @bpasero
    ContributorAuthor

    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

  11. fegumi2003 commented on Jan 12, 2017

    @fegumi2003

    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).

  12. bpasero commented on Jan 12, 2017

    @bpasero
    ContributorAuthor

    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.

  13. 57 remaining items

  14. added
    file-io
    and removed
    file-explorer
    on Nov 14, 2017
  15. removed this from the Backlog milestone on Nov 15, 2017
  16. ChadRidings commented on Dec 18, 2017

    @ChadRidings

    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)

  17. ChadRidings commented on Dec 19, 2017

    @ChadRidings

    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.

  18. THCloud commented on Jan 9, 2018

    @THCloud

    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?

  19. danvc commented on Jan 9, 2018

    @danvc

    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.

  20. JalpeshVadgama commented on Jan 25, 2018

    @JalpeshVadgama

    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.

  21. aimcom commented on Mar 15, 2018

    @aimcom

    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.

  22. johndugan commented on Apr 13, 2018

    @johndugan

    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.

  23. Brent-Chiono commented on Jul 22, 2018

    @Brent-Chiono

    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

  24. bpasero commented on Sep 10, 2018

    @bpasero
    ContributorAuthor

    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.

  25. locked and limited conversation to collaborators on Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtfile-io

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions