rojo-rbx / vscode-rojo

Visual Studio Code plugin for Rojo
https://marketplace.visualstudio.com/items?itemName=evaera.vscode-rojo
Mozilla Public License 2.0
36 stars 25 forks source link

TypeError: Cannot read property 'globalState' of undefined #53

Closed cyrus01337 closed 2 years ago

cyrus01337 commented 3 years ago

Issue

The title is an error that pops up that ends up breaking Rojo indefinitely, with "strenuous" workarounds. image

Reproduction Steps

I am able to replicate this error by spinning the studio extension up before the Rojo server has started via Ctrl+P > Rojo: Start server with last used project file with the error being rather persistent even when re-opening Visual Studio Code, reinstalling the extension and/or reimporting my place from a .rbxlx file via rbxlx-to-rojo.

Note

There is uncertainty as to whether being in Zen Mode would cause any problems as there is a setting that mutes notifications.

Conclusion

An obvious one would be to wait until the notification appears then start the server like any individual with a normal amount of patience, however, I feel as if there could be a more elegant way to notify the developer of their impatience; to mitigate such an error from seemingly breaking the extension; either/both.