consulo / consulo-unity3d

Frameworks: Unity3D
Apache License 2.0
103 stars 10 forks source link

Unhandled Exceptions when editing .shader files with CGPROGRAM ... ENDCG block #206

Closed TicTac-93 closed 12 months ago

TicTac-93 commented 12 months ago

Tested with Unity 2020.3.48 and 2022.3.14, Consulo 2023.8

When CGPROGRAM ... ENDCG is present, the editor will lock up and throw an exception (submitted via Consulo here). Sometimes it will highlight the block, which I believe is intended behavior, but other times it will not. In all cases, if those two lines are present it will throw an exception and behave oddly, specifically seeming to block new lines from being created.

VISTALL commented 12 months ago

Hello. I will chech today. Can you provide simple example? and/or gif/video of this bug

VISTALL commented 12 months ago

Reproduced

VISTALL commented 12 months ago

I fixed this issue. Fix avaliable in nightly chanell (https://consulo.help/platform/settings/platformAndPlugins/updateSettings/)

TicTac-93 commented 12 months ago

Got it working, though I had to manually install Consulo v3411 -- The in-app updater was not working for some reason.