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.44k stars 1.68k forks source link

Unable to get context from Jira #2533

Open mdlmarkham opened 1 month ago

mdlmarkham commented 1 month ago

Before submitting your bug report

Relevant environment info

- OS: Windows 10
- Continue version: 0.9.216
- IDE version: VSCode 1.89.1
- Model: Claude 3.5 Sonnet (on AWS Bedrock)
- config.json:

{
  "models": [
    {
      "title": "Claude 3.5 Sonnet(Bedrock)",
      "provider": "bedrock",
      "model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
      "region": "us-east-1",
      "profile": "asdfsadfsadf"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Claude 3.5 Sonnet(Bedrock)",
    "provider": "bedrock",
    "model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
    "region": "us-east-1",
    "profile": "asdfsadf"
  },
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    },
    {
      "name": "check",
      "description": "Check for mistakes in my code",
      "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
    }
  ],
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "jira",
      "params": {
        "domain": "titanamerica.atlassian.net",
        "token": "asdfasdfasdfasdf.......",
        "email": "me@testing.com",
        "apiVersion": 3
      }
    },
    {
      "name": "postgres",
      "params": {
        "host": "asdfsadfsadf.tsdb.cloud.timescale.com",
        "port": 45632,
        "user": "ta_read_user",
        "password": "asdfsg",
        "database": "tsdb",
        "schema": "public",
        "sampleRows": 3
      }
    },
    {
      "name": "postgres",
      "params": {
        "host": "laskdjflaskdjf.tsdb.cloud.timescale.com",
        "port": 123456,
        "user": "____",
        "password": "_____",
        "database": "tsdb",
        "schema": "public",
        "sampleRows": 3
      }
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ],
  "docs": [
    {
      "startUrl": "https://docs.timescale.com/",
      "title": "TimescaleDB",
      "faviconUrl": ""
    },
    {
      "startUrl": "https://docs.getdbt.com/docs/build/projects",
      "title": "dbt",
      "faviconUrl": ""
    },
    {
      "startUrl": "https://docs.dremio.com/",
      "title": "Dremio",
      "faviconUrl": ""
    },
    {
      "startUrl": "https://docs.dremio.com/cloud/reference/sql/",
      "title": "Dremio SQL",
      "faviconUrl": ""
    }
  ]
}

Description

When I attempt to use a Jira ticket as context (using @jira) I am able to search issues... but only the title of the issue is available to the model... leading to some rather less than helpful results. This error is popping up:

image

Adding the email and api version parameters allowed the list of issues to be returned - and (based on previous issues) I updated to the pre-release version of continue. This worked briefly, but not for long.

To reproduce

Go to the Continue GUI, use @ to reference a Jira ticket, Select a ticket, error and naïve model response appear.

Log output

No response

MoRaouf commented 3 weeks ago

I'm also facing the same issue, any solution so far?

mdlmarkham commented 3 weeks ago

Nothing so far... but I haven't given up.

bodzebod commented 2 weeks ago

Same issue for me with the release version 0.8.55 in vscode. And when I switch to the pre-release version 0.9.225, there's no context provider available. When I fill @, there's no contextual menu and there's no context proposed in the context menu.