texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

TeXstudio highlights input files as not found

Open adcsilva opened this issue 2 years ago • 9 comments

I include some files to the main tex file with \input{./SettingsExamsMacroPhD02.tex}.

TeXstudio should list these files in the Structure view in black. However, they are shown in red as if these files were not available (see image).

When I click the file, TeXstudio opens the file and the red indication turns black, as usual. This behavior started to happen in the last update.

screen01

Environment

  • TeXstudio: 4.1.2 (git 4.1.2)
  • Qt: Qt Version 6.2.1, compiled with Qt 6.2.1 R
  • OS: Windows 10 Pro, Version 20H2
  • TeX distribution: miktex

Expected behavior

input files found and shown in black.

Actual behavior

input files shown as not found, in red.

How to reproduce

Include an input file to the main tex file.

adcsilva avatar Dec 14 '21 17:12 adcsilva

works as expected.

sunderme avatar Dec 17 '21 17:12 sunderme

works as expected.

What is the expected behavior? Do the files have to be shown in red, as if they were not available? It is better if they were shown in black, as black is less distracting

adcsilva avatar Dec 22 '21 10:12 adcsilva

It means that I can't reproduce the issue. The files are presented in black here.

sunderme avatar Dec 22 '21 10:12 sunderme

It means that I can't reproduce the issue. The files are presented in black here.

Thanks. Is there any setup that I have to change? The files are in the same directory. The same strange behavior appears for me in all TeXstudio files when I have external files linked with \input{filename}. They only turn black when I click the file in the Structure view

adcsilva avatar Dec 22 '21 11:12 adcsilva

it should work without changes.

sunderme avatar Dec 22 '21 19:12 sunderme

Is this a bug? The links always show as red in different TEX files.

adcsilva avatar Jan 13 '22 11:01 adcsilva

I'm presented red and black links in the self-compiled version 4.2.1 from this repo. All files are found though. Bildschirmfoto vom 2022-01-19 14-58-55

mapfeld avatar Jan 19 '22 13:01 mapfeld

They had to be in black. They appeared in black in previous versions. Red should be for files not found.

adcsilva avatar Jan 19 '22 22:01 adcsilva

Interestingly, if I reopen an old session all documents are shown in black, while when I open the document containing the very same links anew, they are colored red. However, clicking on the red links opens the documents flawlessly.

Closing the tab of the first two in some constellations colors the links black (as shown in my prior screenshot), while this does not change a thing for the other linked files.

mapfeld avatar Jan 20 '22 13:01 mapfeld

probably fixed

sunderme avatar Sep 02 '22 20:09 sunderme