Skip to content
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

mix compile on v0.3.0-rc1 raised warnings #30

Closed
takasehideki opened this issue Jan 21, 2025 · 3 comments
Closed

mix compile on v0.3.0-rc1 raised warnings #30

takasehideki opened this issue Jan 21, 2025 · 3 comments

Comments

@takasehideki
Copy link
Contributor

% mix compile                                                                                                                                 (v0.3.0-rc/dev-janog55|✔)
    warning: Application.get_env/3 is discouraged in the module body, use Application.compile_env/3 instead
    │
 19 │   @relay_name Application.get_env(:giocci_zenoh, [:system_variables, :relay_node_name], ["relay1"])
    │                           ~
    │
    └─ lib/giocci_zenoh.ex:19:27: GiocciZenoh (module)

    warning: variable "kind" is unused (if the variable is not meant to be used, prefix it with an underscore)
    │
 59 │       kind: kind,
    │             ~~~~
    │
    └─ lib/giocci_zenoh.ex:59:13: GiocciZenoh.callback/2

    warning: variable "reference" is unused (if the variable is not meant to be used, prefix it with an underscore)
    │
 60 │       reference: reference
    │                  ~~~~~~~~~
    │
    └─ lib/giocci_zenoh.ex:60:18: GiocciZenoh.callback/2

    warning: variable "state" is unused (if the variable is not meant to be used, prefix it with an underscore)
    │
 55 │   def callback(state, message) do
    │                ~~~~~
    │
    └─ lib/giocci_zenoh.ex:55:16: GiocciZenoh.callback/2

     warning: variable "from" is unused (if the variable is not meant to be used, prefix it with an underscore)
     │
 103 │   def handle_call(:call_publisher, from, state) do
     │                                    ~~~~
     │
     └─ lib/giocci_zenoh.ex:103:36: GiocciZenoh.handle_call/3

    warning: function init/1 required by behaviour GenServer is not implemented (in module GiocciZenoh).

    We will inject a default implementation for now:

        def init(init_arg) do
          {:ok, init_arg}
        end

    You can copy the implementation above or define your own that converts the arguments given to GenServer.start_link/3 to the server state.

    │
  1 │ defmodule GiocciZenoh do
    │ ~~~~~~~~~~~~~~~~~~~~~~~~
    │
    └─ lib/giocci_zenoh.ex:1: GiocciZenoh (module)
@takasehideki
Copy link
Contributor Author

@takasehideki
Copy link
Contributor Author

これは #33 で解消させる

% iex -S mix
Erlang/OTP 27 [erts-15.1.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

You have configured application :giocci_zenoh in your configuration file,
but the application is not available.

This usually means one of:

  1. You have not added the application as a dependency in a mix.exs file.

  2. You are configuring an application that does not really exist.

Please ensure :giocci_zenoh exists or remove the configuration.

takasehideki added a commit that referenced this issue Jan 31, 2025
Eliminate warnings on compile and runtime (fix #30)
@takasehideki
Copy link
Contributor Author

fixed by #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant