codedotal / code-clippy-vscode Goto Github PK
View Code? Open in Web Editor NEWThis project forked from hieunc229/copilot-clone
VSCode extension for code suggestion
License: MIT License
This project forked from hieunc229/copilot-clone
VSCode extension for code suggestion
License: MIT License
From within VSC:
tizu69@pop-os:/media/tizu69/CodingProjects/code-clippy-vscode$ npm run esbuild
npm ERR! Missing script: "esbuild"
npm ERR!
npm ERR! Did you mean this?
npm ERR! npm rebuild # Rebuild a package
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! /home/tizu69/.npm/_logs/2022-12-04T17_42_14_492Z-debug-0.log
tizu69@pop-os:/media/tizu69/CodingProjects/code-clippy-vscode$
This probably isn't the best place for this, but I didn't see any other place that was more appropriate.
Any plans of releasing more plugins for other editors such as neovim?
When attempting to install, get the following error:
Failed to get https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletions.d.ts
I checked and it is no longer available.
Hello, I tried to install the code-clippy-vscode, but I encounter this error:
Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.
Is there something I just missed?
do i paste all this code
git clone https://github.com/ncoop57/code-clippy-vscode
cd code-clippy-vscode
npm install
code-insiders .
or line by line?
Hi,
I just installed vscode insiders for windows and cloned the repo. When opening it as hitting F5 here's what I am getting
src/extension.ts:67:7 - error TS2345: Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.
Object literal may only specify known properties, and 'text' does not exist in type 'CustomInlineCompletionItem'.
67 text: rs.completions[i],
~~~~~~~~~~~~~~~~~~~~~~~
[10:25:11] Found 1 error. Watching for file changes.
Not knowing nodejs, i have no clue where to start
I have followed the steps of the instructions and I'm getting the error
Error: Authorization header is correct, but the token seems invalid
and
[ncoop57.code-clippy]: editor/inlineCompletions/actions is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["inlineCompletionsAdditions"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api ncoop57.code-clippy
I generated a new access token from huggingface and pasted it in an empty text document, but it doesn't seem to work.
in the website i get read and write options which one do i use
My network is not very good. When npm install, I will get stuck when downloading these two ts files. Can I skip this process of downloading ".ts"? Because I saw that these two files are already in the folder, I don't understand why npm still trying to download these two files.
Hello, I was trying to install this vscode extension but I have this error, anyone can help me ?
I didn't understood how to add the extension to vscode - insiders to make it work
When I open the repository on vscode - insiders and click on "run extension" I get this error:
And when I'm writing my api key in package.json and running extension I get this error:
Activating extension 'ncoop57.code-clippy' failed: vscode.window.getInlineCompletionItemController is not a function.
And this when i'm writing in a document when the extension run:
Error: Model flax-community/gpt-neo-125M-code-clippy-dedup-2048 is currently loading
flax-community/gpt-neo-125M-code-clippy-dedup-2048
extensionHostProcess.js:113
{error: 'Authorization header is correct, but the token seems invalid'}
Coming on my end and it is not asking for API Key
Error: Input is too long for this model, shorten your input or use 'parameters': {'truncation': 'only_first'} to run the model only on the first part.
Hello, I just tried to install code-clippy as I was interested in trying out the code completion. I cloned your extension and ran npm install on it. However when I ran the extension using f5 in vscode, according to your instructions, I encountered the following error.
I tried doing this on windows and in wsl running debian. I got the same error both times.
STR:
code .
to open VSCodeSymptom:
An error dialog shows Error exists after running preLaunchTask 'npm: watch'.
Detailed error:
[{
"resource": "/c:/Users/User/Documents/code-clippy-vscode/src/extension.ts",
"owner": "typescript",
"code": "2345",
"severity": 8,
"message": "Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.",
"source": "ts",
"startLineNumber": 67,
"startColumn": 7,
"endLineNumber": 67,
"endColumn": 7
}]
A fresh installation shows this error:
The following `model_kwargs` are not used by the model: ['use_gpu'] (note: typos in the generate arguments will also show up in this list)
npm install
...
From: https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletions.d.ts
Read more about proposed API at: https://code.visualstudio.com/api/advanced-topics/using-proposed-api
Failed to get https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletions.d.ts
...
src/extension.ts:67:7 - error TS2345: Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.
Object literal may only specify known properties, and 'text' does not exist in type 'CustomInlineCompletionItem'.
67 text: rs.completions[i],
~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/extension.ts:67
is it possible to use BLOOM model to finetune for specifically code generation?
maybe data should look like that
prompt:
sumTwoNumbers
target:
function sumTwoNumbers(a,b){
return a+b
}
so prompts to be function names and targets be whole function? so when we start typing function name it can generate function body?
I don't have enough experience in AI it's just an idea, because I have tested bloom model and is almost perfect for this task out of the box.
Please release a preview version on the extension store, so that using VSCode Insider is not necessary to test the extension.
Thank you.
I'm trying to enable the extension by compiling it as reported in the readme, the code compiles with the command npm run esbuild
and the extension gets generated correctly with vsce package
.
I make sure to have the correct api key in the configuration, but the extension throws this error at startup:
editor/inlineCompletions/actions is a proposed menu identifier. It requires 'package.json#enabledApiProposals: ["inlineCompletionsAdditions"]' and is only available when running out of dev or with the following command line switch: --enable-proposed-api ncoop57.code-clippy
Looks like that inlineCompletionsAdditions
is the API to be used instead of inlineCompletions
in package.json
, but even with that and after adding --enable-proposed-api ncoop57.code-clippy
in .vscode/launch.json
, the error still persists.
Any idea why? Running VSCode 1.71.0, (not insider as it's not required anymore), node 17.6.0, npm 8.5.1
After following all install instructions all I get is an infinite stream of "Error: Model EleutherAI/gpt-neo-1.3B is currently loading" messages as I type in VSCode. Is there any way to see what might be going wrong here in a bit more detail?
I am using vsCode with "Remote-SSH" extension. So should I install node in my server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.