Skip to content

Incorrect doc path lead program goes fail. #3

Open
@aaababaaz

Description

@aaababaaz

https://github.com/Govcraft/rust-docs-mcp-server/blob/c70a393f9276b7ba8bf9413cd8aa756d06bdccce/src/doc_loader.rs#L125C1-L127C51

$ env RUST_LOG=debug OPENAI_API_BASE=http://192.168.1.1:11434/v1 OPENAI_API_KEY=sk- /home/user/.cargo/bin/rustdocs_mcp_server chromadb
Target Spec: chromadb, Parsed Name: chromadb, Version Req: *, Features: None
Cache file path: "/home/user/.local/share/rustdocs-mcp-server/chromadb/_/no_features/embeddings.bin"
Cache file not found. Will generate.
Proceeding with documentation loading and embedding generation.
Loading documents for crate: chromadb (Version Req: *, Features: None)
Error: DocLoader(CargoLib(Could not find any subdirectory containing index.html within '/tmp/.tmpoxHzmI/doc'. Cargo doc might have failed or produced unexpected output.))

$ cd /tmp/.tmpoGsEkR

$ LC_ALL=C l
total 52K
drwxr-xr-x  6 user user  200 Apr 30 19:51 .
drwxrwxrwt 45 root  root  5.0K Apr 30 19:55 ..
-rw-r--r--  1 user user  373 Apr 30 19:46 .rustc_info.json
-rw-r--r--  1 user user  234 Apr 30 19:46 .rustdoc_fingerprint.json
-rw-r--r--  1 user user  39K Apr 30 19:46 Cargo.lock
-rw-r--r--  1 user user  168 Apr 30 19:46 Cargo.toml
drwxr-xr-x  7 user user  160 Apr 30 19:46 debug
drwxr-xr-x  2 user user   60 Apr 30 19:46 src
drwxr-xr-x  5 user user  160 Apr 30 19:51 target
drwxr-xr-x  4 user user  100 Apr 30 19:46 x86_64-unknown-linux-gnu

$ LC_ALL=C l x86_64-unknown-linux-gnu 
total 4.0K
drwxr-xr-x 4 user user 100 Apr 30 19:46 .
drwxr-xr-x 6 user user 200 Apr 30 19:51 ..
-rw-r--r-- 1 user user 177 Apr 30 19:46 CACHEDIR.TAG
drwxr-xr-x 7 user user 160 Apr 30 19:46 debug
drwxr-xr-x 2 user user  40 Apr 30 19:46 doc

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