Hello again.
I have two issues: sometimes the plugin does not find the elixir executable. I don't understand because it only happens like 1 of 10 times I start ST … If you encounter the same error, let me know.
Now, since today, I have the following error on startup:
Traceback (most recent call last):
File "/opt/sublime_text/sublime_plugin.py", line 125, in reload_plugin
m = importlib.import_module(modulename)
File "./python3.3/importlib/__init__.py", line 90, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1022, in load_module
File "<frozen importlib._bootstrap>", line 1003, in load_module
File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 868, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "/home/lud/.config/sublime-text-3/Packages/sublime-elixir-formatter/MixFormatErrorTest.py", line 5, in <module>
from MixFormatError import MixFormatError
ImportError: No module named 'MixFormatError'
I uninstalled the plugin and cloned the repo to add it back, but I have exactly the same issue.
I added this at the top of the test file:
import sys
print(sys.executable)
And it shows python3.
Also I called the file directly and the test is successful, it can import the other module.
I found on stack overflow that adding an empty __init__.py file at the root of the plugin project could solve it, and indeed it seems to work. But I am not sure I would make a PR for that since it seems I am the only one with this issue (I did not change my setup in the past days and I did not had this problem yesterday).
Hello again.
I have two issues: sometimes the plugin does not find the
elixirexecutable. I don't understand because it only happens like 1 of 10 times I start ST … If you encounter the same error, let me know.Now, since today, I have the following error on startup:
I uninstalled the plugin and cloned the repo to add it back, but I have exactly the same issue.
I added this at the top of the test file:
And it shows
python3.Also I called the file directly and the test is successful, it can import the other module.
I found on stack overflow that adding an empty
__init__.pyfile at the root of the plugin project could solve it, and indeed it seems to work. But I am not sure I would make a PR for that since it seems I am the only one with this issue (I did not change my setup in the past days and I did not had this problem yesterday).