eclipse-corrosion / corrosion

Eclipse Corrosion - Rust edition in Eclipse IDE
Eclipse Public License 2.0
223 stars 31 forks source link

whats the state of clippy support? #415

Closed RBLG closed 1 year ago

RBLG commented 1 year ago

1.from my understanding, clippy isnt supported by default, am i wrong? (also does clippy add anything more?)

2.if thats the case, how do you set it up? i've been looking at https://github.com/eclipse/corrosion/pull/183 and https://github.com/eclipse/corrosion/issues/111 for guidance but they seem outdated? (GUI is different, rls.conf being changed doesnt change anything, making ls configuration point to rls.conf or rls.exe doesnt change anything)

im using 1.2.4

thanks for any help ^^'

norru commented 1 year ago

Necroposting, but useful for future users.

The same approach used by RLS is available for the Rust-analyzer.

Here's a working example from my Corrosion setup:

image


{
    "cargo": {"loadOutDirsFromCheck": true}, 
    "procMacro": {"enable": true},
    "rustfmt": {"enableRangeFormatting": true},
    "check": {"command": "clippy"}
}
``