Skip to content
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

Auto complete not working on wildcard re-exports of another crate #4830

Closed
chinedufn opened this issue Jan 9, 2020 · 4 comments
Closed

Auto complete not working on wildcard re-exports of another crate #4830

chinedufn opened this issue Jan 9, 2020 · 4 comments
Labels
bug subsystem::type inference & name resolution Issues related to name resolution and/or type inference subsystem::wasm Issues related to WebAssembly support

Comments

@chinedufn
Copy link

Environment

  • IntelliJ Rust plugin version: 0.2.113.2150-193
  • Rust toolchain version: rustc 1.42.0-nightly (da3629b05 2019-12-29)
  • IDE name and version: CLion 2019.3.2
  • Operating system: MacOS Mojave

Problem description

Autocomplete doesn't work for wild-card re-exports that came from a different crate.

Steps to reproduce

// crate-grandchild
pub struct GrandchildStruct {
}
// crate-child
pub use crate_grandchild::*;
// crate-parent
fn main () {
  GrandC // <---- does not auto complete
}
@chinedufn chinedufn changed the title Auto complete not working on wildcard re-exports Auto complete not working on wildcard re-exports of another crate Jan 10, 2020
@chinedufn
Copy link
Author

How involved is fixing this for someone with zero Kotlin knowledge?

I’d be happy to work on this with some guidance!

@chinedufn
Copy link
Author

web-sys doesn't use include! anymore for the bindings. As of rustwasm/wasm-bindgen#2012

All of the types are now exported via wildcard export.

So this issue is the only thing preventing auto-complete from web-sys I believe.

@hardiesoft
Copy link

I rolled back to the previous version of web-sys for exactly this reason, but I'm keen to see this be supported too!

@artemmukhin artemmukhin added the subsystem::wasm Issues related to WebAssembly support label Mar 13, 2020
@artemmukhin artemmukhin added subsystem::type inference & name resolution Issues related to name resolution and/or type inference bug labels Apr 6, 2020
@panstromek panstromek mentioned this issue Jun 2, 2020
23 tasks
@dima74
Copy link
Member

dima74 commented Nov 22, 2022

Wildcard reexports should work in the latest version. Feel free to reopen or create a new issue if you encounter any problem

@dima74 dima74 closed this as completed Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug subsystem::type inference & name resolution Issues related to name resolution and/or type inference subsystem::wasm Issues related to WebAssembly support
Projects
None yet
Development

No branches or pull requests

4 participants