Open sger opened 7 years ago
Same.
I'm still seeing this issue.
Ultimately defeats the purpose of the plugin if I can't trust linting errors as someone new to the language. :(
The package downloaded by Package Control in Sublime is out of date. Most issues go away if you overwrite the installed version of this file: https://github.com/vishnevskiy/ElixirSublime/blob/master/elixir_sublime.py
Note that this script only looks through _build/dev/
, so modules defined in, say, test/support/
will be reported as not load/found.
I hacked that last with the following:
def find_ebin_folders(mix_project):
paths = []
if mix_project is not None:
lib_path = os.path.join(mix_project, '_build/dev/lib')
for lib in os.listdir(lib_path):
paths.append(os.path.join(lib_path, lib, 'ebin'))
lib_path = os.path.join(mix_project, '_build/test/lib')
for lib in os.listdir(lib_path):
paths.append(os.path.join(lib_path, lib, 'ebin'))
return paths
Thank you @auxbuss! Your fix worked for me 😄 . A lot of frustration and googling on this.
Another way to get the latest version is to:
Then you should be tracking the git repo rather than the official package repo.
Hello,
Any idea how to fix this
Error: module MyApp.Web is not loaded and could not be found
also the instructions here https://github.com/vishnevskiy/ElixirSublime/issues/5 not working
thanks