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

JetBrains IntelliJ IDEA and other IDEs disappearing from alttab #1249

Closed
dvcrn opened this issue Nov 24, 2021 · 32 comments
Closed

JetBrains IntelliJ IDEA and other IDEs disappearing from alttab #1249

dvcrn opened this issue Nov 24, 2021 · 32 comments
Labels
bug Something isn't working unclear Need help from the author to provide more information to flesh out the issue unreproducible Need help from the author to reproduce the issue

Comments

@dvcrn
Copy link

dvcrn commented Nov 24, 2021

Describe the bug

Continuation from #824

I have repeatedly the issue that jetbrains stuff just vanishes from the alt-tab after longer working sessions. Not doing any fullscreen settings here and keep it in a normal window all the time.

Only after restarting IDEA, it shows back up. Restarting alt-tab does not help. Restarting either alt-tab or IDEA fixes this

IDEA and other apps are installed through jetbrains toolbox

Screenshots / video

Screen Shot 2021-11-24 at 11 09 23

Screen Shot 2021-11-24 at 11 09 24

Steps to reproduce the bug

I'm not actually sure. I tested this with CLion, IDEA Ultimate and Goland, and they all disappear after a longer working session (a couple hours)

@dvcrn dvcrn added the bug Something isn't working label Nov 24, 2021
@lwouis
Copy link
Owner

lwouis commented Nov 24, 2021

Restarting alt-tab does not help.

This is interesting/unexpected. usually issues with windows missing from AltTab are because AltTab may have missed an event or there was a transition. Here it doesn't show after a restart.

It would seem to indicate that the windows not shown on AltTab may be considered "not real windows". Could you please show screenshots/videos of exactly which windows are not showing but you think should show. The best would be a video where you show the app windows, AltTab thumbnails, and narrate what you think is wrong

@lwouis lwouis added the unclear Need help from the author to provide more information to flesh out the issue label Nov 24, 2021
@Dimezis
Copy link

Dimezis commented Nov 24, 2021

I have the same problem both with IntelliJ IDEA and Android Studio (basically the same thing).
Except restarting alt-tab always helps in my case.
Basically, if the IDE was started after alt-tab, it's never shown. If it's started before alt-tab, it's being detected just fine.

M1 Max
Android Studio Bumblebee | 2021.1.1 Beta 3
macOS 12.0.1
AltTab 6.28.0

@dvcrn
Copy link
Author

dvcrn commented Nov 24, 2021

Thanks for chiming in! I just tried it again and yu are right, restarting alt-tab does help. Sorry for misreporting this.

JetBrains stuff is getting sorted at the end of the alt-tab switcher so I didn't notice it was in the list. So yeah I confirm what @Dimezis said, restarting alt-tab does fix this

@lwouis
Copy link
Owner

lwouis commented Nov 24, 2021

Can one of you please share a video so i can see which windows are having this issue?

I need more data to investigate. Video, screenshot, what's specific about these windows, when does it happen, etc.

A first step would be to share a video 👍

@lwouis lwouis added the unreproducible Need help from the author to reproduce the issue label Nov 24, 2021
@Dimezis
Copy link

Dimezis commented Nov 24, 2021

https://drive.google.com/file/d/17aqCcFlzpOMae7xTCkvppbKLSvtCCldW/view?usp=sharing
Here's a short video of this bug.
I think it might be related to that "Android Studio Preview needs to be updated" popup.
Sometimes, when this popup doesn't appear before the AS is being opened, AltTab detects it fine.

@dvcrn
Copy link
Author

dvcrn commented Nov 25, 2021

@Dimezis I checked out your video, but I never have the "needs to be updated" popup because I manage my stuff through the toolbox

I tried some actions here that cause a popup to appear (like invalidate caches), but it's still appearing fine for me in Alt-Tab. Couldn't figure out yet what's causing it to disappear. Could you try Invalidate Caches on your end after restarting alt-tab to see if that's also making it disappear?

