## LatexTools : wrong file for "next error" jump

### LatexTools : wrong file for "next error" jump

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

### Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 15 guests