When I run gleam new --template app ping_pong. The application file is incorrectly formatted, it has a bunch of double {
Whole output
import gleam/otp/supervisor.{{ApplicationStartMode, ErlangStartResult}}
import gleam/dynamic.{{Dynamic}}
fn init(children) {{
children
}}
pub fn start(
_mode: ApplicationStartMode,
_args: List(Dynamic),
) -> ErlangStartResult {{
init
|> supervisor.start
|> supervisor.to_erlang_start_result
}}
pub fn stop(_state: Dynamic) {{
supervisor.application_stopped()
}}
Gunna release a version with this fix soon!
Most helpful comment
fixed in https://github.com/gleam-lang/gleam/commit/2e666ae62df6895a8014b911a4e1d9beffc64303