twinnydotdev / twinny

The most no-nonsense, locally or API-hosted AI code completion plugin for Visual Studio Code - like GitHub Copilot but completely free and 100% private.
https://twinny.dev
MIT License
2.93k stars 154 forks source link

When using the vscode twinny plugin with remote-ssh for remote development, code suggestions are not working. #207

Closed 0x0101010 closed 5 months ago

0x0101010 commented 5 months ago

Describe the bug When using the vscode twinny plugin with remote-ssh for remote development, code suggestions are not working. However, code suggestions work fine when working locally. chat

To Reproduce Steps to reproduce the behavior:

Open Visual Studio Code. Install the Twinny plugin. Connect to a remote server using the remote-ssh extension. Open a file for editing on the remote server. Start typing and try to get code suggestions. Notice that code suggestions are not appearing. Expected behavior Code suggestions should appear while typing, regardless of whether working locally or remotely.

Desktop

OS: [e.g. Windows 11]

Vscode:1.88.0

twinny: v3.11.3

Additional context Apart from the issue with code suggestions in the Twinny plugin and remote-ssh, all other functionalities in Visual Studio Code seem to be working fine. I can still chat and interact with the editor without any problems. The issue seems to be isolated to the code suggestion feature when working with remote development.

rjmacarthy commented 5 months ago

Hey, thanks for reporting.

Please help me understand correctly. The chat works but not the auto-complete? Or nothing at all?

rjmacarthy commented 5 months ago

Stale

zikeji commented 4 months ago

I'm also running into this issue.

This is the specific error I'm seeing:

  ERR cannot open vscode-remote://ssh-remote%2Bdev-vm/embeded.embeddedhtml. Detail: Unable to read file 'vscode-remote://ssh-remote+dev-vm/embeded.embeddedhtml' (Error: Unable to resolve nonexistent file 'vscode-remote://ssh-remote+dev-vm/embeded.embeddedhtml'): CodeExpectedError: cannot open vscode-remote://ssh-remote%2Bdev-vm/embeded.embeddedhtml. Detail: Unable to read file 'vscode-remote://ssh-remote+dev-vm/embeded.embeddedhtml' (Error: Unable to resolve nonexistent file 'vscode-remote://ssh-remote+dev-vm/embeded.embeddedhtml')
    at n.$tryOpenDocument (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2195:62578)

Which I can't make heads or tales of. My "workaround" is to use Llama Coder for completions and Twinny for chat.