SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 362 forks source link

multi document from project settings is broken. #1551

Closed ghyatzo closed 2 years ago

ghyatzo commented 2 years ago

As title says, defining the setting latextools.tex_root(as mentioned in the docs) in the project settings file does not work as intended.

The cause is that in the latextools_utils/tex_directives.py the get_tex_root_from_settings(line 152) function looks for the key TEXroot which will not exists. from the console running view.settings().to_dict() shows that the correct key would be (unsurprisingly)latextools.tex_root, and indeed upon modifying root = view.settings().get('TEXroot', None) to root = view.settings().get('latextools.tex_root', None) fixes the issue and now it is working as intended.

I am on ST build 4121, so i am not sure if this change will break previous releases.

ghyatzo commented 2 years ago

Nevermind, seems like it was already fixed in #1467. The package control version I installed is before the lates changes.

Closing this issue.