-
Notifications
You must be signed in to change notification settings - Fork 1.7k
"pub serve" should provide the ability to look up mappings between source and output lines #16061
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
Comments
Marked this as blocking #15830. |
Removed Priority-Unassigned label. |
Set owner to @munificent. |
Hey, Keerti and/or Devon! Can you sketch out what kind of Web Socket API you'd like to see for this? Do you want a mapping from source file to served URL, or vice versa? Both? Do you need column information or just lines? cc @keertip. |
Added NeedsInfo label. |
Talked about it with Keerti this morning. My understanding is that the Editor needs mapping in both directions:
Ex. package "foo", path: "some/path.dart" <-> "/packages/foo/some/path.dart" We're OK with only supporting .dart files that are not transformed (or at least not transformed in a way that affects line numbering) for a first-pass implementation of this. Keerti, does that sound right? Do you need column information too, or just lines? |
Added Started label. |
Added Fixed label. |
This issue has been moved to dart-lang/pub#813. |
It should be possible (via the "pub serve" websocket API) to provide the server with a source file and line number and get the corresponding output URL and line number, and vice versa.
This particular bug is intended to track the bare minimum feature set necessary to provide parity with the editor's current server. Specifically, it only needs to support Dart inputs and outputs with no transformers in between. Issue #12339 is tracking the broader use of this with all transformers.
The text was updated successfully, but these errors were encountered: