Skip to content

Commit ea789d2

Browse files
committed
Fix bug when generating app PTL for the first time
Removes unnecessary checks for warnings when building the application PLT for the first time, these should be ignored until the actual analysis after both the base and application PLT are checked or created. Signed-off-by: Winford <[email protected]>
1 parent 8d933ce commit ea789d2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/atomvm_dialyzer_provider.erl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,12 @@ do_build_plt(Config, State) ->
228228
try
229229
dialyzer:run([
230230
{analysis_type, plt_build},
231-
{init_plt, PLT},
232-
{plts, [BasePLT]},
233231
{output_plt, PLT},
234232
{files_rec, [BEAMdir]}
235233
])
236234
of
237-
[] ->
238-
ok;
239-
Failure ->
240-
print_warnings(Failure),
241-
rebar_api:abort("Failed to create project plt!~n", []),
242-
{error, dialyzer_error}
235+
_ ->
236+
ok
243237
catch
244238
throw:{dialyzer_error, Error} ->
245239
rebar_api:abort("Failed to crete plt, error:~p~n", [Error]),

0 commit comments

Comments
 (0)