如何使用透析器与解析变换模块 [英] How to use dialyzer with parse transform modules

查看:202
本文介绍了如何使用透析器与解析变换模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  dialyzer \ 
我想在我的erlang应用程序中使用透析器--src -r src \
-pa / home / niahoo / src / popos \
-pa / home / niahoo / src / popos / deps / parse_trans \
- 详细
检查PLT c:/MinGW/msys/1.0/home/niahoo/.dialyzer_plt是否是最新的...是
进行分析...
透析器:分析失败并显示错误:
无法扫描以下文件:[{c:/MinGW/msys/1.0/home/niahoo/src/popos/src/tools/r.erl,
[c:/MinGW/msys/1.0/home/niahoo/src/popos/src/tools/r.erl:none:undefined parse transform'exprecs'\\\
]},
{ c:/MinGW/msys/1.0/home/niahoo/src/popos/src/game/party2.erl,
[c:/MinGW/msys/1.0/home/niahoo/src/popos/src /game/party2.erl:none:undefined parse transform'playerdupli'\\ n]}]
日志缓存中的最后消息:
读取文件和计算callgraph ...

我试图将 playerdupli.erl 放在与 party2.erl 相同的目录中,但是输出是一样的。 exprecs.erl 在deps中: deps / parse_trans / src



代码编译并运行没有错误,包括parse_transform的东西。我在MinGW(Windows 8 64)。任何想法?



谢谢

解决方案

,是使用 + debug_info 进行编译,让透析器分析生成的 .beam 文件。


I'm trying to use dialyzer on my erlang application but here's the output :

dialyzer \
        --src -r src \
        -pa /home/niahoo/src/popos \
        -pa /home/niahoo/src/popos/deps/parse_trans \
        --verbose
  Checking whether the PLT c:/MinGW/msys/1.0/home/niahoo/.dialyzer_plt is up-to-date... yes
  Proceeding with analysis...
dialyzer: Analysis failed with error:
Could not scan the following file(s): [{"c:/MinGW/msys/1.0/home/niahoo/src/popos/src/tools/r.erl",
                                        ["c:/MinGW/msys/1.0/home/niahoo/src/popos/src/tools/r.erl:none: undefined parse transform 'exprecs'\n"]},
                                       {"c:/MinGW/msys/1.0/home/niahoo/src/popos/src/game/party2.erl",
                                        ["c:/MinGW/msys/1.0/home/niahoo/src/popos/src/game/party2.erl:none: undefined parse transform 'playerdupli'\n"]}]
Last messages in the log cache:
  Reading files and computing callgraph... 

I tried to put playerdupli.erl in the same directory as party2.erl, but the output is the same. exprecs.erl is in the deps: deps/parse_trans/src.

The code compiles and runs without error, including parse_transform stuff. I'm on MinGW (Windows 8 64). Any idea ?

Thanks

解决方案

An alternative that is always easier, is to compile with +debug_info and let dialyzer analyze the resulting .beam files.

这篇关于如何使用透析器与解析变换模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