Skip to content

REPL kernel session failure in Zed #997

@payam-delfi

Description

@payam-delfi

Using the latest Ark (v0.1.222) and Zed versions (v0.217.3), I am unable to start a REPL session in Zed:

Kernel process exited with status: Exit Status(unix_wait_status(6))

I thought it might be related to #788 but I'm not sure.

Running on M1 macOS Sonoma 14.8.1.

2025-12-19T16:49:14.724784Z ERROR  Panic! In file 'crates/harp/src/library.rs' at line 65: Can't determine if R shared library
path exists: Os { code: 20, kind: NotADirectory, message: "Not a directory" }
Backtrace:
0: std::backtrace::Backtrace::create
1: ark::main::{{closure}}::{{closure}}
2: ark::main::{{closure}}
3: std::panicking::panic_with_hook
4: std::panicking::panic_handler::{{closure}}
5: std::sys::backtrace::__rust_end_short_backtrace
6: __rustc::rust_begin_unwind
7: core::panicking::panic_fmt
8: harp::library::find_r_shared_library
9: harp::sys::unix::library::RLibraries::from_r_home_path
10: ark::interface::RMain::start
11: ark::start::start_kernel
12: ark::main
13: core::ops::function::FnOnce::call_once
14: std::sys::backtrace::__rust_begin_short_backtrace
15: std::rt::lang_start::{{closure}}
16: std::rt::lang_start_internal
17: std::rt::lang_start
18: _main
at crates/ark/src/main.rs:399

where ark
# /usr/local/bin/ark

ark --install
# Successfully installed Ark Jupyter kernelspec.
#    Kernel: /Users/Me/Library/Jupyter/kernels/ark/kernel.json

ark --version
# Ark 0.1.222

which jupyter
# jupyter not found

uv run --with jupyter jupyter kernelspec list
# Available kernels:
#  python3    /Users/Me/Library/Caches/uv/archive-v0/wyxicCr3T1uQ8DhQGSMNN/share/jupyter/kernels/python3
#  ark        /Users/Me/Library/Jupyter/kernels/ark

uv run python --version
# Python 3.12.10

Zed settings:

  "jupyter": {
    "enabled": true,
    "kernel_selections": {
      "python": "python3",
      "r": "ark",
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions