mu-editor / mu

A small, simple editor for beginner Python programmers. Written in Python and Qt5.
http://codewith.mu
GNU General Public License v3.0
1.42k stars 437 forks source link

mu-editor hangs on macOS Big Sur #1147

Closed ged99 closed 3 years ago

ged99 commented 3 years ago

I have been using mu-editor successfully for a while under Catolina on my Mac. Today I upgraded the OS to Big Sur. Now the mu-editor does not open. When I launch it by clicking on the icon, the app just hangs. There are no error messages.

I have to close the application through the "Force Quit Applications". In this window it shows that mu-editor is running but not responding.

I re-installed the editor with the latest version from the website, but this did not work either.

If you are reporting a bug, we would like to know:

Can't provide a log file as the editor does not open.

Please remember to attach a copy of the full log files for Mu. You can get the logs by clicking on the cog icon in the bottom right of the editor window. Click on the logs and use CTRL-A to select all, then CTRL-C to copy and CTRL-V to paste the contents into the issue.

Thank you for contributing to Mu! :-)

iadesdragon commented 3 years ago

@beebopkim Yep, adding that line to mu-editor works like a charm! Thanks a lot for this helpful LiveHack :-)

alsauter commented 3 years ago

@beebopkim Yep, adding that line to mu-editor works like a charm! Thanks a lot for this helpful LiveHack :-)

Hi, could you please go through the process step by step? is it just a line on terminal...? or where? appreciate detail help as I am new to mu editor and using the terminal to run it...but need to get it to work on Mac OSX Sur Thank you

Is it the same as this? @skarlekar

If you are running into Mu Editor hanging on Big Sur, all you have to do is set the environment variable QT_MAC_WANTS_LAYER=1 at the terminal and open the mu-editor app from the terminal as follows:

export QT_MAC_WANTS_LAYER=1
open /Applications/mu-editor.app/

Just place the above in a shell script, make it executable and run the script from the terminal.

carlosperate commented 3 years ago

Hi @alsauter, These workarounds should no longer be necessary if you are using the latest beta releases: https://github.com/mu-editor/mu/releases

If you are still having issue in Big Sur with beta.4 could you open a new issue detailing the problem? Thanks!

alsauter commented 3 years ago

Thanks @carlosperate ::

so that means I only need to download: Mu.Editor.1.1.0b4.dmg and it should work fine on Big Sur? To tell you the truth I am not on Big Sur, I have to fix this problem for a student (that does use Big Sur) using Mu Editor to program the Circuit Playground Express with Circuit Python. So I am trying to go ahead and know as much as I can before helping the student remotely.

Thank you so much.

carlosperate commented 3 years ago

Yes, using beta.4 and these steps should get you set up in Big Sur: https://github.com/mu-editor/mu/issues/1383#issuecomment-810537546