@lwouis
Copy link
Owner

lwouis commented Nov 25, 2021

@Dimezis so you're saying the windows not showing in AltTab is the following:

  • It happens only when the "Android Studio Preview needs to be updated" popup showed at launch
  • It doesn't show any window then

There are no other scenarios? It seems like it's very specific. Probably different from what @dvcrn is facing.

Could you please share the BundleIdentifier of your Android Studio app? (see how to get it on that thread)

@dvcrn what are the specific windows that disappear for you? Is it all of them, like in @Dimezis video, from launch? Or is it later down the line that a few are missing? These are real windows right, not small popups (small popups are expected to not show in AltTab, by design)

@Dimezis
Copy link

Dimezis commented Nov 25, 2021

It happens only when the "Android Studio Preview needs to be updated" popup showed at launch

Hard to say, I mean this popup appears only once in a while. But when it doesn't appear on subsequent launches, the AS is being detected fine.
Bundle ID - com.google.android.studio-EAP%

@jankatins
Copy link

jankatins commented Dec 4, 2021

I can also confirm that the jetbrains editor (intelij in my case) comes back after a start of alt-tab. I also had a case where closing all jetbrains windows (Intelij + the project selection window) and restarting from the toolbox brought it back.

Could you try Invalidate Caches on your end after restarting alt-tab to see if that's also making it disappear?

Tried that and the thing didn't vanish.

If you have any idea how to debug this further...

@mkocztorz
Copy link

I have same issue. I restarted the entire system and even then problem persisted. However, when I came across this issue I restarted alt-tab and intelij windows are back.
alt-tab Version 6.29.0
macOS 11.6 (20G165) Big Sur

This was referenced Dec 16, 2021
@teamhide
Copy link

Any update here?

@CodeMason
Copy link

Wanted to mention that I am also experiencing this issue.

M1 Max: 12.1
AltTab Version 6.29.0
IntelliJ IDEA 2021.3.1

@luyi404
Copy link

luyi404 commented Jan 24, 2022

Same with GoLand :(
Maybe the JetBrains apps wanna hide from being detected?

M1 Pro Mbp2021 16inch,
macOS: 12.1
AltTab: 6.29.0
GoLand: 2021.3.2

@lwouis
Copy link
Owner

lwouis commented Jan 24, 2022

@luyi404 most likely it's due to Jetbrains product using a Java UI framework instead of native AppKit from Apple. This creates all sorts of problems for accessibility apps like AltTab as a window is often not coded as a NSWindow. Or Dialogs are codes as NSWindow. Etc

@luyi404
Copy link

luyi404 commented Jan 24, 2022

@lwouis Thanks for the reply!

I was wondering if this could be solved by some hard coding? Like doing additional checks for JetBrains products or just apps with Java UI framework (I'm not familiar with client-side development for the macOS platform, so maybe what I'm saying isn't quite feasible) 😃

@CodeMason
Copy link

@lwouis @luyi404 i do not think this it this has to do with java. I have other full screen apps that do the same thing, primarily games (that are very obviously not java).

@dvcrn
Copy link
Author

dvcrn commented Jan 24, 2022

That's the same problem down at the core, no? Those likely also don't use AppKit as their UI framework

I had other issues with Java-based apps and accessibility tools in the past

@lwouis
Copy link
Owner

lwouis commented Jan 24, 2022

Indeed, Java apps are just one non-native approach. There are many others. Anything non-native is likely to not implement accessibility correctly, thus being poorly supported by AltTab and other apps relying on macOS Accessibility APIs.

There are dozens of apps like this that were discussed in previous ticket. Adobe apps, Steam, Electron apps, etc

@jameslkingsley
Copy link

Perhaps an option in AltTab to listen for when an app is launched, and then silently restart AltTab? Restarting always fixes it for me

@lwouis
Copy link
Owner

lwouis commented Jan 24, 2022

@jameslkingsley instead of restarting we could run whatever code is run at start. That would be a bit more reasonable 😅. That being said this approach wouldn't work. Windows come and go at any time, not just when an app is launched. We would need to run this on a schedule since we wouldn't have a particular event to trigger with. In addition, another problem is that on startup AltTab guesses the last-order of windows based on their z-index. It's a guess and is not 100% accurate. Then once it's running it then maintains a correct list of windows and when they have been used last. That one is reliable but comes from observing all sorts of events, which the startup technique has no idea about.

More information in these tickets: https://github.com/lwouis/alt-tab-macos/issues?q=is%3Aopen+is%3Aissue+label%3A%22need+breakthrough%22

@jesusfj710
Copy link

Any chance of getting this fixed? I am able to reproduce it with IntelliJ IDEA and WebStorm Idea. I can provide more information if you tell me what you need.

@weihao
Copy link

weihao commented Mar 7, 2022

Same issue here.

Following

metacodes added a commit to metacodes/alt-tab-macos that referenced this issue Mar 17, 2022
I am able to reproduce the issue by reinstall JetBrains AppCode. The first time I open AppCode after reinstall it, AltTab never show AppCode window. I debug the code on my Mac, I find that AltTab can get the event of app launched but never get the event of finishedLaunching. So I just remove the code runningApplication.isFinishedLaunching. After that, AltTab work well and the issue is fixed.
@vrnvorona
Copy link

@metacodes hope this fix works well and will be merged 🚀

@nt-jjrubio
Copy link

Same issue here.

Following

@AlexZeitler
Copy link

Same for me with JetBrains Rider.

lwouis pushed a commit that referenced this issue Apr 7, 2022
I am able to reproduce the issue by reinstall JetBrains AppCode. The first time I open AppCode after reinstall it, AltTab never show AppCode window. I debug the code on my Mac, I find that AltTab can get the event of app launched but never get the event of finishedLaunching. So I just remove the code runningApplication.isFinishedLaunching. After that, AltTab work well and the issue is fixed.
lwouis pushed a commit that referenced this issue Apr 7, 2022
# [6.32.0](v6.31.0...v6.32.0) (2022-04-07)

### Bug Fixes

* issue with some apps launched before alt-tab ([f97cd74](f97cd74))
* show window of some apps like jetbrains apps ([#1249](#1249) [#1079](#1079) [#1392](#1392)) ([0b85b09](0b85b09))
* show windows of some defective apps like bear.app ([9b5cd42](9b5cd42))

### Features

* add greek and estonian, and update other localizations ([fccae77](fccae77))
@lwouis
Copy link
Owner

lwouis commented Apr 8, 2022

Should be fixed in v6.32.0

@lwouis lwouis closed this as completed Apr 8, 2022
@AlexZeitler
Copy link

Thanks!

I'm using 6.32.0 since yesterday and I didn't face the issue again (until the update it happened multiple times a day).

@perdian
Copy link

perdian commented Apr 10, 2022

I can confirm that the latest version (for me that's 6.33.0) solved the issue for me as well.

Thanks 👍

@dvcrn
Copy link
Author

dvcrn commented Apr 11, 2022

Oh nice! I'll give 6.33 a try then and see how it goes 👍

@weihao
Copy link

weihao commented Apr 11, 2022

Worked, Arduino IDE and IDEA showed up.

Thanks

@AlexZeitler
Copy link

Looks like this is back with https://github.com/lwouis/alt-tab-macos/releases/tag/v6.35.0 (will try to find out which version exactly)

@lwouis
Copy link
Owner

lwouis commented May 6, 2022

@AlexZeitler please open a new ticket with steps to reproduce and a video or screenshots. There is hope to fix only if we have a way to reproduce it consistently.

Also note the discussions about deep architecture changes we would need to do to better support some use-cases: #447 (comment) and #1484

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unclear Need help from the author to provide more information to flesh out the issue unreproducible Need help from the author to reproduce the issue
Projects
None yet
Development

No branches or pull requests