question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot choose SDK for MiKTeX on Mac/Linux

See original GitHub issue

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

IntelliJ Ultimate for Apple Silicon (2020.3.2)

Operating System

MacBook Pro (M1) - macOS Big Sur (11.1)

TeXiFy IDEA version

0.7.2

What I did (steps to reproduce)

I followed the Installation instructions here.

  1. I had the Toolbox / IntelliJ already installed
  2. I downloaded MiKTeX from https://miktex.org/howto/install-miktex-mac.
  3. I went with the private TeX installation
  4. I upgraded using the MiKTeX Console and set the option to install missing packages on the fly
  5. Fixing PATH issues I set the path for both zsh and bash, the command pdflatex works in my Terminal. I set the path for GUI applications as well, using both
sudo launchctl config user path "$HOME/bin:$PATH"

and

sudo launchctl config user path "~/bin:$PATH"
  1. I’ve set my TeXshop preferences
  2. I rebooted my pc (I did that several times as sanity check)
  3. I installed the plugin
  4. I created a new LaTeX Project (without an SDK because it won’t let me select any sdk, nothing happens if I press the plus-button to add an sdk)
  5. IntelliJ creates the correct folder structure for me and opens the main.tex file
  6. I’m getting a small banner with the following message:
No LaTeX installation could be found. Please add it to PATH or set up a LaTeX SDK (and reopen this file)

When I hit Setup SDK and choose to add a MiKTex-SDK I’m able to select different folders in my finder. I’ve tried quite some Folders (~/bin, Applications/Contens (and some of the subfolders)) yet I always get the following Error-Message:

Select Home Directory for MiKTeX SDK
The selected directory is not a valid home for MiKTeX SDK

I’ve tried reinstalling the plugin a few times as well as rebooting my computer.

I previously had MacTeX installed on my system, but as this didn’t work with the plugin either I followed the uninstalling guide. However I did only Uninstall TeX itself, I didn’t uninstall the other components as I think they don’t interact with MiKTeX.

Edit: Same Error on the non-m1 version of IntelliJ

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
BUCKFAEcommented, Jan 28, 2021

Exactly. /usr/local/texlive/2020 seems to be the default installation folder.

I changed my SDK to TeX Live and now IntelliJ recognizes the article keyword (hooray 🎉).

However I’m still not getting autocompletion on \euro{} and it still doesn’t tell me that \fracc{}{} is incorrect.

0reactions
PHPiratescommented, Feb 6, 2021
  • Great, then I will add it to the suggested paths, so next time it should suggest the SDK automatically instead of you having to search for which SDK you need.
  • I should add to the Wiki that you can use this SDK type on Mac, because it is not obvious at all. Not sure if adding a separate SDK type is worth it though (maybe if we only show it on Mac, that would make sense).

I have \euro in the autocompletion: image but that the moment that is still in alpha versions only. See the wiki for how to install an alpha version: https://github.com/Hannah-Sten/TeXiFy-IDEA/wiki/Alpha-builds Would be great if you could try out if that works on a Mac too, because I have no idea.

it still doesn’t tell me that \fracc{}{} is incorrect.

  • That’s actually not yet implemented, but good point, we should do that, it shouldn’t be too hard. (https://texify-idea.myjetbrains.com/youtrack/issue/TEX-106)
  • Will add MiKTeX for Linux SDK type
  • I installed MiKTeX on my Arch system, and indeed as you say the structure is very different from MiKTeX on Windows: I have no clue where docs or package sources are. Will check how to support this as best as we can
Read more comments on GitHub >

github_iconTop Results From Across the Web

Install MiKTeX on macOS
Install MiKTeX on macOS. MiKTeX for Mac is distributed as a disk image ( .dmg ) file. If you double click the disk...
Read more >
TeXiFy IDEA - IntelliJ IDEs Plugin
Works best with a LaTeX distribution (MiKTeX or TeX Live) installed. Integrates with the PDF Viewer ... I can't thank you enough, absolutely...
Read more >
TeXstudio - A LaTeX editor
TeXstudio is an integrated writing environment for creating LaTeX documents. Our goal is to make writing LaTeX as easy and comfortable as possible....
Read more >
MiKTeX consistently failing macOS
I wouldn't choose MikTeX as a distribution for macOS, honestly. If someone else can't help you find what specific problem you have, ...
Read more >
Install the Atlassian SDK on a Linux or Mac system
Step 1: Configure your environment · Step 2: Download and install the SDK · Select the installation instructions that best suit you ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found