Skip to content

Expert complains if raising with missing secret signing_salt #335

@Terbium-135

Description

@Terbium-135

Not sure what I am seeing here and why.

I have this in my config/config.exs:

signing_salt =
  System.get_env("SIGNING_SALT") ||
    raise """
    environment variable SIGNING_SALT is missing.
    You can generate one by calling: mix phx.gen.secret 32
    """

Arguable if this is the right location but I didn't expect expert to fail
What environment expert is using for compile?

2026-01-24 13:51:16.738 [info] [Error - 1:51:16 PM] Client Expert: connection to server is erroring.
Header must provide a Content-Length property.
{"{\"jsonrpc\"":"\"2.0\",\"method\":\"textDocument/publishDiagnostics\",\"params\":{\"diagnostics\":[{\"data\":null,\"message\":\"environment variable SIGNING_SALT is missing.\\nYou can generate one by calling: mix phx.gen.secret 32\\n\",\"range\":{\"end\":{\"character\":0,\"line\":1},\"start\":{\"character\":0,\"line\":0}},\"severity\":1,\"source\":\"Elixir\"}],\"uri\":\"file:///home/elixir-dev/projects/ganymed/lib/backend_web/components/customer_components.ex\"}}Content-Length: 421"}
Shutting down server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions