したがって、このチュートリアルに従ってください:
https://github.com/evanmiller/ChicagoBoss/wiki/An-Evening-With-Chicago-Boss
「ユーザー」をモデル名として使用できないことを除いて、すべてが魅力のように機能します。最小限のユースケース:
-module(customer, [Id, Name, PasswordHash]).
-compile(export_all).
これはうまくいきます。
-module(user, [Id, Name, PasswordHash]).
-compile(export_all).
これはスタックトレースになり、 on ./rebar compile
、スローされます:
ERROR: pre_compile failed while processing /Users/abe/github/awesome-name: {'EXIT',{{badmatch,{error,["code reload failed: user"]}},
[{boss_load,load_all_modules,3,
[{file,"src/boss/boss_load.erl"},{line,30}]},
{boss_load,load_all_modules_and_emit_app_file,2,
[{file,"src/boss/boss_load.erl"},{line,44}]},
{boss_rebar,compile,4,
[{file,"/Users/abe/github/ChicagoBoss/priv/rebar/boss_rebar.erl"},
{line,85}]},
{boss_plugin,pre_compile,2,
[{file,"priv/rebar/boss_plugin.erl"},{line,105}]},
{rebar_core,run_modules,4,[]},
{rebar_core,execute,5,[]},
{rebar_core,process_dir1,6,[]},
{rebar_core,process_commands,2,[]}]}}
これは と の両方{db_adapter, mock}
で発生し{db_adapter, mongo}
ます。
何が起こっているか知っている人はいますか?user キーワードはどこかで予約されていますか? もしそうなら、私はドキュメントでそれを見つけることができません...