# TeXstudio, highlights the errors on the wrong file

I am a very new user of LateX and this might be a very trivial question but I don't really know how to solve it. I am writing a thesis, and by suggestion of my tutor I have divided it into a main file and the respective chapters that are latter inserted using function `\input{chapters\chapterX}`. It happens that If I commit a mistake on line 5, for example on the chapter1.tex file, the line 5 of the main.tex is highlighted, even though there is nothing there. I'll let you some images to illustrate my point.

Thanks in advance for the help

• Welcome to TeX.SE! Please check that you have encoded all your tex code in utf-8. Seems not be (see the several error messages you got for package inputenc) ... And pleasedo not show code as image, we can not copy and test on our own computers. So please do not show code snippets, make a short complete compilable tex code resulting in your issue ... – Kurt Jan 23 at 8:41