texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

No further compilation possible after (accidentally) trying to compile non-.tex-file.

Open flenzen opened this issue 1 year ago • 8 comments

Environment

  • TeXstudio: 4.6.3
  • Qt: 6.5.2
  • OS: MacOS 13.6
  • TeX distribution: texlive 2023

Actual behavior

After trying to compile a document that cannot be compiled (e.g., by hitting F5 in a .sty file instead of the .tex-file), TXS won't be able to abort compilation and won't compile ANY DOCUMENT anymore, even if switching to a tex file.

Expected behavior

If compilation fails, TXS should just be able to still invoke latex on other documents.

How to reproduce

Create a non-.tex file, try to compile (which, of course, fails). Then no further compilation is possible, and the (failed) command cannot be aborted (although it is not running anymore).

https://github.com/texstudio-org/texstudio/assets/342447/b76da93e-596e-47ed-8baf-47082d515d0a

flenzen avatar Nov 15 '23 09:11 flenzen

When I use the style file test2.sty given with \ProvidesPackage{X} and do compile&view with pdflatex several things are different here.

  • As in the video message Process started is printed. Be aware that the extension for file name is .tex not .sty.
  • While the video shows messages from latex (in message pane not Log!) regarding a file that can't be found, I see no such messages. My Log pane shows no errors.
  • I see message Process exited with error(s) as in the video.
  • The popup message is the same for me.
  • Here the stop button is not active and I can start a compile for a different file test.tex without trouble.

This is with win10 and miktex, txs 4.6.3.

octaeder avatar Nov 15 '23 11:11 octaeder

To be clear, I know that the correct extension is .tex. it happens to me that I occasionally edit a (not project specific) .sty file that some .tex files I am editing depend on, and then hit F5 in the .sty file erroneously. It's annoying that I have to restart TXS in this case.

flenzen avatar Nov 15 '23 15:11 flenzen

With 4.7.0beta2-1: A build of the temp. sty-File opens the log pane and shows two issues: image But other builds still work. A build of the saved .sty-File opens the log pane but there are no issues presented. Again other builds still work.

octaeder avatar Nov 15 '23 17:11 octaeder

sounds like #3254 There stopping works, but you need to stop/press esc several times.

sunderme avatar Nov 15 '23 19:11 sunderme