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

intellij idea community edition does not work #11

Open
BruceMa29 opened this issue Nov 16, 2023 · 3 comments
Open

intellij idea community edition does not work #11

BruceMa29 opened this issue Nov 16, 2023 · 3 comments

Comments

@BruceMa29
Copy link

Hi, Does this plugin support intellij idea community version?

@Skyle-01
Copy link

Skyle-01 commented Nov 17, 2023

I couldn't get it to work either, I got this error from IDE :

java.lang.AbstractMethodError: Receiver class co.huggingface.llmintellij.LlmLsCompletionProvider does not define or inherit an implementation of the resolved method 'abstract boolean isEnabled(com.intellij.openapi.editor.event.DocumentEvent)' of interface com.intellij.codeInsight.inline.completion.InlineCompletionProvider.

My token works, I managed to run this :

import requests

API_URL = "https://api-inference.huggingface.co/models/bigcode/starcoder"
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}


def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()


output = query({
    "inputs": "for my_list in ",
})

I work with PyCharm CE 2023.2. Here are LLM plugin settings :
image

@YingchaoX
Copy link

I couldn't get it to work either, I got this error from IDE :

java.lang.AbstractMethodError: Receiver class co.huggingface.llmintellij.LlmLsCompletionProvider does not define or inherit an implementation of the resolved method 'abstract boolean isEnabled(com.intellij.openapi.editor.event.DocumentEvent)' of interface com.intellij.codeInsight.inline.completion.InlineCompletionProvider.

My token works, I managed to run this :

import requests

API_URL = "https://api-inference.huggingface.co/models/bigcode/starcoder"
headers = {"Authorization": "Bearer hf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}


def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()


output = query({
    "inputs": "for my_list in ",
})

I work with PyCharm CE 2023.2. Here are LLM plugin settings : image

same issue...

@fbricon
Copy link

fbricon commented Oct 3, 2024

This plugin depends on Intellij's LSP API which is not available to free/community edition IDEs.

[shameless-plug]
LSP4IJ is a free and open source LSP client implementation for all JetBrains IDEs. Given llm-intellij is fairly small, I think it might be possible to easily migrate it to use LSP4IJ instead. Just saying ;-)

Disclaimer: I'm one of LSP4IJ's maintainers
[/shameless-plug]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants