Skip to content

Server fails to start #5788

Closed
Closed
@bheisler

Description

@bheisler

I'm running VSCode on Windows and connecting by SSH to a remote Linux machine. When VSCode tries to start the remote language server, I see this error:

Cannot activate rust-analyzer: bootstrap error

Logs:

INFO [8/17/2020, 12:47:15 PM]: Extension version: 0.2.281
INFO [8/17/2020, 12:47:15 PM]: Using configuration {
  lruCapacity: null,
  files: { watcher: 'client', exclude: [] },
  notifications: { cargoTomlNotFound: true },
  cargo: {
    autoreload: true,
    noDefaultFeatures: false,
    allFeatures: false,
    features: [],
    loadOutDirsFromCheck: false,
    target: null
  },
  rustfmt: { extraArgs: [], overrideCommand: null },
  checkOnSave: {
    enable: true,
    extraArgs: [],
    command: 'check',
    overrideCommand: null,
    allTargets: true,
    noDefaultFeatures: null,
    allFeatures: null,
    features: null
  },
  cargoRunner: null,
  runnableEnv: null,
  inlayHints: {
    enable: true,
    typeHints: true,
    chainingHints: true,
    parameterHints: true,
    maxLength: 20
  },
  completion: {
    addCallParenthesis: true,
    addCallArgumentSnippets: true,
    postfix: { enable: true }
  },
  callInfo: { full: true },
  updates: { channel: 'stable', askBeforeDownload: true },
  serverPath: null,
  trace: { server: 'off', extension: false },
  procMacro: { enable: false },
  debug: {
    engine: 'auto',
    sourceFileMap: {
      '/rustc/<id>': '${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust'
    },
    openDebugPane: false,
    engineSettings: {}
  },
  lens: { enable: true, run: true, debug: true, implementations: true },
  hoverActions: {
    enable: true,
    implementations: true,
    run: true,
    debug: true,
    gotoTypeDef: true
  },
  linkedProjects: null,
  withSysroot: true,
  diagnostics: {
    enable: true,
    enableExperimental: true,
    warningsAsInfo: [],
    warningsAsHint: []
  }
}
INFO [8/17/2020, 12:47:15 PM]: PersistentState: {
  lastCheck: undefined,
  releaseId: undefined,
  serverVersion: '0.2.281'
}
INFO [8/17/2020, 12:47:15 PM]: Using server binary at /home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux
ERROR [8/17/2020, 12:47:15 PM]: Bootstrap error [Error: Failed to execute /home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux --version
	at bootstrapServer (/home/bheisler/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16169:15)
	at async bootstrap (/home/bheisler/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16112:18)
	at async tryActivate (/home/bheisler/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16039:24)
	at async activate (/home/bheisler/.vscode-server/extensions/matklad.rust-analyzer-0.2.281/out/src/main.js:16013:5)
	at async Promise.all (index 0)]

I don't know if there's any additional logging I can enable to get more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions