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

0
17 comments

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. FiraCodeHaskligMonoid or PragmataPro) the Enable font ligatures option will be active in Settings | Editor | Font.

0
Avatar
Permanently deleted user

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.

0

Have you tried to install it with JB SDK Bintray Downloader plug-in? Please attach Help | About dialog info.

0
Avatar
Permanently deleted user

I have tried that, and it gave me a new option "Reset to default" when I use "help -> find action -> "Switch IDE Boot JDK"

0

You should get the action Get JB SDK. Have you followed the instructions at https://intellij-support.jetbrains.com/hc/en-us/articles/206544879:

  1. Install the JB SDK Bintray Downloader plugin (screenshot).
  2. Start the IDE, use Help | Find Action (Ctrl+Shift+A or Cmd+Shift+A on Mac), type "Get JB SDK", press Enter

 

0
Avatar
Permanently deleted user

Ran through that, clicked install and intelliJ closes after a couple seconds (doesnt tell me its done anything though).  

0
Avatar
Permanently deleted user

https://pastebin.com/QvBUaJQT  

Ran "Switch Boot JDK" again, but still shows me using opendjk

0

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.

0
Avatar
Permanently deleted user

Shall I just paste it in directly? I used pastebin just because the file is massive. 

0

It is better to paste to pastebin.

Have you tried to define IDEA_JDK_64 and point it to the bundeld JDK?

0
Avatar
Permanently deleted user

https://pastebin.com/c8efDtBP Hopefully this one doesn't expire. 
I believe I have done all of the above steps.

0

Thanks. Could you provide the output for echo $IDEA_JDK_64 command in terminal? Please also try to disable MaterialThemeUI plugin. Thank you.

0
Avatar
Permanently deleted user

That returns a blank line in my terminal. 

Disabled the plugin and now using Darcula.

0

Please try to set the IDEA_JDK variable in terminal:

export IDEA_JDK=<IDEA_HOME>/jre64 

where <IDEA_HOME> is the path to IDE installation. 

E.g. on my machine the path to the bundled IDE jre is 

/home/andrey/JetBrains/idea-IU-181.4668.14/jre64

And then launch IDE from terminal:

cd <IDEA_HOME>/bin
./idea.sh

 

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

/home/andrey/.IntelliJIdea2018.1/config/idea.jdk

And launch IDE.

 

What JDK will be displayed in about dialog? Please post all content from About dialog here.

 

0
Avatar
Permanently deleted user

In my `.profile` I added

export IDEA_JDK="/usr/share/intellijidea-ce/jre64"

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 

/usr/share/intellijidea-ce/jre64`

However that line causes them to stop working even via the ./idea.sh 

0
export IDEA_JDK="/usr/share/intellijidea-ce/jre64"

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.

0

Please sign in to leave a comment.