continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.43k stars 1.69k forks source link

plugin report 'ignore is not defined' #2989

Closed telehan closed 2 days ago

telehan commented 3 days ago

Validations

Problem

the plugin report follow message

image

have checked local .continueignore file exist, and not empty, content valid like

*.out
*.pdf
*.chm
*.a
*.dll

the link page in the warning window doesn't help

topic related to 'ignore' keyworks is about indexing infors global ignore configure file, it also exist. ~/.continue/.continueignore

so, what's previous warning window about, and how to fix the annoying warning window while every startup.

Solution

No response

lemarJul commented 2 days ago

I'm having the same issue. I also noticed that my autocomplete is broken. I was able to work around the issue by downgrading to v0.8.56

funghetto commented 2 days ago

I'm also facing the same issue when it should autocomplete.

Some logs:

Extension Host] Error generating autocompletion: ReferenceError: ignore is not defined
    at isDisabledForFile (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:90065:21)
    at async shouldPrefilter (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:90078:7)
    at async CompletionProvider.provideInlineCompletionItems (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:92133:15)
    at async ContinueCompletionProvider.provideInlineCompletionItems (/home/michele/.vscode/extensions/continue.continue-0.9.231-linux-x64/out/extension.js:541673:27)
    at async RH.provideInlineCompletions (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:137:142456)
uGi @ console.ts:137
harrisdan commented 2 days ago

Adding a "me too" for this one. Autocomplete fails with the same error for me as posted above. Additionally the developer tools shows the following error referencing port 11434 for /api/tags. It received a ECONNREFUSED. I'm using LM Studio on port 1234.

[Extension Host] Error listing models: Error: Error fetching tags: request to http://127.0.0.1:11434/api/tags failed, reason: connect ECONNREFUSED 127.0.0.1:11434"

console.ts:137 [Extension Host] Error generating autocompletion: ReferenceError: ignore is not defined at isDisabledForFile (/Users/dan/.vscode/extensions/continue.continue-0.9.231-darwin-arm64/out/extension.js:90069:21) at async shouldPrefilter (/Users/dan/.vscode/extensions/continue.continue-0.9.231-darwin-arm64/out/extension.js:90082:7) at async CompletionProvider.provideInlineCompletionItems (/Users/dan/.vscode/extensions/continue.continue-0.9.231-darwin-arm64/out/extension.js:92142:15) at async ContinueCompletionProvider.provideInlineCompletionItems (/Users/dan/.vscode/extensions/continue.continue-0.9.231-darwin-arm64/out/extension.js:541688:27) at async RH.provideInlineCompletions (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:137:142456)

sestinj commented 2 days ago

@harrisdan @telehan @funghetto Fixed here, thanks for the heads up! https://github.com/continuedev/continue/commit/6013e6e0d551c14dbbe28fa1f11bcadc684e39a5

For those experiencing the separate "autocomplete not working" issue, can you file a new issue with further details?

harrisdan commented 1 day ago

I appreciate your quick response. Can you provide some basic guidance about how to apply the fix? I switched to the pre release version in VSCode but get the same error "ignore is not defined". I also cloned the latest from GitHub but I don't know how to build and install it to VSCode on the mac. Thank you.

On Wed, Nov 20, 2024 at 12:04 AM Nate Sesti @.***> wrote:

@harrisdan https://github.com/harrisdan @telehan https://github.com/telehan @funghetto https://github.com/funghetto Fixed here, thanks for the heads up! 6013e6e https://github.com/continuedev/continue/commit/6013e6e0d551c14dbbe28fa1f11bcadc684e39a5

For those experiencing the separate "autocomplete not working" issue, can you file a new issue with further details?

— Reply to this email directly, view it on GitHub https://github.com/continuedev/continue/issues/2989#issuecomment-2487671467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVDVKIFBA2PZPBF2PHO5CT2BQYAJAVCNFSM6AAAAABSB2Q3K2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBXGY3TCNBWG4 . You are receiving this because you were mentioned.Message ID: @.***>