Error recognizing modules behind a macro
See original GitHub issueEnvironment
- IntelliJ Rust plugin version: 0.2.111.2147-193
- Rust toolchain version: 1.40 nightly
- IDE name and version: CLion 2019.3
- Operating system: Windows 10
Problem description
One of the most popular crates, tokio, has modules which cannot be parsed by the plugin. Examples include the tokio::sync::mpsc module, which is imported inside a macro:
cfg_sync! {
mod barrier;
pub use barrier::{Barrier, BarrierWaitResult};
pub mod mpsc;
mod mutex;
pub use mutex::{Mutex, MutexGuard};
pub mod oneshot;
pub(crate) mod semaphore;
mod task;
pub(crate) use task::AtomicWaker;
pub mod watch;
}
mpsc is not recognized by the plugins at all.
Steps to reproduce
Use tokio, try to include tokio::sync::mpsc::Whatever, see error.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:5 (1 by maintainers)
Top Results From Across the Web
VBA code "behind" a worksheet or a workbook may not work ...
Describes an issue where VBA macro code that is saved in a worksheet or workbook may not work correctly. Provides a workaround to...
Read more >Excel VBA Error Handling - All You Need to Know!
Learn all about Excel VBA errors and how make sure these are handled properly in your VBA code. Covers all the error types...
Read more >5 Instant Fixes To Repair Damaged Access Macros And ...
Try some best fixes to repair damaged macros in Access or to recover corrupted MS Access module. Also catch more information on Access...
Read more >Excel Macro Troubleshooting Tips Debug and F8 Key Problems
Troubleshoot Excel macro if error message appears. Use Debug button to find and fix simple problem. Fix F8 key stops working.
Read more >#NAME? error in Excel for VBA Function - Stack Overflow
Make sure you have placed the function in a Standard Module. The error message means Excel can't find the function.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s fixed in #4914 and will be landed in the next release (I hope). I close this issue as a duplicate of #4627 because they have the same reason
Yeah it can’t detect the tokio TcpListener too, just keeps importing the std::net one.