-
Notifications
You must be signed in to change notification settings - Fork 26
Support loading files via non-file: URIs #609
Comments
(marked P1 if it's a blocker) I can see how data could work, but what is http(s) supposed to do for a command line compiler? I don't see any code in analyzer_cli for it, and none of those URI schemes seem to work for dartanalyzer (as far as I can tell). If there's some way to make this work in Analyzer I'm all for it. (And probably we should implement it in pkg:analyzer so DDC doesn't need custom logic, and all front ends can get the same URI support...) |
Aside, the idea of a compiler needing to support HTTP is a bit crazy on principle :). But I can see how we got there with our crazy concurrency story :| |
Hey @nex3 did you have thoughts on how we could support this? It didn't look like Analyzer has support for these URI schemes but I may have missed something. |
I don't really know the internals of analyzer that well... you may have to add support for other URI schemes in its code. Doesn't it have a fairly separate abstraction for reading inputs that you can hook into? |
This issue was moved to dart-lang/sdk#27266 |
Currently the dev compiler only supports compiling sources with
file:
URIs. To match other implementations, it should supporthttp:
,https:
anddata:
URIs as well.This is blocking dart-lang/test#414, which needs to be able to compile from HTTP to support
pub serve
.The text was updated successfully, but these errors were encountered: