edts icon indicating copy to clipboard operation
edts copied to clipboard

edts-dialyzer-analyze, difficulties and odd error messages

Open iambumblehead opened this issue 11 years ago • 4 comments

edts-dialyzer-analyze, difficulties and odd error messages

I am unable to successfully use edts' dialyzer functions. I've started using dialyzer with the edtsredunderline project https://github.com/iambumblehead/edtsredunderline.

currently, I see this result:

error in process filter: edts-dialyzer-handle-analysis-result: Wrong type argument: listp, "{dialyzer_error,[78,111,116,32,97,32,114,101,103,117,108,97,114,32,102,105,
                 108,101,58,32,
                 \"/home/duko/Software/edtsredunderline/src/edtsredunderline.beam\",
                 10]}"
error in process filter: Wrong type argument: listp, "{dialyzer_error,[78,111,116,32,97,32,114,101,103,117,108,97,114,32,102,105,
                 108,101,58,32,
                 \"/home/duko/Software/edtsredunderline/src/edtsredunderline.beam\",
                 10]}"

iambumblehead avatar Jan 05 '15 06:01 iambumblehead

That sounds like a bug in the elisp code, I think I almost have a fix ready. I realize from your post however that the documentation is probably not clear enough on what the PLT project attribute is for.

It is an absolute path and not meant to be used for the project's own PLT file (EDTS creates that automatically) but for a PLT file that will be used as the PLT base. Ordinarily the base PLT file will be stored in a "global" (ie. not project-specific) location and contain the information about the base OTP libraries you're using. A typical value if you're working with more than one version of OTP might be "/home/my.user/r16B03.plt"

tjarvstrand avatar Jan 08 '15 15:01 tjarvstrand

When the fix is ready I'll give this another shot. Do you think this would be a good way to generate a base plt file?

$ dialyzer --build_plt --output_plt base.plt \
        --apps erts kernel stdlib sasl inets crypto public_key ssl

iambumblehead avatar Jan 08 '15 17:01 iambumblehead

Sorry, I forgot to reply here, but the fix should be in.

tjarvstrand avatar Jan 17 '15 09:01 tjarvstrand

I see this when I run edts-dialyzer-analyze

EDTS [error]: Error in plugin call: "Not a regular file: /home/duko/Software/edtsredunderline/src/edtsredunderline.beam\n"

iambumblehead avatar Jan 19 '15 03:01 iambumblehead

please reopen if still an issue

sebastiw avatar Sep 26 '23 08:09 sebastiw