Code Monkey home page Code Monkey logo

code-clippy-vscode's People

Contributors

aramix avatar dineshknokia avatar dineshreddyk avatar hieunc229 avatar kek5chen avatar kingstut avatar ncoop57 avatar reshinthadithyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code-clippy-vscode's Issues

Missing script "esbuild"

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$ 

Plans for more plugins?

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?

CustomLinecompletionItem is not assignable

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?

Cannot start the program with F5

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

Error: Authorization header is correct, but the token seems invalid

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.

downloading "vscode.proposed.inlineCompletions.d.ts" and "vscode.d.ts"

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.

error doing "code-insiders ." command "command not found"

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: Capture d’écran 2022-06-22 à 11 11 32
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

First Run Error..

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

Getting errors trying to put HuggingFace API

Hi! I'm sorry, but i can't put the HuggingFace API; I get this:
image

I'm sure that i'm putting the api without spaces, or modifying it. I got this api doing "New Token", putting a random name (Clippy Code) and copying the generated text.

image

Just tried installing code-clippy and getting error

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.

image

[Duplicate] Argument not assignable to parameter of type 'CustomInlineCompletionItem'.

STR:

  1. type code . to open VSCode
  2. press F5.

Symptom:
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
}]

Install error - vscode-dts/vscode.proposed.inlineCompletions.d.ts not found

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
...

npm run vscode:prepublish Found 1 error in src/extension.ts:67 Argument of type '{ text: string; range: vscode.Range; trackingId: string; }' is not assignable to parameter of type 'CustomInlineCompletionItem'.

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

QUESTION: is it possible to use BLOOM model?

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.

API error, extension won't start

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.