continue icon indicating copy to clipboard operation
continue copied to clipboard

Continue fails autocomplete on remote files

Open pmatos opened this issue 4 months ago • 9 comments

Before submitting your bug report

Relevant environment info

- OS: Linux
- Continue: 0.8.15
- IDE: VSCode 1.87.2

There's an Uncaught error in Runtime Status:
`Cannot read properties of undefined (reading 'repository')`

Description

When working on a remote project, opened through remote-ssh, I am getting when trying to autocomplete:

Unable to read file '/home/pmatos/dev/Foo/Stack.cpp' (Error: Unable to resolve nonexistent file '/home/pmatos/dev/Foo/Stack.cpp')

My file does not indeed exist locally, which is where I assume Continue is looking for it but only remotely.

To reproduce

  1. Setup autocomplete with continue.
  2. Open remote project
  3. Start typing
  4. autocomplete fails.

Log output

No response

pmatos avatar Apr 11 '24 09:04 pmatos

@pmatos Is this still happening on the latest version of Continue (0.8.23) and pre-release? (0.9.x)

sestinj avatar Apr 11 '24 16:04 sestinj

@sestinj This problem also happens to me while working with vscode running on windows with a repo inside WSL. I still get the tab autocompletions, but I get the popup with the non-existent file error intermittently. My completions are also always single-line despite setting multiline to "always" in the config, maybe this has something to do with that. I'm using ollama for tab completions and embeddings, and openai for interactive use.

benrosenblum avatar Apr 13 '24 02:04 benrosenblum

@pmatos In case you're still having this issue, I'll add here what I mentioned on #1099 that fixed this issue for me among others while using WSL. Since WSL is remote vscode, this solution might solve your problem as well. No credit to me, it came from the Discord.

    "remote.extensionKind": {
        "continue.continue": [
            "workspace"
        ]
    }

benrosenblum avatar Apr 16 '24 00:04 benrosenblum

@pmatos In case you're still having this issue, I'll add here what I mentioned on #1099 that fixed this issue for me among others while using WSL. Since WSL is remote vscode, this solution might solve your problem as well. No credit to me, it came from the Discord.

    "remote.extensionKind": {
        "continue.continue": [
            "workspace"
        ]
    }

Thanks - is this for vscode settings?

pmatos avatar Apr 16 '24 10:04 pmatos

@pmatos In case you're still having this issue, I'll add here what I mentioned on #1099 that fixed this issue for me among others while using WSL. Since WSL is remote vscode, this solution might solve your problem as well. No credit to me, it came from the Discord.

    "remote.extensionKind": {
        "continue.continue": [
            "workspace"
        ]
    }

Thanks - is this for vscode settings?

Confirmed - it is. :)

pmatos avatar Apr 16 '24 10:04 pmatos

@pmatos In case you're still having this issue, I'll add here what I mentioned on #1099 that fixed this issue for me among others while using WSL. Since WSL is remote vscode, this solution might solve your problem as well. No credit to me, it came from the Discord.

    "remote.extensionKind": {
        "continue.continue": [
            "workspace"
        ]
    }

Thanks - is this for vscode settings?

Confirmed - it is. :)

But it's still not working. Are there any debugging logs for these issues in Continue that I can look at?

pmatos avatar Apr 17 '24 10:04 pmatos

Just chiming in to add one of my colleagues had this issue (Windows host to Linux remote), after switching to the latest prerelease and configurig https://github.com/continuedev/continue/issues/1107#issuecomment-2058037393, this solved the issue for him.

nejch avatar Apr 22 '24 10:04 nejch