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
18.79k stars 1.59k forks source link

Jetbrains plugin broke on 0.0.54 #1759

Closed Martmists-GH closed 1 month ago

Martmists-GH commented 3 months ago

Before submitting your bug report

Relevant environment info

- OS: Arch Linux
- Continue: 0.0.54
- IDE: IntelliJ 2024.2
- Model: N/A
- config.json:

{
  "models": [
    {
      "title": "LM Studio",
      "provider": "lmstudio",
      "model": "lmstudio-community/CodeLlama-7B-KStack-GGUF"
    },
    {
      "title": "KoboldCPP",
      "provider": "openai",
      "model": "KStack-GGUF",
      "apiKey": "EMPTY",
      "apiBase": "http://localhost:5000/v1",
      "contextLength": 16384
    }
  ],
  "tabAutocompleteModel": {
    "title": "KoboldCPP",
    "provider": "openai",
    "model": "KStack-GGUF",
    "apiKey": "EMPTY",
    "apiBase": "http://localhost:5000/v1",
    "contextLength": 16384,
    "completionOptions": {
      "stop": ["<PRE>", "<SUF>", "<MID>", "\n@"]
    }
  },
  "tabAutocompleteOptions": {
    "template": "<PRE> {{{prefix}}} <SUF> {{{suffix}}} <MID>"
  }
}

Description

The following pops up:

Core process exited with output: /snapshot/continue/binary/out/index.js:50886 throw e3; ^ Error: /home/mart/.local/share/JetBrains/IntelliJIdea2024.1/continue-intellij-extension/core/build/Release/node_sqlite3.node: invalid ELF header at process.dlopen (pkg/prelude/bootstrap.js:2251:28) at Module._extensions..node (node:internal/modules/cjs/loader:1196:18) at Module.load (node:internal/modules/cjs/loader:988:32) at Module._load (node:internal/modules/cjs/loader:834:12) at Module.require (node:internal/modules/cjs/loader:1012:19) at Module.require (pkg/prelude/bootstrap.js:1851:31) at require (node:internal/modules/cjs/helpers:102:18) at bindings (/snapshot/continue/binary/out/index.js:50879:54) at ../core/node_modules/sqlite3/lib/sqlite3-binding.js (/snapshot/continue/binary/out/index.js:50951:41) at __require (/snapshot/continue/binary/out/index.js:18:51) { code: 'ERR_DLOPEN_FAILED' } Node.js v18.5.0

To reproduce

Install the plugin

Log output

The file is empty.
Martmists-GH commented 3 months ago

Running file /path/to/node_sqlite3.node returns /home/mart/.local/share/JetBrains/IntelliJIdea2024.1/continue-intellij-extension/core/build/Release/node_sqlite3.node: Mach-O 64-bit arm64 bundle, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK>

It seems the bundled sqlite3 binary is built for macOS ARM64, but I'm on Linux x64.

sestinj commented 3 months ago

@Martmists-GH We've since made a few updates to the extension. Are you still seeing this on the latest version?

nielskool commented 2 months ago

i have the same error. just installed pycharm 2024.1.6 continue via the plugin marketplace in pycharm. image

//edit downgrade from 0.0.59 to 0.0.56 works.

sestinj commented 1 month ago

This should now be solved in the latest version