-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Intern project: Annotated source browser #3485
Comments
Never mind, I'm just stumbling over myself here not understanding the purpose of related repos. Yes, this would be good. Nobody's worked on it yet. Also consider integration with #4064 |
I think I'm subsuming this as part of rustdoc2 |
triage bump. nothing to add. |
triage bump, carry on UPDATE: |
I believe @nick29581 is (slowly) working on some DXR integration. |
Scala has tool that somewhat annotates code https://github.com/harrah/browse which produces code like: http://scalaz.github.io/scalaz/scalaz-2.9.1-6.0.2/doc.sxr/scalaz/Functor.scala.html#39245 Makes it a pleasant experience to be able to roll over different type definitions. |
It would be great if a tool like this could be general enough that e.g. vim could use it to show you the types of variables on demand. But even if it's limited to, say, emitting a web page with all the annotated source, that would still be awesome (I could use a vim command to generate and open the web page). |
@kballard I believe the code @nick29581 has written in #13222 creates a reasonably generic CSV with a variety of that sort of information. |
@kballard here is an out of date and poorly hosted index to show what DXR does - http://ncameron.org:8000/rust, hover over a variable of field to see its type. The rustc parts of this just emit raw data in CSV format which could be used by vim or whatever. |
I'm tracking DXR implementation in https://github.com/nick29581/rust-dxr |
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized. This issue has been moved to the RFCs repo: rust-lang/rfcs#611 |
move read_byte_slice to general helpers file, next to read_c_str
I was thinking: it'd be very cool to have a tool based on
rustc
that presented an annotated view of the source code, showing:This might also be useful in presenting error messages and so forth.
Seems like it would make a great intern project (we should have a tag for that).
The text was updated successfully, but these errors were encountered: