Possible race condition with mason v2 #1930
Replies: 1 comment
-
|
It looks like I had an (older?) entry in the It's the first entry that I have now removed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I maintain mason-tool-installer and I'm seeing a potential race condition re: mason v2.
mason-tool-installer calls mason-registry.refresh(callback) and the callback calls mason-lspconfig.get_mappings(). At this point I (sometimes) get the error:
The error suggests to me that the JSON has been overwritten and is still 0 bytes long at the time mason-tool-installer calls
get_mappings().If I look at the mason log (set to DEBUG) I see:
I can say that this never occurred with v1, but I realize I may need to make a change on my end for v2. Or maybe this is a race condition in v2. My question is: which, if either of those possibilities, is it?
I can provide a lot more information if needed. I just need to know what is required. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions