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 source file #94931

Closed
hiriumi opened this issue Apr 10, 2020 · 24 comments
Closed

Unable to open source file #94931

hiriumi opened this issue Apr 10, 2020 · 24 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Milestone

Comments

@hiriumi
Copy link

hiriumi commented Apr 10, 2020

Issue Type: Bug

As of this morning, I'm unable to open any file. I use it on Mac and I even removed ~/.vscode to see if this error goes away. Here is the error.

Unable to open 'myfilename.py': Assertion Failed: argument is undefined or null.

This is really preventing me from using VS Code although I could use different text editor. I would like to know why this is happening possibly have a fix for it.

Thank you!

VS Code version: Code 1.44.0 (2aae1f2, 2020-04-08T08:23:56.137Z)
OS version: Darwin x64 18.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz (8 x 2800)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 16.00GB (4.66GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
@RMacfarlane
Copy link
Contributor

RMacfarlane commented Apr 10, 2020

@hiriumi Does this happen with all file types, not just .py? Can you run the command "Developer: Toggle Developer Tools" and check what is in the console?

@RMacfarlane RMacfarlane added the info-needed Issue requires more information from poster label Apr 10, 2020
@hiriumi
Copy link
Author

hiriumi commented Apr 10, 2020

@RMacfarlane
Thank you very much for your reply.
This issue happens to all files as far as I tried.

I checked the console and here is what I found.

/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1611   ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
console.ts:137 [Extension Host] ApplicationInsights:CorrelationIdManager [{…}]
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166

I wonder what I did wrong?

@RMacfarlane
Copy link
Contributor

Thanks for the info! Can you also try opening the Output Panel and checking what is in "Log (Extension Host)"?

@hiriumi
Copy link
Author

hiriumi commented Apr 10, 2020

Sorry I should have attempted to open a file after I opened the developer tool. Here is what the actual error looks like.

/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1611   ERR No application in the Launch Services database matches the input criteria.: Error: No application in the Launch Services database matches the input criteria.
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:327)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:875)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:295)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.relayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:500:960)
    at S.onViewChange (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:497:934)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:499:163
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at e.doSetActiveEditorPane (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4510:898)
    at e.doShowEditorPane (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4509:969)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4509:702)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5979:927
    at e.doShowEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:73)
    at e.doOpenEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5979:726)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5978:800)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5785:728
    at e.editorOpenHandler (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6675:935)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5785:699)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6651:387
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at Object.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2577:128)
    at Object.onSelection (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2577:72)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2576:439
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at F.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:909:163)
    at N.onPointer (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:892:396)
    at N.onPointer (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1055:711)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at HTMLDivElement.o (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:105:737)
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:327)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:875)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:295)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at v.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:523:704)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:532:406)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:537:947)
    at T.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5990:678)
    at t.CenteredViewLayout.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:505:812)
    at e.doLayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6004:27)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6003:911)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.relayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:500:960)
    at S.onViewChange (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:497:934)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:499:163
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at e.doSetActiveEditorPane (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4510:898)
    at e.doShowEditorPane (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4509:969)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4509:702)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5979:927
    at e.doShowEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:73)
    at e.doOpenEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5979:726)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5978:800)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5785:728
    at e.editorOpenHandler (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6675:935)
    at e.openEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5785:699)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6651:387
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at Object.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2577:128)
    at Object.onSelection (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2577:72)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2576:439
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at F.open (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:909:163)
    at N.onPointer (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:892:396)
    at N.onPointer (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1055:711)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at HTMLDivElement.o (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:105:737)
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:327)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:875)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:295)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at v.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:523:704)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:532:406)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:537:947)
    at T.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5990:678)
    at t.CenteredViewLayout.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:505:812)
    at e.doLayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6004:27)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6003:911)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at v.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.relayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:500:960)
    at S.onViewChange (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:497:934)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:499:163
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at e.fire (file:/
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:327)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:875)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:295)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at v.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:523:704)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:532:406)
    at p.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:537:947)
    at T.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5990:678)
    at t.CenteredViewLayout.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:505:812)
    at e.doLayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6004:27)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:6003:911)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:521:145)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at v.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:495:384)
    at m.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:512:916)
    at f.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:490:499)
    at S.layoutViews (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:502:826)
    at S.relayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:500:960)
    at S.onViewChange (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:497:934)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:499:163
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:821)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:95:325
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:96:219
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.d
notificationsAlerts.ts:40 Unable to open 'filename_here.py': Cannot read property 'other' of null.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
doHandleOpenEditorError @ editorGroupView.ts:984
(anonymous) @ editorGroupView.ts:912
async function (async)
(anonymous) @ editorGroupView.ts:901
doShowEditor @ editorGroupView.ts:899
doOpenEditor @ editorGroupView.ts:882
openEditor @ editorGroupView.ts:818
(anonymous) @ editorService.ts:1127
(anonymous) @ explorerViewlet.ts:210
openEditor @ editorService.ts:1126
(anonymous) @ explorerView.ts:437
fire @ event.ts:587
open @ listService.ts:559
onSelection @ listService.ts:554
(anonymous) @ listService.ts:515
fire @ event.ts:587
(anonymous) @ event.ts:56
(anonymous) @ event.ts:810
fire @ event.ts:587
_set @ abstractTree.ts:1013
set @ abstractTree.ts:1003
setSelection @ abstractTree.ts:1212
onPointer @ listWidget.ts:618
onPointer @ abstractTree.ts:1131
fire @ event.ts:589
(anonymous) @ event.ts:56
fire @ event.ts:587
o @ event.ts:16
log.ts:197   ERR Cannot read property 'isReadonly' of undefined: editor id workbench.editors.files.textFileEditor: Error: Cannot read property 'isReadonly' of undefined: editor id workbench.editors.files.textFileEditor
    at e.updateEditorContextKeys (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5536:7)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5533:280
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.doHandleActiveEditorChangeEvent (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5773:318)
    at e.handleActiveEditorChange (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5773:116)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5773:428
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.doCloseActiveEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5983:24)
    at e.doCloseEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5982:406)
    at e.doHandleOpenEditorError (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5981:58)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:40
log.ts:197   ERR Cannot read property 'isReadonly' of undefined: editor id workbench.editors.files.textFileEditor: Error: Cannot read property 'isReadonly' of undefined: editor id workbench.editors.files.textFileEditor
    at e.updateEditorContextKeys (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5536:7)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5533:377
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5773:488
    at e.fire (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:99:801)
    at e.doCloseActiveEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5983:24)
    at e.doCloseEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5982:406)
    at e.doHandleOpenEditorError (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5981:58)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:40
notificationsAlerts.ts:40 Unable to open 'filename_here.py': Assertion Failed: argument is undefined or null.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
doHandleOpenEditorError @ editorGroupView.ts:984
(anonymous) @ editorGroupView.ts:912
async function (async)
(anonymous) @ editorGroupView.ts:901
doShowEditor @ editorGroupView.ts:899
doOpenEditor @ editorGroupView.ts:882
openEditor @ editorGroupView.ts:818
(anonymous) @ editorService.ts:1127
(anonymous) @ explorerViewlet.ts:210
openEditor @ editorService.ts:1126
(anonymous) @ explorerView.ts:437
fire @ event.ts:587
open @ listService.ts:559
onSelection @ listService.ts:554
(anonymous) @ listService.ts:518
fire @ event.ts:587
(anonymous) @ event.ts:56
fire @ event.ts:587
(anonymous) @ event.ts:56
fire @ event.ts:587
open @ listWidget.ts:1633
onPointer @ listWidget.ts:621
onPointer @ abstractTree.ts:1131
fire @ event.ts:589
(anonymous) @ event.ts:56
fire @ event.ts:587
o @ event.ts:16
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:327)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:875)
    at e.layout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:295)
    at e.relayout (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5987:598)
    at e.updateBreadcrumbsControl (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5942:211)
    at e.handleClosedEditors (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5944:786)
    at e.closeEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5944:248)
    at e.doCloseEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5982:483)
    at e.doHandleOpenEditorError (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5981:58)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:40
notificationsAlerts.ts:40 Unable to open 'another_file.sh': Assertion Failed: argument is undefined or null.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
doHandleOpenEditorError @ editorGroupView.ts:984
(anonymous) @ editorGroupView.ts:912
async function (async)
(anonymous) @ editorGroupView.ts:901
doShowEditor @ editorGroupView.ts:899
doOpenEditor @ editorGroupView.ts:882
openEditor @ editorGroupView.ts:818
(anonymous) @ editorService.ts:1127
(anonymous) @ explorerViewlet.ts:210
openEditor @ editorService.ts:1126
(anonymous) @ explorerView.ts:437
fire @ event.ts:587
open @ listService.ts:559
onSelection @ listService.ts:554
(anonymous) @ listService.ts:518
fire @ event.ts:587
(anonymous) @ event.ts:56
fire @ event.ts:587
(anonymous) @ event.ts:56
fire @ event.ts:587
open @ listWidget.ts:1633
onPointer @ listWidget.ts:621
onPointer @ abstractTree.ts:1131
fire @ event.ts:589
(anonymous) @ event.ts:56
fire @ event.ts:587
o @ event.ts:16
log.ts:197   ERR Assertion Failed: argument is undefined or null: Error: Assertion Failed: argument is undefined or null
    at Object.t.assertIsDefined (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:248:124)
    at e.setEditorVisible (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4530:122)
    at e.setEditorVisible (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5421:597)
    at e.setVisible (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4504:692)
    at e.doHideActiveEditorPane (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:522)
    at e.closeEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:4511:670)
    at e.doCloseActiveEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5982:985)
    at e.doCloseEditor (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5982:406)
    at e.doHandleOpenEditorError (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5981:58)
    at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:5980:40
