Font Ligature support
Answered
I am trying to get Ligatures working in IntelliJ 2018, however because of the JDK it wont let me enable them.
I have gone to "help -> find action -> "Switch IDE Boot JDK" -> /usr/lib/jvm/intellij-jdk" But that does not seem to do anything, is there another setting I need to change?
OS: Arch Linux
IntelliJ 2018.1
Please sign in to leave a comment.
Do you mean you are unable to switch IDE to use bundled JDK? When you invoke Switch JDK action do you see [..boot bundled] option in the list? DO you have 32bit or 64bit OS?
You can also use JB SDK Bintray Downloader plug-in to download JetBrains JDK and set it as an IDE boot JDK.
Help | About dialog will show you which JDK is used.
When IDE is running under bundled JDK and you have the font which supports ligature installed (e.g. FiraCode, Hasklig, Monoid or PragmataPro) the Enable font ligatures option will be active in Settings | Editor | Font.
I do not have a boot bundled option, I have:
`/usr/lib/jvm/java-8-openjdk`
`/usr/lib/jvm/default`
`/usr/lib/jvm/default-runtime`
Ran link you provided, I now have
`Reset to default`
I am currently using OpenJDK havent managed to get it to swap.
Have you tried to install it with JB SDK Bintray Downloader plug-in? Please attach Help | About dialog info.
I have tried that, and it gave me a new option "Reset to default" when I use "help -> find action -> "Switch IDE Boot JDK"
You should get the action Get JB SDK. Have you followed the instructions at https://intellij-support.jetbrains.com/hc/en-us/articles/206544879:
Ran through that, clicked install and intelliJ closes after a couple seconds (doesnt tell me its done anything though).
Please attach idea.log.
https://pastebin.com/QvBUaJQT
Ran "Switch Boot JDK" again, but still shows me using opendjk
The log is not available by that link.
It could be that you have set environment variable that is evaluated by IDE and overrides Switch Boot JDK action. Set IDEA_JDK_64 environment variable, pointing to the JDK, bundled with IDE installation - it is checked first in the sequence.
If problem remains, provide idea.log after IDE restart and trying to switch boot JDK.
Shall I just paste it in directly? I used pastebin just because the file is massive.
It is better to paste to pastebin.
Have you tried to define IDEA_JDK_64 and point it to the bundeld JDK?
https://pastebin.com/c8efDtBP Hopefully this one doesn't expire.
I believe I have done all of the above steps.
Thanks. Could you provide the output for echo $IDEA_JDK_64 command in terminal? Please also try to disable MaterialThemeUI plugin. Thank you.
That returns a blank line in my terminal.
Disabled the plugin and now using Darcula.
Please try to set the IDEA_JDK variable in terminal:
where <IDEA_HOME> is the path to IDE installation.
E.g. on my machine the path to the bundled IDE jre is
And then launch IDE from terminal:
or add the <IDEA_HOME>/jre64 path (to the bundled JRE) in idea.config.path/idea.jdk file manually (create this file if it does not exist). E.g. on my systems it is
And launch IDE.
What JDK will be displayed in about dialog? Please post all content from About dialog here.
In my `.profile` I added
Then launched it from the terminal as you said the about says.
IntelliJ IDEA 2018.1.1 (Community Edition)
Build #IC-181.4445.78, built on April 9, 2018
JRE: 1.8.0_152-release-1226-b3 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.16.5-1-ARCH
It now lets me tick the ligature box, if I run it from the terminal (not the desktop icon) and they now show up.
Inside of
`/home/afenwick/.IdeaIC2018.1/config/idea.jdk` I have added
However that line causes them to stop working even via the ./idea.sh
command sets this variable only for current terminal session.
It looks like you have IDEA_JDK set to a different JDK globally. Either unset it and use just idea.jdk (or Switch Boot JDK action in IDE) or set IDEA_JDK variable globally for the user to the IDE bundled JDK. Do not forget to re-login for the changed to take effect.