Kornel Benko wrote:

> This is a recipe to observe creation of files in lyx-source
> 
> 1.) copy {lyx-source}/lib/doc/Math.lyx to a local directory, say
> ~/lyx/test/. This is not needed, but shows that the behaviour does not
> depend on the path of Math.lyx
> 2.) use your lyx from the build directory to open the file
> 3.) File->Export->LaTeX(LuaLaTeX)
> 
> Now go to the lyx-source
> # git status
> 
> You see many untracked .pdf files like e.g.
> lib/images/math-macro-remove-greedy-param.pdf

Are you sure that the correct file is opened? Maybe some black magic for 
special handling of our own docs goes havoc here? Or is is source control? I 
would expect the creation of those files if Math.lyx in the git source tree 
is opened (for LaTeX export we generate a document that can be processed by 
LaTeX, so we need to convert all included files that need conversion).

> Second scenario with installed lyx. Make sure, the lyx system dirs are not
> writeable by you
> 
> 2.) open the file
> 3.) try the export.
> Now you are facing a dialog saying some file could not be copied.

This looks again as if the file from the installation was opened.

> Click OK.
> Next dialog pops up.
> This goes on for 43 files.

The dialog should have a don't show me again button. If this is not the case 
please file a bug.

Unfortunately I don't have time to investigate now, but I'd guess that 
neither Exporter.cpp nor TempFile is the culprit. It is normal for the 
conversion process to use temporary files. The path of the temp file looks 
wrong (it should not be in the source tree), but this is probably an 
independent problem. Also, Exporter.cpp is probably simply fed with the 
wrong names.

I'd first check all places were the buffer file name is set and the buffer 
opening. If this is correct then I'd examine the info inset, maybe it 
creates some intermediate files at the wrong place.


Georg

Reply via email to