question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute macros support

See original GitHub issue

Recently attribute macros support was landed in rust-analyzer. However, I didn’t see it working. Today I looked at the PR description and realized that I need to enable explicitly but when I enter the following line in my CoC config:

"rust-analyzer.experimental.procAttrMacros": true,

I’m told that it’s not a valid property and it’s also not listed in the properties in the README. Could you please add this configuration?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fannheywardcommented, Jun 30, 2021

@zeenix This configuration has been renamed in https://github.com/rust-analyzer/rust-analyzer/pull/7868, README updated.

Have no idea thy completion doesn’t work for you.

1reaction
fannheywardcommented, Jun 29, 2021

:CocUpdate to upgrade coc-rust-analyzer, it’s added in latest release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Procedural Macros - The Rust Reference
Attribute macros define new outer attributes which can be attached to items, including items in extern blocks, inherent and trait implementations, and trait ......
Read more >
macro_attr - Rust - Docs.rs
When given an item definition, including its attributes, this macro parses said attributes and dispatches any attributes or derivations suffixed with ! to ......
Read more >
What Every Rust Developer Should Know About Macro ...
There are three kinds of procedural macros: derive, function-like, and attribute. These kinds of macros work mostly the same way in terms of ......
Read more >
Macro Attribute - Rocket Software
The macro attribute identifies the default attribute-defining items used for input and output processing of the item. Output from AQL commands use the ......
Read more >
Having trouble understanding attribute macros : r/rust - Reddit
An attribute macro is just a function that takes two TokenStream s (one for the item itself, the other for the attribute), and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found