-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{bad_name, setup} error during rebar3 escriptize #2823
Comments
The In this case it looks like the rebar3/apps/rebar/src/rebar_prv_escriptize.erl Lines 81 to 89 in 11c2de0
setup is configured as the main app for the escript but it is not found as fully built either within the deps or main applications.
Without access to the code it's difficult to go further, but one of my debugging steps would be to look into the |
The previous log was created with DEBUG=1 option, without that I would have only
which I still don't understand, setup and this plugins are not related to each other. Actually the same scenario is repeated for all other plugins. After this error report rebar3 tries to compile everything again and again, and the same error is printed , but for a different plugin. Unfortunately I can't upload the code, because it happens on a repository containing business logic.
But , as I mentioned earlier rebar3 eunit was successful, and eunit also runs with the test profile. So the two questions are:
If I go into the directory of setup and call a rebar3 as test compile it works. |
Is it possible one of the plugins or libraries has a specific hook to the |
You were right. There is a task hooked to
and the implementation of the load_apps command is the following:
If I delete the get_app_names(State) ->
AppInfos =
case rebar_state:current_app(State) of
undefined ->
rebar_state:project_apps(State);
I ->
[I]
end,
[list_to_atom(binary_to_list(rebar_app_info:name(I))) || I <- AppInfos]. |
Unfortunately if I don't call |
if you want the full list of apps you also need to have depended on the There's also generally already something in the CT provider to load deps if they have any config value to apply:
|
Hi. I've seen today this very strange error in one of my builds. When I run
rebar3 compile
orrebar3 eunit
everything works. Only when I call rebar3 ct I have this error:The plugin (rplug_lib) has been compiled before, during
rebar3 compile
and during eunit. All the dependencies have been already compiled, now when runningrebar3 ct
this error is reported.The used version of the setup application is
2.1.0
. When I go into the directory of setup , and call rebar3 compile, I don't have any problems.rplug_lib does use setup application as a dependency.
Do you have any ideas how is this "Unable to run post hooks for 'compile', command '{bad_name,setup}' in namespace 'rebar_prv_escriptize' not found.
===> throw {error," related to being not able to load rplug_lib? What can be the problem here? I had this problem with both 3.18.0 and 3.22.1
The text was updated successfully, but these errors were encountered: