MoeIDE icon indicating copy to clipboard operation
MoeIDE copied to clipboard

Text editor background crashes after VS 16.3

Open red-gezi opened this issue 6 years ago • 11 comments

Visual Studio 2019更新到16.3.0后会在打开项目后数秒内崩溃,禁用掉MoeIde扩展后方可正常使用

red-gezi avatar Sep 25 '19 09:09 red-gezi

I can confirm MoeIDE is broken on 16.3. Still broken on 16.3.1.

cotti avatar Sep 27 '19 12:09 cotti

Seems to work for me on 16.3.1 (with Light Transparent theme), but when I re-open Visual Studio and load into a project it opens completely black with a corrupted theme, but after my account authorizes and my roaming settings kick in, it fixes itself and displays the background with the right theme.

I believe the crashing and the theme corruption are related to roaming settings. Are you logged in with a VS/MS account, @cotti ?


An English translation of the original issue: "After Visual Studio 2019 is updated to 16.3.0, it will crash within a few seconds after opening the project. After the MoeIde extension is disabled, it can be used normally."

jacksonrakena avatar Sep 28 '19 06:09 jacksonrakena

The crash happens in "transparency look" for text editor. Current solution is changing some visual element's background to VisualBrush pointing to the image control. But in 16.3, some converter expects the background to be SolidColorBrush. Consider inserting new element instead of injecting existing element.

huoyaoyuan avatar Sep 29 '19 09:09 huoyaoyuan

Seems to work for me on 16.3.1 (with Light Transparent theme), but when I re-open Visual Studio and load into a project it opens completely black with a corrupted theme, but after my account authorizes and my roaming settings kick in, it fixes itself and displays the background with the right theme.

I believe the crashing and the theme corruption are related to roaming settings. Are you logged in with a VS/MS account, @cotti ?

An English translation of the original issue: "After Visual Studio 2019 is updated to 16.3.0, it will crash within a few seconds after opening the project. After the MoeIde extension is disabled, it can be used normally."

I have the same problem.

Yoshinosido avatar Sep 30 '19 10:09 Yoshinosido

Seems to work for me on 16.3.1 (with Light Transparent theme), but when I re-open Visual Studio and load into a project it opens completely black with a corrupted theme, but after my account authorizes and my roaming settings kick in, it fixes itself and displays the background with the right theme.

I believe the crashing and the theme corruption are related to roaming settings. Are you logged in with a VS/MS account, @cotti ?

I happen to be logged in, yes. I only use this account on this machine, however. Additionally, if it helps I use the Dark Transparent theme.

cotti avatar Oct 01 '19 14:10 cotti

Just tried logging off. MoeIDE still crashes as soon as I open a file.

cotti avatar Oct 01 '19 15:10 cotti

I may have a solution to keep using this tool by install ClaudiaIDE extension. This seems can change the way to draw the coding forms , thus solve the problem (At least it works).

(If the page turn grey or something , just go to the setting and click the MoeIDE then confirm. Or you can change the ClaudiaIDE settings maybe) But when dealing with the aspx, the main page turns dark. It's hard to see unless block the MoeIDE, so i still hope this extension can be updated.

shadowxiehao avatar Oct 10 '19 13:10 shadowxiehao

By the way, if you still need to deal with something like aspx, just find a new picture and change the setting. Take a total white image for example, set the transparency "1" in ClaudiaIDE, the result is in the screenshot below. This won't influence other pages but the transparency. This means you can set an exclusive picture just for the aspx or someting likes. image image

shadowxiehao avatar Oct 10 '19 13:10 shadowxiehao

再说一点,如果关闭所有的页面后在原来页面的位置截图,然后再将ClaudiaIDE的图片设置为你的截图,透明度设为1,这样就能在asp.net项目中也能有和别的项目一样的体验. image

shadowxiehao avatar Oct 10 '19 14:10 shadowxiehao

@shadowxiehao Displaying background in text editor is the most hacky work in this extension. But I'm now tired of that because of better code colorization.

huoyaoyuan avatar Oct 11 '19 09:10 huoyaoyuan

After updated to 16.4, I'm finding it working again and no longer crashes. Can you have a try of it? Note: it only crashes when some editor is open. You can select "Start without code" to avoid that.

I'll make the code more defensive.

huoyaoyuan avatar Dec 05 '19 13:12 huoyaoyuan