Getting a "failed to find document error"
rajshah4 opened this issue · 7 comments
When I try to use the extension in a jupyter notebook, I get the "failed to find document error".
I previously had this error on files that weren't saved. Once I saved the files to disk that error went away.
In this case, I have renamed the file and saved it to disk. I changed the log level, and here is a snippet of the error (removing my token) from the log file set at info from: ~/.cache/llm_ls/llm-ls.log
Running this on macbook (12.2.1 ) using vscode (1.82.2)
{"timestamp":"2023-09-25T18:46:10.486229Z","level":"INFO","message":"get_completions CompletionParams { text_document_position: TextDocumentPositionParams { text_document: TextDocumentIdentifier { uri: Url { scheme: \"vscode-notebook-cell\", cannot_be_a_base: false, username: \"\", password: None, host: None, port: None, path: \"/Users/rajivshah/testnotebook.ipynb\", query: None, fragment: Some(\"W4sZmlsZQ%3D%3D\") } }, position: Position { line: 2, character: 8 } }, request_params: RequestParams { max_new_tokens: 60, temperature: 0.2, do_sample: true, top_p: 0.95, stop_tokens: None }, ide: VSCode, fim: FimParams { enabled: true, prefix: \"<fim_prefix>\", middle: \"<fim_middle>\", suffix: \"<fim_suffix>\" }, api_token: Some(\"hf_Q*****WeNfdwfx\"), model: \"bigcode/starcoder\", tokens_to_clear: [\"<|endoftext|>\"], tokenizer_config: None, context_window: 8192, tls_skip_verify_insecure: false }","target":"llm_ls","line_number":451}
{"timestamp":"2023-09-25T18:46:10.486395Z","level":"ERROR","err_msg":"failed to find document","target":"llm_ls","line_number":177}
Same for me!
I have the same problem working on network files, tried to save but still get the "failed to find document" error
Same here. Working fine when using scripts but "failed to find document" message and irresponsive when working with notebooks.
I can confirm. The same problem with jupyter notebooks
So is this a notebook problem specifically
So is this a notebook problem specifically
This is an issue for files that are not stored on your disk & documents that have a special reference (e.g. Jupyter notebook cells).
llm-vscode: v.0.1.2
Python: v.3.11.4
Visual Studio Code: v.1.83.0
Windows 10 Enterprise (Build 19045)
Same problem here when using Jupyter Notebooks even when stored on my local hard-drive...
Any fix yet?
Tried to re-install the llm-vscode extension but it didn't change anyrhing.