-
Notifications
You must be signed in to change notification settings - Fork 176
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
cider-debug side effect breaks macos window focusing behaviour when using java UI components #610
Comments
I have done some work to track where this is occuring. I suspect the following middlewares may also cause this:
I did some additional work to try and track this down, and it appears you can also recreate it by requiring orchard.classpath doing:
I believe there may be a side effect ordering issue here too, as if you do this, and load up a swing UI before requiring orchard...
It seems to work, as macos creates the menubar for the java process and reuses it. |
This appears to affect Java 8. Updating your Java dependency to JDK 12 appears to fix this. Not sure why. |
I could track this down to two lines of code in orchard and opened an issue there: clojure-emacs/orchard#162 As a consequence, the quickfix is to set the |
Expected behavior
Actual behavior
The above runs the clojure inspector SWING UI widget as you'd expect, however the window can't be switched to with cmd-tab. It also does not have any presence in the application menu bar.
Steps to reproduce the problem
Run the above command on macos (I'm using macos Mojave). If you run the above without the cider middleware you will get the expected macos windowing behaviour e.g. this works:
Environment & Version information
cider-nrepl version
E.g. 0.11.2
Java version
Operating system
The text was updated successfully, but these errors were encountered: