Fig autocomplete window displays at wrong position of vscodium window
Checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctorin the affected terminal session - [X] I have run
fig restartand replicated the issue again
Operating system
macOS 12.6.1 (21G217)
Expected behaviour
The autocomplete window should stick to the cursor in the terminal panel in a vscodium window.
Actual behaviour
The autocomplete window displays in a wrong position within a vscodium window.
Steps to reproduce
No response
Environment
fig-details:
- 2.7.7
os-info:
- macOS 12.6.1 (21G217)
environment:
- shell: /bin/zsh
- terminal: vscode
- exe-path: /usr/local/bin/fig
Can you run echo $__CFBundleIdentifier inside of VSCodium? Also what version of VSCodium are you using?
Finally, can you check to see if Fig working in a normal VSCode installation?
❯ echo $__CFBundleIdentifier
com.visualstudio.code.oss
VSCodium info
Version: 1.70.2
Release: 22230
Commit: 6c122d9b2d1af2c37bd55caad614321eb53b342f
Date: 2022-08-18T00:40:55.241Z (2 mos ago)
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Darwin x64 21.6.0
It seems working correctly in VSCode. It was working correctly in VSCodium. This incorrect behavior appeared recently after certain fig updates (sorry I haven't tracked version change.)
Hi just found this, experiencing the same here. On my case using IntelliJ
❯ echo $__CFBundleIdentifier
com.jetbrains.intellij
IntelliJ IDEA 2021.3.2 (Ultimate Edition)
Build #IU-213.6777.52, built on January 28, 2022
I'm experiencing the same issue in VSCodium (1.73.1) on MacOS (12.6.1). When working on two screens fig even appears on the other screen, where I don't have a VSCodium window open. Reinstalling didn't help either. First it was working fine, the bug also begun appearing approximately three weeks ago. I'm running the newest version of fig (2.7.9).
Also experiencing the same issue in IntelliJ IDEA 2022.3 (Ultimate Edition)
The same here, IntelliJ WebStorm 2022.3.1, MacOS Ventura 13.1. Autocomplete shows on Mac's screen, even though the IDE window is on another, external screen
I am also experiencing this issue. Using a multi-monitor setup on MacOS 12.6.3 in Alacritty terminal 0.11.0 with fig_cli 2.14.0. it is working correctly in iTerm2 on the same system.
Same here with VSCode 1.76 on MacOS 13.2.1 with two monitors. Sometimes restarting the PC renders the window correctly only for it break randomingly again.

Temporary Solution (iTerm +Fig): I managed to "solve" this by having a native zsh terminal running in the same desktop as iTerm. By keeping the terminal session active in the background, the autocomplete window now sticks to the cursor as expected in both vscode and iTerm.
While this workaround addresses the immediate problem, I believe there may still be an underlying issue that needs to be addressed. I hope this information helps in diagnosing and fixing the problem in future updates.
On a fresh OS install, I have also started facing this issue. Same machine, just yesterday with old setup, everything was working fine. Now on a new install, autocomplete window is coming up in a separate location.
Same issue for me on Alacritty MacOS 13.5.2 with single monitor. The autocomplete window was working fine since I used Fig, but now it appears on the left bottom corner. Fig works fine on the Terminal app. I've tried restart Alacritty and Fig. Still not working.
Running Fig doctor on Alacritty, all item in the list are checked.
Running Fig diagnostic I get:
fig-details:
2.17.0
hardware-info:
model:
model-id:
chip-id: Apple M1 Max
os-info:
macOS 13.5.2 (22G91)
environment:
shell: /bin/zsh
terminal: alacritty
exe-path: /opt/homebrew/bin/fig
install-method: brew
env-vars:
FIG_SET_PARENT_CHECK: 1
FIG_TERM: 2.17.0
bin
SHELL: /bin/zsh
TERM: xterm-256color
__CFBundleIdentifier: org.alacritty
Running Fig debug app I get:
Running the Fig.app executable directly from /Applications/Fig.app.
You will need to grant accessibility permissions to the current terminal (Alacritty)!
error: No such file or directory (os error 2)
But I've granted accessibility permissions to both Alacritty and Fig.
Restarting my Mac seems to make it work.