-
Notifications
You must be signed in to change notification settings - Fork 48
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
REWRITE ALL THE THINGS #66
Conversation
a914f0c
to
b3fdc98
Compare
…c internals) to 'ra_ap_…' (rust-analyzer internals)
aa0f2b4
to
7d304ce
Compare
Orphans working again in |
Please let me know when it would make sense to start testing it! Super excited to get that ball rolling on WR, once available.
|
@kvark: right now the target selection does a very, very hack-ish "select first library found", iirc. As such it could be possible that the logic somehow picked the compositor-windows package as target. The I still need to add a proper CLI target selection feature, as well as add proper support for workspace handling. Target selection is the next thing I'll be working on, as for the If your wanted to test the new output of Quick heads-up: You will notice the tool is excruciatingly slow compared to current |
Ok, I see. Thank you for the info! Graph is the stuff I need, and I'm waiting eagerly for it to be available :) |
22e3f49
to
e7c782c
Compare
# Conflicts: # src/printer/tree.rs
@kvark Commit f7d226f removed any remaining As such adding a The idea would be to have cargo-modules skip the |
So that would allow me to re-launch it with different focus points quickly? Or is it something else? |
Once implemented, yes. That's the idea at least. But first I want to update the readme to reflect the changes, maybe add a CHANGES file, merge this PR and publish a Just wanted to update you on the progress. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you implemented the hir visitor, but I have been trying to find that in this code (so that I can extract it as we talked about) and gave up lol.
@pksunkara I did, but it ended up being cleaner for my use-case to just explicitly drive the module walking via recursion, so I removed the visitor in d9ed9ae. 😄 I do still plan however to create a PR with it for cargo-up, as it should be quite useful for others. I just haven't gotten to it yet. 😇 |
🙏 I am just happy that someone else is finally using the |
I started refactoring the project, moving things from depending on 'rustc_…' (rustc internals) to 'ra_ap_…' (rust-analyzer internals)
Progress:
$ cargo modules tree
(now called$ cargo modules generate tree
)$ cargo modules graph
(now called$ cargo modules generate graph
)Since we're moving from performing analysis on a project's AST to analysis on its HIR we should be able to fix a bunch more issues in the long term, which right now see kind of hard if not impossible to fix:
crate
keywordIt should also make these features feasible:
(Once finished this will fix #63.)