-
Notifications
You must be signed in to change notification settings - Fork 26
Cannot run dev_compiler on Windows - Exception thrown #276
Comments
good catch. does it only happen with --server or do you see it from the batch compiler as well? |
No, this exception does not occur when running the command without
The command was: I managed to verify that in this situation, the Update: Would you rather this be a new issue? |
Either way works :) ... I can take a look at these. Ah, I forgot about that _computeRuntimeDir code... funny, yeah, I suspected that code was really buggy :| ... tried to remove it once but did not succeed. Was waiting on the new Resource class but I don't think it's implemented yet. In the meantime I'll see if there's a simple fix. |
ouch... I'm pretty sure the _computeRuntimeDir bug happens on all platforms. Pub does not seem to create a lockfile anymore for "pub global activate", or at least, not in the place that we expect to find it. And "pub run dev_compiler:dartc" doesn't work either. I'll file a bug. EDIT: strange, it doesn't reproduce on Mac, but I don't understand why. Directory layout looks identical to Windows. I'm super confused. |
Think I've found a fix for the batch compiler issue, looking at the server problem |
I think this fixes both issues (as well as --server breakage in 0.1.5) https://codereview.chromium.org/1270993002/ if not we can keep iterating :) |
Wow, that was quick! :) Let's hope I don't run into more issues and thanks. Will this commit make it into a patch version or should I just pull master and use that? |
@jmesserly tested on winders and its looking good. Hadn't seen the output before and I'm pretty impressed. One question though is the \ correct? Wondering if its another fun winders thing.
And just curious but I'm kinda curious is there something recommended for running the output through to get to ES5? |
hmmmm. that might be wrong. does the forward vs backslash match up with the import path? If so, it might work because those strings are just identifiers. But still, I'm guessing nodejs and ES6 would prefer that to be a URL style path. I'll take a look. |
clarification: what I mean is, if you have a library that imports that guy as
Hmmm. I suspect BabelJS or Traceur would work, since we're testing in Chrome, so it's definitely valid ES6. But I haven't tried it. One thing that's really odd right now is our module pattern. I'd like to have an option of one of the standard ES5 patterns, or at least use ES6 modules (because then Babel would understand it and offer a bunch of desugarings). Unfortunately I don't think modules are supported in Chrome Canary yet, so that complicates things a bit for us. Ideally was going to fix #34 properly, but that's blocked on Chrome support, which in turn is blocked on having a spec for module loaders. DOH. Anyway, that digression aside, thanks for trying it out! Let me know how it goes... |
thanks! if you have any ideas for improving it, definitely let me know. One things that might help but isn't implemented yet: being able to import names unqualified. Also I think the not-null-by-default DEP will be a huge help. We also have a bug open for preserving comments, but I haven't found a way to fit it in that felt reliable. Oh, also, I'm going to open a bug for that backslash issue. Should be cross linked here shortly. |
I'll let you know as I play with it a bit more. Sure I'll have some questions and comments after I put it through its paces. |
dev_compiler version: 0.1.5+1
System: Win 8.1
As per the recommendation here, I was trying to execute:
pub global run dev_compiler:devc -o outputdir --server file.dart
This is what I see in console:
I dag a bit into it. It seems like that the in the analyzer's
memory_file_system.dart
file,posix
path context is used. This little example will demonstrate why that won't work on windows:The text was updated successfully, but these errors were encountered: