Skip to content

Commit 64313bb

Browse files
authored
Merge pull request #756 from alanz/sticky-modules
Do not attempt to load dependencies from sticky directories
2 parents c6ecf1c + 1e32f1c commit 64313bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/els_compiler_diagnostics.erl

+3-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ string_to_term(Value) ->
285285
, [els_diagnostics:diagnostic()]}.
286286
compile_file(Path, Dependencies) ->
287287
%% Load dependencies required for the compilation
288-
Olds = [load_dependency(Dependency, Path) || Dependency <- Dependencies],
288+
Olds = [load_dependency(Dependency, Path)
289+
|| Dependency <- Dependencies
290+
, not code:is_sticky(Dependency) ],
289291
Res = compile:file(Path, diagnostics_options()),
290292
%% Restore things after compilation
291293
[code:load_binary(Dependency, Filename, Binary)

0 commit comments

Comments
 (0)