Hi! I’m cross-posting this from <#CRDCFF3RC|androi...
# intellij
g
Hi! I’m cross-posting this from #android-studio. I installed the [JetBrains Mono](https://www.jetbrains.com/lp/mono/) font in Android Studio (macOS) and enabled font ligatures, but it seems to be replacing
->
with a unicode character
, and now even
vim
is doing this replacement in the terminal (even Slack is doing it as I type
-
followed by
>
! None of my code compiles anymore because of the illegal characters that have been inserted. Does anyone know how IntelliJ could affect the whole system in this way (and how I can fix this)? Android Studio 3.5.3
m
That's totally weird. Don't have an answer, but I'm sure some of the first questions will be 'What OS?' and 'What version of IntelliJ?'
g
Can’t believe I forgot to mention it’s macOS 😅
Android Studio 3.5.3
c
Wow, super weird. I'm on Linux and have been using Fira code with ligatures for past several years, ligatures should be rendering feature, they don't (can't?) change the text itself. Maybe MacOS does something weird?
s
Maybe MacOS does something weird?
no, not as far as I know. I use display fonts with ligatures turned on all the time without issue, in both intellij and neovim/iTerm
c
Curiouser and curiouser
c
I’ve been using AS on a Mac with Jetbrains Mono and have not had this issue. Maybe you’ve got some other program running that is doing something weird with the computer’s fonts/text/graphics/etc.
g
@Casey Brooks, which version of AS are you using?
c
The latest, 3.5.3
g
Yeah, ligatures are usually just visual, I’m even using Mono on IDEA with ligatures on
I know it’s a weird issue, but I wouldn’t say it’s two different diseases 😅
Cross-posting has its downsides. Like I mentioned on the other one, I even reinstalled macOS (without wiping, just reinstalling system files) and it did nothing
Screen Recording 2020-02-03 at 14.08.44.mov
Opened https://issuetracker.google.com/148758387 Font ligatures with JetBrains Mono inserts illegal characters
@Casey Brooks, just a couple more questions 🤔 Did you enable font ligatures? Did you install the font through the OS and then select the regular one for the AS Editor (there’s 3 font options, I think)? Did you reboot your Mac anytime after doing that?
c
Yes, ligatures are enabled. I installed the font manually, and then enabled it for AS and IntelliJ. Yes, my computer has been rebooted, and it worked fine before and after that
😐 1
m
For future, maybe 'share' the original post to this channel. Increase the likelihood of people looking at the other conversation before asking their questions. I didn't even think about looking for original post to see what, if any, conversation took place.
👍🏻 1
s
@Gabriel Feo wow that video is blowing my mind rn, this seems like a bug that isn’t physically possible lol
I guess I wouldn’t expect the behavior to be different, but does this problem also manifest in another terminal emulator like iTerm?
also, are you certain you have no other keyboard behavior modifying apps installed like Karabiner for example
g
aText was the culprit! I just migrated my user account to this new Mac, and I set up Android Studio to use Mono and ligatures within the first hour. I didn’t realize aText data wasn’t migrated for some reason, and aText’s examples include a shortcut for an arrow character with -> 🤦🏻
Thanks, @Shawn, @Casey Brooks, and everyone else who contributed 🙂
👍 1
(aText is a typing shortcuts app)