Skip to content

Nickel evaluation failed for ncl/keymap-codegen.ncl #355

@aisuneko

Description

@aisuneko
$ just test_keymap=keymap-48key-checkkeys dest_dir="firmware/ch32x035-usb-device-compositekm-c/libsmartkeymap/" install
cbindgen -c cbindgen.toml -o include/smart_keymap.h ./smart_keymap
WARN: Skip smart_keymap::KEYMAP - (not `no_mangle`).
env SMART_KEYMAP_CUSTOM_KEYMAP=tests/ncl/keymap-48key-checkkeys/keymap.ncl cargo build --release --package "smart_keymap" --target "riscv32imac-unknown-none-elf" --no-default-features
   Compiling smart-keymap-nickel-helper v0.9.0-dev (/home/aisuneko/src/git/smart-keymap/smart-keymap-nickel-helper)
   Compiling heapless v0.7.17
   Compiling heapless v0.8.0
   Compiling smart-keymap v0.9.0-dev (/home/aisuneko/src/git/smart-keymap)
error: failed to run custom build command for `smart-keymap v0.9.0-dev (/home/aisuneko/src/git/smart-keymap)`

Caused by:
  process didn't exit successfully: `/home/aisuneko/src/git/smart-keymap/target/release/build/smart-keymap-80628c32f5004352/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=SMART_KEYMAP_CUSTOM_KEYMAP
  cargo::rustc-check-cfg=cfg(custom_keymap)
  cargo:rerun-if-changed=/home/aisuneko/src/git/smart-keymap/target/riscv32imac-unknown-none-elf/release/build/smart-keymap-ad3d5db854610c4a/out/keymap.rs
  cargo:rustc-cfg=custom_keymap

  --- stderr

  thread 'main' panicked at smart-keymap-nickel-helper/src/lib.rs:345:21:
  Nickel evaluation failed: error: unexpected token
     ┌─ /home/aisuneko/src/git/smart-keymap/ncl/keymap-codegen.ncl:93:11

  93 │           [] => {},
     │           ^

     ┌─ <generated main>:1:2

   1 │ ((import "keymap-codegen.ncl") & (import "keymap-ncl-to-json.ncl"))
     │  ----------------------------- imported here

  error: unexpected token
     ┌─ /home/aisuneko/src/git/smart-keymap/ncl/keymap-codegen.ncl:93:19

  93 │           [] => {},
     │                   ^


  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: Recipe `build-keymap` failed on line 29 with exit code 101

Nickel version: nickel-lang-cli nickel 1.6.0 (rev 3441781d)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions