-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support running and debugging individual tests with vscode codelldb #120
Comments
Ok I took a look to this and is not related on codelldb but just to rust-analyzer run/debug lens. This len when find a test will start it with follow command:
(debug starts binary in target folder and with the last part that follow Ok, that works if you use You can work around this wrapping the test in a module and debug a module. Anyway I'll take a look to rust-analyzer code to see if I can handle |
Relevant rust-analyzer code where to start: |
Rust-analyzer's rust-lang/rust-analyzer#6029 should fix this issue. |
9128: feat: expand procedural attribute macros r=jonas-schievink a=jonas-schievink This adds experimental support for attribute macros. They can be enabled by setting `rust-analyzer.experimental.procAttrMacros` to `true`. Known issues: * Tokens aren't remapped, presumably because we edit the input syntax tree (this causes IDE features to not work inside items with attribute macros on them) * Macro errors aren't reported correctly Closes #8971 Fixes #8964 / la10736/rstest#120 Fixes #2984 Fixes #5412 Fixes #6029 Fixes #6687 #6740 is still not fixed – we now expand `#[proc_macro_hack]`, but fail to expand the resulting `proc_macro_call!()` macro. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
9128: feat: expand procedural attribute macros r=jonas-schievink a=jonas-schievink This adds experimental support for attribute macros. They can be enabled by setting `rust-analyzer.experimental.procAttrMacros` to `true`. Known issues: * Tokens aren't remapped, presumably because we edit the input syntax tree (this causes IDE features to not work inside items with attribute macros on them) * Macro errors aren't reported correctly Closes #8971 Fixes #8964 / la10736/rstest#120 Fixes #2984 Fixes #5412 Fixes #6029 Fixes #6687 #6740 is still not fixed – we now expand `#[proc_macro_hack]`, but fail to expand the resulting `proc_macro_call!()` macro. Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Nice work on this testing library! I'd like to suggest looking into supporting the popular vscode
vadimcn.vscode-lldb extension. With it I can easily run and debug default Rust tests. Sadly doing the same with
#[rstest]
doesn't work at the moment.The text was updated successfully, but these errors were encountered: