TeXiFy-IDEA: 'File not found' inspection incorrectly searches relative to sources root instead of main document

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Intellij Ultimate 2018.3.3 installed vie JetBrains Toolbox

TeXiFy IDEA version

Beta 0.6.3

What I did (steps to reproduce)

I included an graphic via \includegraphics and specified an additional option for the size of the graphic. My graphics are located in an sublocation called “media” of my tex files. In this directory is the file which is included here.

Expected behavior

I expect that the red line isn’t shown, because the file is linked correctly. I could click on the little white page next to the line number and the correct graphic will be opened.

Actual behavior

filenotfound As you can see in the picture, the image path is underlined red, but the page symbol is clickable and opens the correct graphic. If I remove the [width=\linewidth], the red underline isn’t there.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 29 (15 by maintainers)

Most upvoted comments

Okay, I noticed this behaivor a few times, but now the red markers are gone… I don’ t know how and why, but I mark this issue as closed and comment another time when the issue is back