-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Unable to write to Folder Settings because no resource is provided. #3873
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
Comments
Thanks for filing! I think we need to investigate this. I noticed this happening in 3.11 - I wonder if something changed in VS Code upstream that we forgot to change. Any ideas @oxy @code-asher ? |
I can't think of anything off the top of my head. What are the
full reproduction steps?
|
Updated description with repro steps! |
Oh you were able to reproduce like that? Odd, it didn't reproduce for
me. This couldn't somehow be related to the local OS being MacOS could
it? Seems unlikely.
|
Hmm...could question. Here is the stack trace: ERR Unable to write to Folder Settings because no resource is provided.: Error: Unable to write to Folder Settings because no resource is provided.
at b.reject (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:15316)
at b.resolveAndValidate (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:19500)
at b.doWriteConfiguration (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:12506)
at Object.factory (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:12282)
at y.consume (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:68:15342)
at http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:68:15157
at new Promise (<anonymous>)
at y.queue (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:68:15081)
at b.writeConfiguration (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:12267)
at y.writeConfigurationValue (http://localhost:8080/static/4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd/usr/local/Cellar/code-server/3.11.0/libexec/lib/vscode/out/vs/workbench/workbench.web.api.js:2403:41475) Maybe something changed with how the configuration is stored locally on macOS? |
Chiming in to say I have the same experience every time I refresh the IDE window on a different OS.
|
So.. This is not only limited to local OS being Mac OS or Chrome only, Windows is also affected.
|
Also chiming in to say that this happens to me as well.
|
Thanks all for the notes! I've added this to the next upcoming milestone so we'll work on it soon. |
thanks @jsjoeio |
I'm starting to work on this and taking notes here. I'll update this message as I go so I'm not spamming the issue with new comments each update. Notessearching for "Unable to write to Folder Settings because no resource is provided" reveals It looks like this is the key block where VS Code rejects and with this if (!(configurationProperties[operation.key].scope === ConfigurationScope.RESOURCE || configurationProperties[operation.key].scope === ConfigurationScope.LANGUAGE_OVERRIDABLE)) {
return this.reject(ConfigurationEditingErrorCode.ERROR_INVALID_FOLDER_CONFIGURATION, target, operation);
} Pulling that apart, it's an If either of those evaluate to Time to investigate Both belong to the same object: This value is imported into the file from Looking at /**
* Resource specific configuration, which can be configured in the user, workspace or folder settings.
*/
RESOURCE,
/**
* Resource specific configuration that can be configured in language specific settings
*/
LANGUAGE_OVERRIDABLE, So now the question is, where are these resource configuration set? I'm going to search fo It appears in Hmm...looking around, nothing specific stands out. Let's move on to Hmm...still unsure where this could be happening. My guess is VS Code starts up and expects a I think it makes sense run code-server locally with either the This is strange. I put a Let's follow the stack trace up: at
|
@caochuansong @djasonweiser @aryasenna @wjziv can one of you confirm that this fixes it? Solution
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
}, And let me know if that fixes it? |
@jsjoeio I noticed at the same time as I the "Unable to write..." notification, when I navigated to subdirectories which did not exist, behavior changed from: "automatically create the subdirectory" to the familiar message "Unable to write to folder settings..." Now I get the following response:
And it asks if I'd like to create the directory. Sounds like a much better behavior, IMO! However, there still exists a semi-related error on my end where Jupyter Notebooks aren't rendering... See #3874 |
@jsjoeio that's some incredible detective work. Incredible 👏🏻 |
Hooray! Thank you for confirming!
Weird...Well if you can easily reproduce, will you open an issue and I'll take a look?
Yeah, that's next on my list! Going to close this for now! |
Reopening this isssue.
getting the same problems again vscode server is VS Code Server for x64 (7db1a2b88f7557e0a43fec75b6ba7e50b3e9f77e) vscode version is
|
@rebelliousconformist can you please open a new bug report with repro steps? Thank you! |
code-server --version
: 3.11every time I refresh web page, I got this error:
Unable to write to Folder Settings because no resource is provided.
how to config it?
Steps to reproduce
code-server --auth none
Expected
No error
Actual
Screen.Recording.2021-07-30.at.10.49.08.AM.mov
The text was updated successfully, but these errors were encountered: