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

Continue can't autocomplete code on untitled file in vscode #1648

Open
1 of 3 tasks
Mengzhiyaa opened this issue Jul 3, 2024 · 4 comments
Open
1 of 3 tasks

Continue can't autocomplete code on untitled file in vscode #1648

Mengzhiyaa opened this issue Jul 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Mengzhiyaa
Copy link

Mengzhiyaa commented Jul 3, 2024

Before submitting your bug report

Relevant environment info

- OS: Linux
- Continue:
- IDE: Vscode
- Model: All Ollama code 
- config.json:

Description

No response

To reproduce

No response

Log output

No response

@Mengzhiyaa Mengzhiyaa added the bug Something isn't working label Jul 3, 2024
@Patrick-Erichsen
Copy link
Contributor

I'm not sure how we would go about this if there is no file extension to determine the language of the code that is being written.

@sestinj lmk your thoughts though.

@Mengzhiyaa
Copy link
Author

However, in practice, VSCode determines the type of language based on the code you input or by selecting the language for the current text being edited. Therefore, it should be possible to determine the language used in the current unnamed file through this information. Other extensions can achieve this, such as Copilot, Lingma (developed by Alibaba), or Twinny (https://github.com/twinnydotdev/twinny).

@sestinj
Copy link
Contributor

sestinj commented Jul 5, 2024

We should be able to do at least a decent job without needing to parse the AST. I actually think there might be a glaring bug where we don't pass any context to the model in unsaved files. I'll look into this and see if there is something so obvious

@Mengzhiyaa
Copy link
Author

I have found that the 'continue' statement can autocomplete code in an unsaved Jupyter file, but it can't in other unsaved files. I hope this is helpful for you to find bugs.

@Mengzhiyaa Mengzhiyaa reopened this Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants