last changes not compiled
Brought to you by:
m_zeising
When the tool "Latex -> PDF" is used to save and build a document intermittently it does not compile the last changes (the resulting pdf corresponds to the previous save).
Note that the latex file does get saved.
It usually does not work as expected once every two times.
Note that when saving manually the latex file all works fine.
I can reproduce this with the following steps:
-create a minimal example latex file.
-do not save it and run "Latex->pdf" (Ctrl+Alt+1) => output is correct
-edit the file
-do not save it and run "Latex->pdf" (Ctrl+Alt+1) => output is correct
-edit the file
-do not save it and run "Latex->pdf" (Ctrl+Alt+1) => output does not reflect the last changes
Which version of the plugin and gedit are you using?
I know I forgot something!
Gedit is version 2.30.2, under Ubuntu Lucid.
I have this issue with both the plugin 0.2rc3 and 0.2.
I have this issue also on another machine, but I think the versions are the same.
Thanks!
Marco
Hi m_zeizing , I am having the same problem.
If it is relevant, I am using the 0.2 rc3 version of Gedit LatexPlugin in Ubuntu 10.04.
My Gedit version is 2.30.2.
After my last comment I downloaded the last version and I had the same problem.
Leandro.
Hi Zeising,
I am writing this comment just to let you know that after the last automatic Ubuntu update ( 02/07/2010) this problem complete disappear for me.
:( Stop to works again
My guess is that document saving and compilation are started in parallel, leading to a race condition. While trying to locate another issue, I ran gedit using valgrind, which makes it run horribly slow. If then invoking any tool (Latex->internal PDF in my case), one can see that the compilation sets off and completes before the saving (which takes 5-10 seconds on a larger document) is done.
To reproduce:
1) execute "valgrind gedit"
2) open some tex file (should be some kb in size)
3) change something
4) invoke tool without saving before
Expected:
Saving completes, then tool is executed. Resulting PDF shows changes from step 3.
Actual:
Saving and tool execute simultaneously, tool finishes before saving. PDF reflects old, pre-save state of document.
Proposed fix:
First invoke saving in gedit, then process tool after (successful?) completion of saving process.
Sorry, I forgot the version information:
Arch Linux
gedit - Version 2.30.4
latex-plugin version 0.2 (from Arch user Respositories "gedit-latex-plugin 0.2-3")