Skip to content

RA 2021-23-05 can't bootstrap on Windows #8956

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
Lokathor opened this issue May 23, 2021 · 3 comments
Closed

RA 2021-23-05 can't bootstrap on Windows #8956

Lokathor opened this issue May 23, 2021 · 3 comments

Comments

@Lokathor
Copy link

It looks like some path stuff got messed up on accident.

Note in the ERROR report at the end how it's using a path that's D:\\C:\\, which is clearly always going to be incorrect on windows.

INFO [5/23/2021, 4:29:55 PM]: Extension version: 0.3.608
INFO [5/23/2021, 4:29:55 PM]: Using configuration {
  cargoRunner: null,
  runnableEnv: null,
  inlayHints: {
    enable: false,
    smallerHints: true,
    chainingHints: false,
    maxLength: 25,
    parameterHints: false,
    typeHints: false
  },
  updates: { channel: 'nightly', askBeforeDownload: false },
  server: { path: null, extraEnv: null },
  trace: { server: 'off', extension: false },
  debug: {
    engine: 'auto',
    sourceFileMap: {
      '/rustc/<id>': '${env:USERPROFILE}/.rustup/toolchains/<toolchain-id>/lib/rustlib/src/rust'
    },
    openDebugPane: false,
    engineSettings: {}
  },
  assist: {
    importGranularity: 'crate',
    importEnforceGranularity: false,
    importPrefix: 'plain',
    importGroup: true
  },
  callInfo: { full: true },
  cargo: {
    autoreload: true,
    allFeatures: false,
    features: [],
    runBuildScripts: true,
    useRustcWrapperForBuildScripts: true,
    noDefaultFeatures: false,
    target: null,
    noSysroot: false
  },
  checkOnSave: {
    enable: true,
    allFeatures: null,
    allTargets: false,
    command: 'build --examples',
    noDefaultFeatures: null,
    target: null,
    extraArgs: [],
    features: null,
    overrideCommand: null
  },
  completion: {
    addCallArgumentSnippets: true,
    addCallParenthesis: true,
    postfix: { enable: true },
    autoimport: { enable: true }
  },
  diagnostics: {
    enable: true,
    enableExperimental: true,
    disabled: [],
    remapPrefix: {},
    warningsAsHint: [],
    warningsAsInfo: []
  },
  files: { watcher: 'client', excludeDirs: [] },
  highlighting: { strings: true },
  hoverActions: {
    debug: true,
    enable: true,
    gotoTypeDef: true,
    implementations: true,
    run: true,
    linksInHover: true
  },
  lens: {
    debug: true,
    enable: true,
    implementations: true,
    run: true,
    methodReferences: false,
    references: false
  },
  linkedProjects: [],
  lruCapacity: null,
  notifications: { cargoTomlNotFound: true },
  procMacro: { enable: true, server: null },
  runnables: { overrideCargo: null, cargoExtraArgs: [] },
  rustcSource: null,
  rustfmt: { extraArgs: [ '+nightly' ], overrideCommand: null },
  workspace: { symbol: { search: { scope: 'workspace', kind: 'only_types' } } },
  displayInlayHints: false,
  'cargo-watch': { command: 'build' },
  featureFlags: { 'notifications.workspace-loaded': false }
}
INFO [5/23/2021, 4:29:55 PM]: PersistentState: {
  lastCheck: 1621808988372,
  nightlyReleaseId: 43427417,
  serverVersion: '0.3.582'
}
ERROR [5/23/2021, 4:29:55 PM]: Bootstrap error [Error: ENOENT: no such file or directory, mkdir 'D:\C:\Users\Daniel\AppData\Roaming\Code\User\globalStorage\matklad.rust-analyzer'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'mkdir',
  path: 'D:\\C:\\Users\\Daniel\\AppData\\Roaming\\Code\\User\\globalStorage\\matklad.rust-analyzer'
}
@Veykril
Copy link
Member

Veykril commented May 23, 2021

Will be fixed by #8951

@CamWass
Copy link
Contributor

CamWass commented May 24, 2021

As a temporary workaround, downgrading the VSCode extension to version 0.2.599 worked for me:

  1. Open the Extensions pannel (View > Extensions, or Ctrl+Shift+X) and select rust-analyzer.
  2. Open the dropdown next to the "Uninstall" button and select "Install Another Version..." (see attatched screenshot).
  3. Select version 0.2.599.
  4. Reload VSCode window (or restart VSCode). There will be a blue button to do this under the rust-analyzer section you selected in setp 1.

Capture

@lnicola
Copy link
Member

lnicola commented May 24, 2021

A new version which should fix this issue has been published to the Code marketplace.

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

4 participants