Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve non-existing file error on VS Code with ssh connected to Windows machine #3315

Open
3 tasks done
notsyncing opened this issue Dec 11, 2024 · 1 comment
Open
3 tasks done
Assignees
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"

Comments

@notsyncing
Copy link

Before submitting your bug report

Relevant environment info

- OS: VSCodium on Linux, connected to a Windows machine through ssh
- Continue version: 0.8.61
- IDE version: 1.95.3
- Model: Qwen2.5-Coder 1.5b
- config.json:
  
  "tabAutocompleteModel": {
    "title": "Qwen2.5-Coder 1.5B",
    "model": "qwen2.5-coder:1.5b",
    "provider": "ollama"
  },

Description

Hello, I'm testing the tab autocomplete feature on VS Code, and I found that if I connect to a Windows machine through ssh, continue will popup a error complaining "Unable to resolve non-existing file". In the logs I found that the path seems wrong: it should be vscode-remote://ssh-remote/d:/Projects/demo instead of seen vscode-remote://ssh-remoted:/Projects/demo. And the LLM Prompt output always giving an empty file to complete, ignoring all existing lines in that file.

The project locates at D:\Projects\demo on the Windows machine.

To reproduce

  1. Open VS Code on linux
  2. Connect to a remote Windows machine through ssh and open a project
  3. Open Continue panel, and see that error pops up

Log output

LLM Prompt:

##### Completion options #####
{
  "contextLength": 8096,
  "model": "qwen2.5-coder:1.5b",
  "maxTokens": 4096,
  "temperature": 0.01,
  "stop": [
    "<|endoftext|>",
    "<|fim_prefix|>",
    "<|fim_middle|>",
    "<|fim_suffix|>",
    "<|fim_pad|>",
    "<|repo_name|>",
    "<|file_sep|>",
    "<|im_start|>",
    "<|im_end|>",
    "/src/",
    "#- coding: utf-8",
    ""
  ]
}

##### Prompt #####

# demo/test.py

<FIM>
==========================================================================
==========================================================================
Completion:
from .base import BaseAPI

DevTools Console:

workbench.desktop.main.js:3086 Unable to resolve non-existing file 'vscode-remote://ssh-remoted:/Projects/demo'
onDidChangeNotification @ workbench.desktop.main.js:3086
workbench.desktop.main.js:35   ERR [Extension Host] Error handling webview message: {
  "msg": {
    "messageId": "426fec1c-1c83-46de-92f8-2d54dd7b8e8e",
    "messageType": "docs/getSuggestedDocs"
  }
}

EntryNotFound (FileSystemError): Unable to resolve non-existing file 'vscode-remote://ssh-remoted:/Projects/demo'
@sestinj sestinj self-assigned this Dec 11, 2024
@dosubot dosubot bot added area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior labels Dec 11, 2024
@RomneyDa
Copy link
Collaborator

@notsyncing are you still seeing this?

May have been fixed by
#3247

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:autocomplete Relates to the auto complete feature ide:vscode Relates specifically to VS Code extension kind:bug Indicates an unexpected problem or unintended behavior "needs-triage"
Projects
None yet
Development

No branches or pull requests

3 participants