Skip to content

TeslaMate no longer compiles with Elixir 1.18.4+ / OTP 28 #5505

Description

@swiffer

Is there an existing issue for this?

  • I have checked the existing issues and discussions, and I can confirm that there are no duplicates.

What happened?

This code no longer compiles with Elixir 1.18.4+ / OTP 28 as it's emitting a warning

|> Inspect.Map.inspect_as_struct("TeslaApi.Error", fields, opts)

Expected Behavior

Either compile correctly or we should rephrase support ambitions again in:

https://docs.teslamate.org/docs/development#requirements

Can the issue reliably be reproduced?

Yes

Steps To Reproduce the issue

No response

Relevant log output

Generating TeslaMateWeb.Cldr for 20 locales named [:ca, :da, :de, :en, :es, ...] with a default locale named :en
     warning: Inspect.Map.inspect_as_struct/4 is undefined or private. Did you mean:
           * inspect/4
           * inspect/2
     │
 127 │     |> Inspect.Map.inspect_as_struct("TeslaApi.Error", fields, opts)
     │                    ~
     │
     └─ lib/tesla_api/error.ex:127:20: Inspect.TeslaApi.Error.inspect/2
Compilation failed due to warnings while using the --warnings-as-errors option

Screenshots

No response

Additional data

No response

Type of installation

Docker (https://docs.teslamate.org/docs/installation/docker/)

Version

4.1.0-dev

PostgreSQL version

18.4

Are you running latest major supported PostgreSQL version?

  • I run the latest major supported PostgreSQL version

Are you using a reverse Proxy for TeslaMate?

Yes (specify in next field)

Details about your reverse Proxy if applicable

Traefik

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileelixirPull requests that update Elixir code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions