Skip to content

Server fails to start #5788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bheisler opened this issue Aug 17, 2020 · 6 comments
Closed

Server fails to start #5788

bheisler opened this issue Aug 17, 2020 · 6 comments

Comments

@bheisler
Copy link

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.

@bjorn3
Copy link
Member

bjorn3 commented Aug 17, 2020

What is the output of running /home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux --version on the remote Linux machine?

@bheisler
Copy link
Author

/home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /home/bheisler/.vscode-server/data/User/globalStorage/matklad.rust-analyzer/rust-analyzer-linux)

I guess that suggests the pre-built binaries are expecting a newer version of libc. It is an old version of linux. Is there a way to compile the server myself?

@bjorn3
Copy link
Member

bjorn3 commented Aug 17, 2020

@eminence
Copy link
Contributor

RA used to distribute static builds (musl), but now rust-analyzer is dynamically linked with glibc. Was that an intentional change?

@lnicola
Copy link
Member

lnicola commented Aug 22, 2020

Yes, see #4157.

@flodiebold
Copy link
Member

There doesn't seem to be anything left to do here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants