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

Text editor background crashes after VS 16.3 #22

Open
red-gezi opened this issue Sep 25, 2019 · 11 comments
Open

Text editor background crashes after VS 16.3 #22

red-gezi opened this issue Sep 25, 2019 · 11 comments

Comments

@red-gezi
Copy link

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

@cotti
Copy link

cotti commented Sep 27, 2019

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

@jacksonrakena
Copy link

jacksonrakena commented Sep 28, 2019

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."

@huoyaoyuan
Copy link
Member

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 huoyaoyuan changed the title 一个引起vs2019崩溃问题 Text editor background crashes after VS 16.3 Sep 29, 2019
@Yoshinosido
Copy link

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.

@cotti
Copy link

cotti commented Oct 1, 2019

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
Copy link

cotti commented Oct 1, 2019

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

@shadowxiehao
Copy link

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
Copy link

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
Copy link

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

@huoyaoyuan
Copy link
Member

@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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants