Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

rust-analyzer with VSCode doesn't seem to work with riff shell? #126

@xffxff

Description

@xffxff

OS: wsl2 (ubuntu 22.04)

Riff version: 1.0.0

Things I tried to run: riff shell and then open VSCode from the shell

image

it gets an error like

image

I got the same error a few days ago when trying to use nix, which was fixed by adding rust-src to extensions.

{ nixpkgs ? import <nixpkgs> { }}:

let
  rustOverlay = builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz";
  pkgs = import <nixpkgs> {
    overlays = [ (import rustOverlay) ];
  };
in
  pkgs.mkShell {
    buildInputs = with pkgs; [
    (pkgs.rust-bin.stable.latest.default.override {
          extensions = [ "rust-src" "cargo" "rustc" ];
    })
    ];

    RUST_BACKTRACE = 1;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions