lwouis / alt-tab-macos

Windows alt-tab on macOS
https://alt-tab-macos.netlify.app
GNU General Public License v3.0
10.98k stars 332 forks source link

Missing Window: VSCode (w/ Remote SSH Extension) #1302

Closed AlJohri closed 2 years ago

AlJohri commented 2 years ago

Describe the bug

I'm running into a strange error where VSCode is missing from AltTab when running using the Remote SSH plugin.

Screenshots / video

I recorded a video of the bug:

Alt text

Steps to reproduce

I think there's probably an easier way to reproduce this locally. I will post a comment if/when I figure that out. I think it just has to do with starting new instances of an application from the CLI, as opposed to anything to do with SSH, but I included the instructions for completeness.

  1. Install VSCode on your laptop with the CLI and the Remote SSH extension.
  2. SSH into any server.
  3. Run the following function which SSH's back into your laptop from the server and starts VSCode via the code CLI using the Remote SSH plugin.

    rcode() {
        proj=$(realpath "$1")
        client=$(cut -d' ' -f1 <<<"$SSH_CONNECTION")
        server=$(cut -d' ' -f3 <<<"$SSH_CONNECTION")    
        ssh $client /opt/homebrew/bin/code --folder-uri "vscode-remote://ssh-remote+$server$proj"
    }

    Note: Replace /opt/homebrew/bin/code with the absolute path of your VSCode code CLI. It is /usr/local/bin/code for intel mac if installed via homebrew.

    1. Run Alt-Tab Show and see no VSCode window.
lwouis commented 2 years ago

Can you confirm that the issue doesn't happen with normal CLI launch of code? It's specific to this remote plugin setup, correct?

Have you tried contacting the makers of this extension? It's likely on their side

AlJohri commented 2 years ago

Honestly, I think my VS Code is screwed up somehow. I'm getting this error when I even just double click on it, even after re-installing. I'll restart / debug further and update if the issue persists after I fix VSCode.

The application "Visual Studio Code" is not open anymore.
Screen Shot 2021-12-29 at 11 29 07 AM

.

AlJohri commented 2 years ago

I completely removed VSCode as per these instructions and reinstalled. All working now with Alt-Tab!

That was certainly weird. Thanks for the quick response! Closing this issue.

AlJohri commented 2 years ago

Weird, just wanted to report that this somehow occurred again a few hours after it working smoothly. Will dig in further later.

vmjorge commented 1 year ago

Hi, I have the same issue. VSCode not showing in alttab.

lwouis commented 1 year ago

Most likely an issue on VSCode side, so please contact their support. Could also be due to #1324 in some cases.