-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot show preview #1103
Comments
There have been permission problems with the preview on Linux, but it looks like you're on Windows? So that wouldn't be it. |
after I have installed SumatraPDF and Latexforwindows,the problem has been solved,but...I have to install four softwares just for showing the preview,isn't it too much inconvenient for this plugin?hope it can use some api to solve this problem. |
@bmxbmx3 Thanks for reporting back. Yes, it's inconvenient but there's no other easy way to solve it, as far as I know. At least with the release of Inkscape 1.0 it hopefully is one tool (pdf2svg) less to install. |
I get the same error on MacOS.
|
@mirbagheri How did you install Inkscape? Previously we thought that the system temp directory only didn't work when Inkscape was installed as a snap, but if you installed it in a different way and the system temp directory still doesn't work then that's a new case. Can you check if the the following plugin version resolves the issue? |
I am on MacOS. I installed Inkscape 1.0 using the .dmg file. |
Exactly the same error? I changed it so that it tries in your home directory if it fails in the temp directory, so I would at least expect a different path there or an exception popping up if it fails to catch the first exception. |
This is the error I got with the new version: |
Thanks, that does make more sense. It's a bit problematic because we cannot reproduce this on Linux and we don't have a Mac available, but I'm guessing it's a permission issue. Can you run pdflatex from a terminal to compile a document manually in that directory? (Or in your home folder if the temp directory doesn't exist anymore) Instead of trying to run in all kinds of far away directories, I'm thinking maybe we can just run in the project directory, we might have less permissions issues there. I can change this and upload a new version here, if you want to try that. |
I am able to run |
Hm, then it might not be a permission issue after all. But I have no idea what else it could be. The following build does not catch any exception, also does not clean up (to be able to test with the produced files, and see what it did) and runs top-level in your project: |
Ok with this new version I get the following error:
I checked the directory "/Users/xxx/project_dir/tmp15457685598173261521.tmp" exists and contains the right tex file. |
I assume your path does not contain any spaces or other strange characters (currently we do not quote the path, but I think we should fix that anyway). Do you perhaps also need to specify the path to pdflatex in every run configuration? If so, then I think this is the same issue, that on Mac we cannot run the program 'pdflatex' for some reason. |
Thanks @PHPirates! the |
Thanks, I'm glad the workaround works for you until we fixed it properly. |
Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version
intellij 2019.2.4
TeXiFy IDEA version
0.7-alpha.45
What I did (steps to reproduce)
I have followed instructions to install dependencies for showing preview,but the plugin cannot work.
Expected behavior
show preview
Actual behavior
the latex content shows below:
when I clicked the menu tools->latex->equation preview on the equation,it showed below:
it said cannot run program "pdflatex",but i did install it and added it to the system path,how to solve this?
(if applicable) The full stacktrace of the exception thrown
The text was updated successfully, but these errors were encountered: