-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Crash with "Invalid build root." #27328
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
From @vsmenon on April 28, 2016 17:49 So the "--build-root" defines a root. Library names (inside the generated JS) are relative to this root directory. If not passed in, it defaults to the current working directory. The compiler is complaining that the compiled file is not within the build root directory. You can fix by passing --build-root /usr/local/google/home/het/Code/ddc_test. |
From @hterkelsen on April 28, 2016 17:52 Got it. Adding the build root made it work. Still, I don't think this should cause the compiler to crash. |
From @vsmenon on April 28, 2016 17:54 Yeah, we should give a better error. No reason we can't catch / report an error at the entry point and give a nicer error. |
but if it's crashing without build-root, that's a bug :) |
@hterkelsen @vsmenon -- have a look at how we handle a missing |
just hit this again. I'm going to fix it, it makes it hard to iterate on a small test |
started a refactor, it's not quite as straightforward as I was hoping, going to leave for now but hope we can pick this back up after P1's are fixed |
I get a similar crash with command line
|
Yeah, invalid library root is a bit problem too :(. See #27262 |
this is a dupe of the other library-root bug |
From @hterkelsen on April 28, 2016 17:46
We're sorry, you've found a bug in our compiler.
You can report this bug at:
https://github.com/dart-lang/dev_compiler/issues
Please include the information below in your report, along with
any other information that may help us track it down. Thanks!
That file definitely exists though...
Copied from original issue: dart-archive/dev_compiler#530
The text was updated successfully, but these errors were encountered: