Skip to content

Commit

Permalink
Merge pull request #756 from alanz/sticky-modules
Browse files Browse the repository at this point in the history
Do not attempt to load dependencies from sticky directories
  • Loading branch information
robertoaloi authored May 28, 2020
2 parents c6ecf1c + 1e32f1c commit 64313bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/els_compiler_diagnostics.erl
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ string_to_term(Value) ->
, [els_diagnostics:diagnostic()]}.
compile_file(Path, Dependencies) ->
%% Load dependencies required for the compilation
Olds = [load_dependency(Dependency, Path) || Dependency <- Dependencies],
Olds = [load_dependency(Dependency, Path)
|| Dependency <- Dependencies
, not code:is_sticky(Dependency) ],
Res = compile:file(Path, diagnostics_options()),
%% Restore things after compilation
[code:load_binary(Dependency, Filename, Binary)
Expand Down

0 comments on commit 64313bb

Please sign in to comment.