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

Issue with saving files on mounted drive: "Could not resolve any model with provided uri" #17345

Closed
ajhenri opened this issue Dec 15, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release important Issue identified as high-priority verified Verification succeeded

Comments

@ajhenri
Copy link

ajhenri commented Dec 15, 2016

  • VSCode Version: 1.8.0
  • OS Version: Mac OS X El Capitan

This issue seems to happen only for mounted drives (e.g. SSHFS a remote server to access files, and open the mounted folder with VSC).

Steps to Reproduce:

  1. Open Visual Studio Code with the folder of the mounted drive.
  2. Edit and save a file (unfortunately, I can I only get this to happen sporadically. Sometimes it works, sometimes it doesn't... and I can't seem to find a pattern for it)
  3. The following error messages show up:
    "Failed to save 'examplefile.js': The content on disk is newer. Click on Compare to compare your version with the one on disk."

And then when I click "Compare":
"Unable to open 'examplefile.js (on disk) ↔ examplefile.js (in Visual Studio Code)': Could not resolve any model with provided uri.."

I hope this was helpful, and if there is currently any resolution to this, I would like to know. It has only been happening since I updated to 1.8.0. It has made VSC unusable for me on my current project (and I really love VSC, its been great).

EDIT: I included a couple of screenshots. It seems to happen with any type of files, but I gave this one as an example.

screen shot 2016-12-15 at 4 50 48 pm
screen shot 2016-12-15 at 4 50 56 pm

@ajhenri ajhenri changed the title Issue with saving files w/ mounted drive: "Could not resolve any model with provided uri" Issue with saving files on mounted drive: "Could not resolve any model with provided uri" Dec 15, 2016
@rick4470
Copy link

Same issue here on OSX from a Remote ubuntu machine via samba share.

@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release important Issue identified as high-priority labels Dec 16, 2016
@bpasero bpasero added this to the January 2017 milestone Dec 16, 2016
@bpasero
Copy link
Member

bpasero commented Dec 16, 2016

#13665 for the issues with network drives but the exception here is definitely a bad regression we must fix in 1.8.

bpasero added a commit that referenced this issue Dec 16, 2016
@bpasero
Copy link
Member

bpasero commented Dec 16, 2016

To verify:

  • open a file and make it dirty
  • change it meanwhile with another editor
  • try to save
  • you should get an error and a way to resolve the error (you can either accept your changes or revert to the changes on disk)

@ajhenri
Copy link
Author

ajhenri commented Dec 17, 2016

That was fast! Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug candidate Issue identified as probable candidate for fixing in the next release important Issue identified as high-priority verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants