Home Download Buy Blog Forum Support

LatexTools : wrong file for "next error" jump

LatexTools : wrong file for "next error" jump

Postby GerardLambert on Thu Aug 30, 2012 9:58 am

Hi everyone,

I'm trying sublime/latextools since a few days and I'm really convinced by those !

I'm still having an issue with the "next error" staff :
I defined my own package that I use like that ” \usepackage{../../../my_package}”
then when there is error in my code (in my main file), the error refers to my_package.sty, but the number of line are correct.
Example:

* main.tex :
Code: Select all
\documentclass[10pt]{beamer}
\usepackage{../../../my_package}
\begin{docment}
\end{document}


* results of building :
Code: Select all
There were errors in your LaTeX source
../../../my_package.sty:3: LaTeX Error: Environment docment undefined. [\begin{docment}]


And when I click on the error I naturally arrived in my_package.sty instead of main.tex...
Any ideas about why that's happening ? huge thanks for the help in advance !


edit : some news, it is apparently related to the presence in my_package.sty of "\usepackage{comment}", if I dont use this package everything works fine
GerardLambert
 
Posts: 18
Joined: Thu Aug 30, 2012 9:54 am

Return to Technical Support

Who is online

Users browsing this forum: evilpot, Exabot [Bot], Yahoo [Bot] and 32 guests