Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile latex #1601

Open
willtownes opened this issue Jan 20, 2025 · 3 comments
Open

Cannot compile latex #1601

willtownes opened this issue Jan 20, 2025 · 3 comments
Labels

Comments

@willtownes
Copy link

I have recently updated sublime text to build 4192 and I have installed latexTools 4.1.0. The following latex file does not compile. The "build" option is grayed out in the menu. CTL+B does nothing. I can compile the file just fine with latexmk -pdf test.tex. Any suggestions for how to fix? I have tried uninstalling and reinstalling sublime, latextools, and restarting my computer but nothing works. Weirdly, it was working when I had sublime build 4189 installed earlier today, but just now I tried reverting sublime to that version and I still have the same problem.

\documentclass{article}

\begin{document}

\section{Introduction}
This is a test document

\section{Main section}
This is a test document too.
\end{document}
@deathaxe
Copy link
Member

If "Build" menu item is grayed out general setup seems to have issues as this is not related with LaTeXTools. If LaTeXTools was disabled, menu would still be visible and output "No Build System" to statusbar when hitting ctrl+b.

Due to LaTeXTools internal "plugin" infrastructure, a restart of ST might be required to get them working again after an update. Until than you'd however see an error message like

Image

I am on 4191, but also freshly set-up ST4192 with LaTeXTools 4.1.0 installed via Package Control 4 works without issues on Windows 11 and Debian 12.

Any errors in console?

@willtownes
Copy link
Author

Here's what the console shows:

reloading plugin LaTeXTools.plugin
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime_plugin.py", line 325, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 868, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/Users/townesf/Library/Application Support/Sublime Text/Packages/LaTeXTools/plugin.py", line 39, in <module>
    from .latextools.context_provider import (
  File "/Users/townesf/Library/Application Support/Sublime Text/Packages/LaTeXTools/latextools/context_provider.py", line 8, in <module>
    from .utils import analysis
  File "/Users/townesf/Library/Application Support/Sublime Text/Packages/LaTeXTools/latextools/utils/analysis.py", line 4, in <module>
    import regex
ModuleNotFoundError: No module named 'regex'
plugins loaded
Package Control: Error downloading channel. URL error [Errno 8] nodename nor servname provided, or not known downloading https://packagecontrol.io/channel_v3.json.
Package Control: Installing 2 libraries...
Package Control: The library "mdpopups" is not available for Python 3.8
Package Control: The library "regex" is not available for Python 3.8
Package Control: There are no packages available for upgrade
Unable to find target command: latextools_make_pdf

@deathaxe
Copy link
Member

Please check your Package Control.sublime-settings for overridden "channels" setting and either remove all overrides (if no longer needed) or make sure both default channels are present.

	"channels": [
		// channel_v4 for python 3.8 compatible libraries to enable plugins
		// to migrate to python 3.8 until packagecontrol.io supports new scheme.
		// Note: Must always be located before default channel in the list!
		// Repo: https://github.com/packagecontrol/channel
		"https://packagecontrol.github.io/channel/channel_v4.json",
		// default channel for packages
		// Repo: https://github.com/wbond/package_control_channel
		"https://packagecontrol.io/channel_v3.json"
	],

Otherwise Package Control 4 is not able to resolve and install libraries/dependencies for python 3.8 plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants