eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.87k stars 2.48k forks source link

rust-analyzer fill matching arms does not work in theia but works in vscode #13922

Open hsnoil opened 2 months ago

hsnoil commented 2 months ago

Bug Description:

When using rust-analyzer extension, the fill match arms does not work on TheiaIDE appimage, but it works fine on vscode. Other rewrites work, just not fill match arms

Steps to Reproduce:

  1. Make sure cargo is installed and rust-analyzer extension
  2. create a new project cargo new test1
  3. Open test1 folder in Theia and put this in src/main.rs:
    
    enum Pet {
    Cat,
    Dog
    }

fn main() { let pet = Pet::Cat; match pet {

}

}

4. pet in `match pet {` line should highlight as an error, mouse over it and scroll down to Quick fix... or `ctrl+.` and click on `Fill match arms`, nothing happens

<!-- Please provide any additional information available. -->
<!-- Additional information can be in the form of logs, screenshots, screencasts. -->

### Additional Information

It should give this:
```rust
match pet {
        Pet::Cat => todo!(),
        Pet::Dog => todo!(),
    }
JonasHelming commented 1 month ago

Thank you for the report. Could you paste a link to the to extensions on openVSX and ideally also the versions of the extensions you are using?

hsnoil commented 1 month ago

@JonasHelming Sure

https://open-vsx.org/extension/rust-lang/rust-analyzer

v0.4.2044

JonasHelming commented 1 month ago

Thanks, you also mention "Cargo" needs to be installed, could you provide the details there, too?

hsnoil commented 1 month ago

Cargo comes with Rust(which is what is also needed):

https://www.rust-lang.org/tools/install

tsmaeder commented 1 month ago

@hsnoil what version of TheiaIDE are you using?

msujew commented 1 month ago

@tsmaeder In the initial post they mention:

Operating System: Linux Theia Version: 1.51.0