notificationsAlerts.ts:40 Unable to open 'another_file.sh': Assertion Failed: argument is undefined or null.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
doHandleOpenEditorError @ editorGroupView.ts:984
(anonymous) @ editorGroupView.ts:912
processTicksAndRejections @ internal/process/task_queues.js:85
async function (async)
(anonymous) @ editorGroupView.ts:901
doShowEditor @ editorGroupView.ts:899
doOpenEditor @ editorGroupView.ts:882
openEditor @ editorGroupView.ts:818
(anonymous) @ editorService.ts:1127
(anonymous) @ explorerViewlet.ts:210
openEditor @ editorService.ts:1126
(anonymous) @ explorerView.ts:437
fire @ event.ts:587
open @ listService.ts:559
onSelection @ listService.ts:554
(anonymous) @ listService.ts:515
fire @ event.ts:587
(anonymous) @ event.ts:56
(anonymous) @ event.ts:810
fire @ event.ts:587
_set @ abstractTree.ts:1013
set @ abstractTree.ts:1003
setSelection @ abstractTree.ts:1212
onPointer @ listWidget.ts:618
onPointer @ abstractTree.ts:1131
fire @ event.ts:589
(anonymous) @ event.ts:56
fire @ event.ts:587
o @ event.ts:16
console.ts:137 [Extension Host] ApplicationInsights:CorrelationIdManager [{…}]
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166

@bpasero
Copy link
Member

bpasero commented Apr 11, 2020

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

@hiriumi
Copy link
Author

hiriumi commented Apr 11, 2020

@bpasero
Thank you for your reply. My first post to this thread shows Extensions: None, so I don't think it's caused by extension though I will try the option you suggested. Thank you. :)

@hiriumi
Copy link
Author

hiriumi commented Apr 11, 2020

@bpasero
I just tried the code --disable-extensions but I'm still seeing the same issue. FYI.

@hiriumi
Copy link
Author

hiriumi commented Apr 11, 2020

I completely cleared all files generated by VS Code and now I'm able to open files within it. I bet there was a file (or more) that was in a bad state which might have caused the issue.

I ran the following commands based on this article.

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist 
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/

This could be the VS Code (or extension?) bug because it might have generated the file that might have caused the issue although I did not take the steps to pin point the issue. I'm not familiar with debugging VS Code and I'm not sure how I can help but please let me know if there is anything I can do to contribute to the community.

My VS Code is back to the original state but at least I can reconfigure it to my liking again.

Thanks!

@xandi
Copy link

xandi commented Apr 12, 2020

I'm experiencing the same issue on Windows since today (with and without extension enabled)

Version: 1.44.0 (user setup)
Commit: 2aae1f2
Date: 2020-04-07T23:31:18.860Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

@xandi
Copy link

xandi commented Apr 12, 2020

A wrong entry in settings.json caused the problem in my case: "editor.quickSuggestions": null (instead of "editor.quickSuggestions": false)

@merefield
Copy link

merefield commented Apr 12, 2020

Thanks, I had exactly the same issue!

@bonepile
Copy link

Thanks xandi, that was my problem also!

@bpasero bpasero assigned rebornix and alexdima and unassigned bpasero Apr 13, 2020
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug editor and removed info-needed Issue requires more information from poster labels Apr 13, 2020
@bpasero
Copy link
Member

bpasero commented Apr 13, 2020

@rebornix @alexdima I can reproduce when configuring "editor.quickSuggestions": null and restarting, no editor opens anymore.

Would be great if there was a big try-catch around editor options parsing so that we can deal with this better and e.g. show a message to the user + fallback to default options.

This is probably a candidate.

@alexdima alexdima added the freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues label Apr 13, 2020
@alexdima alexdima added this to the April 2020 milestone Apr 13, 2020
@mofixit
Copy link

mofixit commented Apr 17, 2020

