-
Notifications
You must be signed in to change notification settings - Fork 118
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
File watcher does not run #3
Comments
I have a similar problem. |
When you create a figure, the watcher should normally start watching the directory. |
Hello Gilles, This is what happens when I try to use inkscape-figures, this video also contains what roots looks like and what happens when I execute watch. |
Thanks! What I said wasn't correct. Creating a figure doesn't start the file watcher, it merely adds the folder to the list of folders that should be watched. Actually starting the watcher should be done by executing Please edit and save the figure you've just created. I think (and hope) that now the script will compile the figures as expected. Please report back! |
Hi Gilles, Here is a recording of what happens when I run the watcher and create the file It doesn't seem to be compiling the figure correctly but it is generating the pdf_tex. After that if I run the watcher again the output is as expected (my vim seems to glitch, but I believe that's unrelated and that usually doesn't happen) |
Thanks Gilles! I am not at a place were I can try your last recommendation, but I did look at this some more yesterday. I was able to successfully create the .pdf_tex file and compile the document without any error if I manually went back to vim after Ctrl-f opened inkscape and ran the command
After this I can edit the figure, save it, and compile the document successfully. However, If I recall correctly it requires me to manually call the By the way I am running Ubuntu linux from a Acer chromebook through a crouton. |
I get the same result as cuppa with your most recent suggestion. The only way I can get the figure to appear properly is if it implement the watch command after hitting Ctrl-f and before Ctrl-s in inkscape. |
Hi Gilles, Do you have any suggestions for when/how to run the watch command? Thanks, |
@mcgoldba Have you come up with a workaround? |
Not yet. I haven't had time to look at it recently. I did try to start the watcher with a revised vim mapping for Ctrl-f... but it didn't work. I had something like:
|
What version of inkscape and python are you using? I've added some debugging options to version 1.0.1.
Now, if you run
you should get some debugging output. Now, in another terminal, execute
and select "Figure 1". Upon saving, the directory should contain "figure-1.pdf_tex" or something similar. |
Hi Gilles, I currently am using python3.7 and am using inkscape version 0.92.3, Here is the the output of the watch command:
Here's a video of me using inkscape figures, and the output. |
It looks like everything is working just fine? Whenever you save the svg, the figure gets recompiled and the |
I am using Inscape 0.91 r13725. Here is the output:
It seems that the .pdf_tex file is created correctly in this casea, and when I run within vim using the command with the debugger running. If I try to run without the debugger active, no .pdf_tex file is created. |
When I run inkscape-figures watch, in a terminal somewhere else, and then start editing my document and adding figures it works! |
This comment has been minimized.
This comment has been minimized.
Closing this issue as it looks like it is working for most people. If anyone still has similar problems, feel free to open a new issue. |
After hitting Ctrl-F on a line with the figure name in my .tex file, steps 1 thru 5 execute properly, but the file watcher (step 6) does not run immediately after opening the .svg template, Vimtex returns a compile error
The :VimtexCompileOutput is:
Where is the "inkscape-figures watch" command executed? Should this be added to the vim mapping?
The text was updated successfully, but these errors were encountered: