Replies: 11 comments
-
I've skimmed through the code, and it seems that the plugin does not support Latex SDK in WSL. I will try to add this support and perhaps make a pull request several weeks later, if it goes well. |
Beta Was this translation helpful? Give feedback.
-
You might be right, I think the normal TeX Live SDK should support it, but if it has trouble running pdflatex then something may need to be fixed. We should update https://github.com/Hannah-Sten/TeXiFy-IDEA/wiki/WSL-support |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if I missed anything, but For example,
this function does not work for WSL. (but works under both Win and Linux, since .exe can be omitted in Win) I think I'll need to rewrite the code about sdk to fix this. Maybe let all sdks extends a class similar to LatexSdkUtil instead and let WSL override some functions to fix paths. (However, the plugin then can only compile files when a proper project sdk is set) |
Beta Was this translation helpful? Give feedback.
-
The question is, is it the responsibility of the caller or of the |
Beta Was this translation helpful? Give feedback.
-
Indeed, I thought the same thing, so the problem is
In my opinion, it's better to move most funs in After such change, I would replace most calls to Would you agree to this plan? |
Beta Was this translation helpful? Give feedback.
-
No, that util I think evolved from a predecessor of the SDK functionality, and I only partially moved functionality into the SDK classes so I would appreciate if you clean it up :) |
Beta Was this translation helpful? Give feedback.
-
I see. Then, in this case I would create sort of a "NoSdk"(or "UnknownSdk") as the project sdk, so it would still work fine with this "sdk" as long as pdflatex (or other latex compiler) exists. Or, it's also all right to use TexliveSdk, since the fun Anyway, I would try to make it work for such no-sdk case. |
Beta Was this translation helpful? Give feedback.
-
@ZnqbuZ Still interested? Otherwise I'll fix it. |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm still working on it. Debugging on multi platforms takes a lot of time... |
Beta Was this translation helpful? Give feedback.
-
Great! No problem, please ask me if you need help. I have both Windows with WSL and native Arch Linux available. |
Beta Was this translation helpful? Give feedback.
-
Please consider changes in #2381 to avoid conflicts |
Beta Was this translation helpful? Give feedback.
-
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
IntelliJ IDEA 2021.3.3
Operating System
Host: Windows 11
WSL: Kali Linux, Ubuntu
TeXiFy IDEA version
0.7.15
What I did (steps to reproduce)
The plugin cannot recognize TeXLive or MikTeX distribution I installed in WSL, neither manually nor through package manager. (but can still compile .tex files)
When I try to add an SDK, e.g. TeX Live SDK, error messages are like:
Invalid TeX Live SDK home directory: Cannot run program "\wsl$\kali-linux\usr\local\texlive\2021\bin\x86_64-linux\pdflatex": CreateProcess error=3, Cannot find the specific path
Minimal example to reproduce the problem
(if applicable) The full stacktrace of the exception thrown (When I click "Setup SDK")
Beta Was this translation helpful? Give feedback.
All reactions