same thing happened to me and it was triggered by setting "editor.quickSuggestions": null (instead of "editor.quickSuggestions": false). to change this:

windows
go to command prompt and run this:

  1. %APPDATA%\Code\user
  2. open the settings.json file with notepad or any other editor if vs code doesnt work.
  3. change the "editor.quickSuggestions" value from "null" to "false"
  4. save and exit command prompt. then restart vs code

Mac
follow same process, using the appropriate file path of course, the goal is to find the settings.json file and edit using a text editor so that once saved it reflects on the vs code app.

@frouo
Copy link

frouo commented Apr 20, 2020

Thanks @xandi, removing "editor.quickSuggestions": null in settings.json brings vscode back to normal.

Settings file locations

Depending on your platform, the user settings file is located here:

  • Windows %APPDATA%\Code\User\settings.json
  • macOS $HOME/Library/Application Support/Code/User/settings.json
  • Linux $HOME/.config/Code/User/settings.json

@lacikawiz
Copy link

Why is this closed, if it's not fixed??

I just ran into this with the latest version of VSCode that I installed yesterday. And I didn't add the editor.quickSuggestions": null in settings.json. It was added by VSCode automatically.

Please fix this.

@gjsjohnmurray
Copy link
Contributor

@lacikawiz it is marked as closed and has milestone April 2020 because 59e4b45 is already in 1.45.0-insider and will arrive in the regular release at the end of this iteration.

@alexdima
Copy link
Member

@lacikawiz This is very concerning for me:

"And I didn't add the editor.quickSuggestions": null in settings.json. It was added by VSCode automatically.

AFAICT VS Code does not do that. What extensions do you have installed? It appears that an extension might be doing that.

@lacikawiz
Copy link

I have the following extensions currently:

akamud.vscode-theme-onedark-2.2.1
alefragnani.bookmarks-11.1.0
bungcip.better-toml-0.3.2
ms-vscode.atom-keybindings-3.0.6
akamud.vscode-theme-onelight-2.2.1
bceskavich.theme-dracula-at-night-2.6.0
jamesbirtles.svelte-vscode-0.9.3

I installed them one after the other, so I don't know which might have caused this.

@alexdima
Copy link
Member

@lacikawiz Thank you for the extra information. I searched all of those repositories, but unfortunately, I could not find any matches for quickSuggestions, so I don't think those extensions would edit that via our configuration editing API.

@theblindguidedog
Copy link

I have the same problem but when I changed it from quickSuggestions: null to quickSuggestions: false everything stopped opening including the settings. I have uninstalled VSCode and reinstalled it and it just doesn't want to open any files at all. I am going back to atom. It just works.

@alexdima
Copy link
Member

@theblindguidedog Uninstalling will unfortunately not remove the user settings, so they will persist even after reinstalling, so the bug will reproduce again.

The Insiders build has a fix available and a fix will come to the Stable build in about a week or so.

We did not roll out a recovery update for the Stable build because we have found that, while the severity is critical (the editor doesn't work at all), the incidence is low. Also, VS Code had this problem since November (after doing a blame on the code), so we have shipped with this bug for 6 months, yet the issue is only reported since about 3 weeks.

There appears to be some kind of extension or tutorial that is writing on behalf of / driving people to write "editor.quickSuggestions": null to their user settings.

@theblindguidedog I would like to ask why do you have that setting written in that form in the user settings? Did you follow a tutorial or an extension did that automatically? I'm asking because I would like to reach out to the extension that does this and ask them to stop doing it :).

@mshreevatsa
Copy link

I completely cleared all files generated by VS Code and now I'm able to open files within it. I bet there was a file (or more) that was in a bad state which might have caused the issue.

I ran the following commands based on this article.

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist 
rm -fr ~/Library/Caches/com.microsoft.VSCode
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/
rm -fr ~/Library/Application\ Support/Code/
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/.vscode/

This could be the VS Code (or extension?) bug because it might have generated the file that might have caused the issue although I did not take the steps to pin point the issue. I'm not familiar with debugging VS Code and I'm not sure how I can help but please let me know if there is anything I can do to contribute to the community.

My VS Code is back to the original state but at least I can reconfigure it to my liking again.

Thanks!

You saved me, man, thanks a lot :)

@mattcrowder
Copy link

We fixed this by opening up our settings.json file on disk

/Library/Application Support/Code/User/settings. json

And deleting "editor.quickSuggestion": null

Quit VSCode, brought it back up, and we're good to go.

@bpasero bpasero added the verified Verification succeeded label Apr 30, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 28, 2020
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 freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests