Using ElixirLS with vscode, I’m getting the error/warning below on this file in my project:
https://github.com/CharlesIrvineKC/mozart/blob/main/lib/processes/home_loan_app.ex
The error is:
The guard clause:
when _ ::
%Mozart.Data.BpmApplication{
:bk_prefix => [<<_::64, _::size(8)>>, ...],
:data => [<<_::32, _::size(8)>>, ...],
:groups => [<<_::48, _::size(16)>>, ...],
:module => Opera.Processes.HomeLoanApp,
:process => <<_::72>>
} === nil
can never succeed.
ElixirLS Dialyzer
Kernel.defmodule(alias, do_block)
The error is referring to this macro call:
def_bpm_application("Home Loan",
data: "First Name,Last Name,Income,Debt",
bk_prefix: "Last Name, First Name"
)
As far as I can tell, all of the code in the project is working as expected, i.e. there doesn’t seem to really be a problem.
My problem at this point is that I don’t what the error means, since the guard clause mentioned is not explicitly in my code.
Could someone give me a nudge in the right direction? Thanks