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.
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
theget_tex_root_from_settings
(line 152) function looks for the keyTEXroot
which will not exists. from the console runningview.settings().to_dict()
shows that the correct key would be (unsurprisingly)latextools.tex_root
, and indeed upon modifyingroot = view.settings().get('TEXroot', None)
toroot = 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.