Many commands break with %!TEX root = #49

Closed
jeroenh opened this Issue Mar 12, 2013 · 0 comments

1 participant

@jeroenh

Commands such as dragging a figure into a document, or doing label completion break when the document uses a "%!TEX root = " stanza.

If I have a document which includes a statement "%!TEX root = example.tex" then I get the following error (where the file /Users/jeroen/tmp/example.tex) does actually exist.

/Users/jeroen/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in `initialize': No such file or directory - /Users/jeroen/tmp/example.tex (Errno::ENOENT)
    from /Users/jeroen/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in `open'
    from /Users/jeroen/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in `options'
    from /Users/jeroen/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:45:in `master'
    from /Users/jeroen/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:56:in `get_labels'
    from Label Based on Current Word / Selection…:8
@inz inz added a commit to inz/latex.tmbundle that referenced this issue Mar 14, 2013
@inz inz Fix %!TEX option parsing.
Parsed values will not contain EOL characters anymore. Fixes #49
1272b7e
@infininight infininight added a commit that closed this issue Mar 21, 2013
@infininight infininight Don't include whitespace when matching %!TEX options
This ensures we get only the intended value without any of the surrounding whitespace and line ending characters. Fixes #49, thanks to @inz for the pointer to the cause.
8379265
@sanssecours sanssecours added a commit that referenced this issue May 14, 2013
@infininight infininight Don't include whitespace when matching %!TEX options
This ensures we get only the intended value without any of the surrounding whitespace and line ending characters. Fixes #49, thanks to @inz for the pointer to the cause.
47a27ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment