Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

VSCode Search plugin error when using 5.3.0 instance #60710

@enriquegh

Description

@enriquegh
  • Sourcegraph version: 5.3.0
  • Plugin version: v2.2.16
  • Platform information:
    macOS 14.1

Steps to reproduce:

  1. Install latest version of VSCode Code Search plugin (link)
  2. Open extension and click "Have an Account?"
  3. Enter instance URL and access token
  4. See error:
Unable to verify your access token for sourcegraph.com. Please try again with a new access token or restart VS Code if the instance URL has been updated.

Expected behavior:

Extension should authenticate and allow user to search

Actual behavior:

Error is thrown and cannot authenticate

Additional information:

Looking at the request sent to the instance it contains the following GraphQL query:

query CurrentAuthState {
  currentUser {
    __typename
    id
    databaseID
    username
    avatarURL
    email
    displayName
    siteAdmin
    url
    settingsURL
    organizations {
      nodes {
        id
        name
        displayName
        url
        settingsURL
      }
    }
    session {
      canSignOut
    }
    viewerCanAdminister
    tosAccepted
    searchable
    emails {
      email
      verified
    }
  }
}

which returns an empty string on 5.3.0 but not on previous versions. This is due to a change in 5.3.0 where we dropped searchable DB column (link).

Screenshots

Screenshot 2024-02-22 at 15 10 56

Screenshot 2024-02-22 at 15 14 55

If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.team/code-searchIssues owned by the code search teamvscode-search

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions