-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Warning 'protocol has already been consolidated' when recompiling #5228
Comments
This happens when calling |
I believe this is happening to you on auto-recompile as it is for me. If you make changes to the Encoder you have to stop the app and restart to see the changes. |
has this regressed? I am using Elixir 1.9.0-rc.0 (aad7aa4) (compiled with Erlang/OTP 20) |
This seems to have regressed. I am using Elixir 1.8.1 with Erlang/OTP 20 and get the warning any time changed files are auto-recompiled in development. |
I'm seeing the same warning with 1.8.2 compiled for Erlang/OTP 21. I can reproduce it every time by running |
Same here, happens at recompilation with
Would be cleaner without it. 😄 |
Hitting this all the time as well, cannot auto-recompile at all, have to manually restart the server if we use Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe] |
Including: |
I'm hitting this today, I cannot resolve the warning even after adding the above mentioned changed to |
@bcardarella can you try deleting |
@josevalim still happening, fwiw this is in VSCode. I'm not sure if there are build artifacts that I would need to clear out otherwise. |
@bcardarella they use a separate folder, _elixir_ls or .elixir_ls or similar. |
Yeah I deleted those too, no success unfortunately. After I get this lib pushed to GH I can note the LOC here to see if I'm doing anything wrong |
If you can't reproduce it in regular code, only inside the Visual Studio Code, then it is probably best to report the issue there first. :) |
Just hijacking this issue quickly. Currently running in this issue with Poison and the usage of
This happens when using Erlang/OTP 26 This has no additonal tooling which could interfere and its on lain old zsh/bash. |
this occurs if you touch anything in a module with a defimpl / derived impl and recompile without a full clean build, although if you touched the impl it still gets used minimal reproduction:
if you instead kill iex and start a new one, it recompiles without generating warnings. however, if you ever use |
(the impl works fine even if it's edited, by the way.) |
Thank you, I have fixed it in main and I will backport to v1.17 too. |
When I add a protocol implementation such as the following, I run into a waring when recompiling:
produces on recompile
Using Elixir 1.3.2, for more info see elixir-mongo/mongodb#46 (comment)
The text was updated successfully, but these errors were encountered: