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

Unable to open files #123993

Closed
oliversalzburg opened this issue May 16, 2021 · 7 comments
Closed

Unable to open files #123993

oliversalzburg opened this issue May 16, 2021 · 7 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) workbench-editor-resolver Issues resolving the editor inputs

Comments

@oliversalzburg
Copy link

oliversalzburg commented May 16, 2021

Issue Type: Bug

When I try to open a file from the file explorer panel, nothing happens.

When I try to open a file through the keyboard shortcut, this error is printed in the devtools console of Code:

  ERR (this.configurationService.getValue(...) || []).filter is not a function: TypeError: (this.configurationService.getValue(...) || []).filter is not a function
    at Tn.getAssociationsForResource (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2164:12327)
    at Tn.getContributionPoint (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2164:13461)
    at Tn.resolveEditorOverride (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2164:11179)
    at A.openEditor (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2290:16803)
    at oi.openAnything (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2264:16981)
    at Object.accept (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2264:16269)
    at file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:634:43044
    at a.fire (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:60:1836)
    at file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:568:40992
    at a.fire (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:60:1836)
    at HTMLDivElement.<anonymous> (file:///C:/Users/oliver/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:568:51547)

I initially noticed this issue in WSL, but it reproduces (as the system info should indicate) on Windows with all extensions disabled.

Insiders (Commit: 40d5e67) works as expected even in WSL with all extensions enabled.

VS Code version: Code 1.56.2 (054a929, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19042

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6850K CPU @ 3.60GHz (12 x 3592)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.87GB (26.20GB free)
Process Argv --folder-uri=vscode-remote://wsl+Ubuntu/home/oliver/projects/cbc-kitten-scientists --remote=wsl+Ubuntu --crash-reporter-id 05565d81-cfc4-40de-88df-1c479bbe1bcd
Screen Reader no
VM 0%
Extensions: none
@oliversalzburg

This comment has been minimized.

@egamma
Copy link
Member

egamma commented May 17, 2021

reopening in favor of #123917

@bpasero bpasero assigned lramos15 and unassigned bpasero May 17, 2021
@bpasero bpasero added the workbench-editor-resolver Issues resolving the editor inputs label May 17, 2021
@lramos15
Copy link
Member

\duplicate #123749

@lramos15 lramos15 added the *duplicate Issue identified as a duplicate of another issue(s) label May 17, 2021
@ian-byrne
Copy link

ian-byrne commented May 18, 2021

All the issues related to this I see are now closed, however, in the standard VS Code I still cannot open any files. Insiders is working as expected. This error appeared after I turned off all extensions and tried to open several .py files and my vscode settings .json. No idea if this could be the issue though. I switched over to insiders which is no biggie, but still thought i'd mention this was still an issue for me.

DevTools failed to load SourceMap: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/054a9295330880ed74ceaedda236253b4f39a335/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout

VS Code version:

Version: 1.56.2
Commit: 054a929
Date: 2021-05-12T17:44:30.902Z (6 days ago)
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
V8: 8.9.255.24-electron.0
OS: Darwin x64 20.4.0

System Info:
Big Sur 11.3.1
Macbook Pro '13
Apple M1 chip, 16GB

@lramos15
Copy link
Member

@ian-byrne It's most likely due to your settings.json syncing a new editorAssociations setting from insiders to stable. My suggestion would be to use insiders for now or erase the editor association setting and then sync it to stable. The error message you posted is different than everyone else's. Let me know if that doesn't work.

@ian-byrne
Copy link

@lramos15 Yes, that appeared to be the issue, thank you! The editor associations were not in array format.

@changkun
Copy link

@lramos15 Thanks!

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) workbench-editor-resolver Issues resolving the editor inputs
Projects
None yet
Development

No branches or pull requests

7 participants
@egamma @bpasero @oliversalzburg @lramos15 @changkun @ian-byrne and others