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

Intern project: Annotated source browser #3485

Closed
nikomatsakis opened this issue Sep 13, 2012 · 12 comments
Closed

Intern project: Annotated source browser #3485

nikomatsakis opened this issue Sep 13, 2012 · 12 comments

Comments

@nikomatsakis
Copy link
Contributor

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:

  • the inferred types of local variables, expressions;
  • hyperlinks between fn calls and the source text;
  • monomorphized versions of generic fns etc specific to a particular call site

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).

@graydon
Copy link
Contributor

graydon commented May 15, 2013

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

@emberian
Copy link
Member

emberian commented Jul 8, 2013

I think I'm subsuming this as part of rustdoc2

@metajack
Copy link
Contributor

triage bump. nothing to add.

@jdm
Copy link
Contributor

jdm commented Sep 25, 2013

@flaper87
Copy link
Contributor

triage bump, carry on

UPDATE: rustfind seems really interesting. I looked into it and it has some of the things listed in this issue.

@huonw
Copy link
Member

huonw commented Mar 10, 2014

I believe @nick29581 is (slowly) working on some DXR integration.

@thehydroimpulse
Copy link
Contributor

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.

@lilyball
Copy link
Contributor

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).

@huonw
Copy link
Member

huonw commented May 24, 2014

@kballard I believe the code @nick29581 has written in #13222 creates a reasonably generic CSV with a variety of that sort of information.

@nrc
Copy link
Member

nrc commented May 24, 2014

@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.

@nrc
Copy link
Member

nrc commented Jan 10, 2015

I'm tracking DXR implementation in https://github.com/nick29581/rust-dxr

@steveklabnik
Copy link
Member

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

bors pushed a commit to rust-lang-ci/rust that referenced this issue May 15, 2021
RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 20, 2024
move read_byte_slice to general helpers file, next to read_c_str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests