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.

Error recognizing modules behind a macro

See original GitHub issue

Environment

  • 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:closed
  • Created 4 years ago
  • Reactions:15
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Undincommented, Feb 7, 2020

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

2reactions
stjepangolemaccommented, Dec 12, 2019

Yeah it can’t detect the tokio TcpListener too, just keeps importing the std::net one.

Read more comments on GitHub >

github_iconTop 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 >

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