Skip to content

Error throwing exceptions inside vectors #980

Description

@mauricioszabo

Trying to compile a code with [1 (throw (ex-info "Error" {}))] for example makes Jank fail to compile the file - it crashes with error:

/tmp/hello_lein/src/hello_lein/main.jank:5:41: error: use of undeclared identifier 'v9'
    5 | auto const v10(_jank_vec(2, v4.erase(), v9.erase()));
      |                                         ^~
1 error generated.
─ system/failure ───────────────────────────────────────────────────────────────────────────────────
error: Clang failed with errors.
warning: '-x none' after last input file has no effect
error: no such file or directory: '/tmp/hello_lein/target/debug/_cache/hello_lein/x86_64-unknown-linux-gnu-a836dc6b7a6df7c434796123b874a4a0e89caa94399ea7c98b2116699e30088f/hello_lein/main.o'

jank check-health

─ system ───────────────────────────────────────────────────────────────────────────────────────────
─ ✅ operating system: linux
─ ✅ default triple: x86_64-unknown-linux-gnu

─ jank install ─────────────────────────────────────────────────────────────────────────────────────
─ ✅ jank version: jank-0.1-alpha
─ ✅ jank cmake build type: Release
─ ✅ jank resource dir: ../lib/jank/0.1
─ ✅ jank resolved resource dir: /usr/local/bin/../lib/jank/0.1 (found)
─ ✅ jank user cache dir: /home/mauricio/.cache/jank/x86_64-unknown-linux-gnu-a836dc6b7a6df7c434796123b874a4a0e89caa94399ea7c98b2116699e30088f (found)

─ clang install ────────────────────────────────────────────────────────────────────────────────────
─ ℹ️ configured clang path: /home/runner/work/jank/jank/compiler+runtime/build/llvm-install/usr/local/bin/clang++ (not found)
─ ✅ runtime clang path: /usr/local/bin/../lib/jank/0.1/bin/clang++ (found)
─ ℹ️ configured clang resource dir: /home/runner/work/jank/jank/compiler+runtime/build/llvm-install/usr/local/lib/clang/23 (not found)
─ ✅ runtime clang resource dir: /usr/local/lib/jank/0.1/lib/clang/23 (found)

─ jank runtime ─────────────────────────────────────────────────────────────────────────────────────
─ ✅ jank runtime initialized
─ ✅ jank pch path: /home/mauricio/.cache/jank/x86_64-unknown-linux-gnu-a836dc6b7a6df7c434796123b874a4a0e89caa94399ea7c98b2116699e30088f (found)
─ ✅ jank can jit compile c++
─ ✅ jank can aot compile working binaries

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions