Skip to content

Fix kernel configuration for xeus-cpp-lite #185

Closed
@anutosh491

Description

@anutosh491

This is the kernel.json file I see while building xeus-cpp-lite

{
  "display_name": "C++20",
  "env": {
      "PATH":"/Users/anutosh491/micromamba/envs/xeus-cpp/bin:/Users/anutosh491/.pixi/bin:/Users/anutosh491/miniconda3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/anutosh491/micromamba/condabin:/Users/anutosh491/.pixi/bin:/Users/anutosh491/miniconda3/bin",
      "LD_LIBRARY_PATH":""
  },
  "argv": [
      "/Users/anutosh491/micromamba/envs/xeus-cpp/bin/xcpp",
      "-f",
      "{connection_file}",
      "-resource-dir", "/Users/anutosh491/micromamba/envs/xeus-cpp/lib/clang/19",
      "-I", "/Users/anutosh491/micromamba/envs/xeus-cpp/include",
      "-std=c++20"
  ],
  "language": "cpp",
  "metadata": {"debugger": false
  }
}

Most things are redundant (or can't be used in a wasm context) except

  1. kernel display name
  2. c++ version based on kernel name
  3. language (cpp or c I guess)
  4. debugger info

Things like env, resource dir and other include paths if any can't be put to use.
There is no xcpp exectuable either (a wasm build would give us xcpp.js, xcpp.wasm, xcpp.data) and we just have an empty placeholder there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions