Skip to content

Extension fails to start on latest nightly #18318

@bjorn3

Description

@bjorn3
Member

The developer tools of vs code show the following:

console.ts:137 [Extension Host] /bin/sh: regel 1: rustc: opdracht niet gevonden
C @ console.ts:137
mainThreadExtensionService.ts:107 Activating extension 'rust-lang.rust-analyzer' failed: Command failed: rustc -V -v
/bin/sh: regel 1: rustc: opdracht niet gevonden

where "opdracht niet gevonden" is Dutch for "command not found".

It works fine with the latest stable version of the extension.

I suspect that #18281 caused this regression. cc @darichey

Activity

added
A-vscodevscode plugin issues
Broken WindowBugs / technical debt to be addressed immediately
on Oct 17, 2024
bjorn3

bjorn3 commented on Oct 17, 2024

@bjorn3
MemberAuthor

By the way I'm running vscode inside flatpak, but rust-analyzer automatically gets spawned outside of it by vscode afaik.

darichey

darichey commented on Oct 17, 2024

@darichey
Contributor

I agree #18281 could be related, but it's unclear how: the only commands it should affect are rustup and rust-analyzer --version.

FWIW, I can't repro. I also can't find where rust-analyzer is trying to run that command during activation.
edit: I didn't realize this was in a top level definition, this is it:

execSync("rustc -V -v", {}).toString(),

davidbarsky

davidbarsky commented on Oct 17, 2024

@davidbarsky
Contributor

#18265 seems a little suspicious to me, especially since it's a regex + exec and it calls rustc. We should probably fix and/or revert that PR.

davidbarsky

davidbarsky commented on Oct 17, 2024

@davidbarsky
Contributor

I'll put up a PR with a fix, one moment.

self-assigned this
on Oct 17, 2024
Veykril

Veykril commented on Oct 17, 2024

@Veykril
Member

Oh my bad, I somehow overlooked that odd call there.

davidbarsky

davidbarsky commented on Oct 17, 2024

@davidbarsky
Contributor

No worries, I'm just doing a slight refactor right now to consolidate where the symbol map is populated.

davidbarsky

davidbarsky commented on Oct 17, 2024

@davidbarsky
Contributor

Opened #18320.

added 4 commits that reference this issue on Oct 17, 2024

3 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-vscodevscode plugin issuesBroken WindowBugs / technical debt to be addressed immediately

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @davidbarsky@darichey@Veykril@bjorn3

    Issue actions

      Extension fails to start on latest nightly · Issue #18318 · rust-lang/rust-analyzer