Skip to content

Repl can't work with workspace #2

@zavakid

Description

@zavakid

When I debug with a workspace's crate project, I found:

error: Failed to create REPL: Failed to add path dep: 
Message("error: failed to get `ferrumpy_snapshot`
Caused by:
  failed to load source for dependency `ferrumpy_snapshot`
Caused by:
  Unable to update /var/folders/yc/k7w5_ts978d312rh4qss49f40000gn/T/ferrumpy_lib_27996
Caused by:
  failed to parse manifest at `/var/folders/yc/k7w5_ts978d312rh4qss49f40000gn/T/ferrumpy_lib_27996/Cargo.toml`
Caused by:
  error inheriting `bitflags` from workspace root manifest's `workspace.dependencies.bitflags`
Caused by:
  failed to find a workspace root"
)

the project in /var/folders/yc/k7w5_ts978d312rh4qss49f40000gn/T/ferrumpy_lib_27996 is just a crate in my workspace, the dependency is something like this:

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
bitflags = { workspace = true }
compact_str = { workspace = true }

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