-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Build errors in dart with beta8 #7395
Comments
Are you sure about this? I just updated to beta8 with the dart 1.14.2 and everything compiled fine for me? |
@mofirouz Yes I am sure. Have tried it multiple times on different computers and different versions of dart aswell |
I get the same problem and try to isolate it.
Also, I run So basically I repeat steps from Angular2 dart quick start: https://angular.io/docs/dart/latest/quickstart.html
pub resolve and downloads packages successfully but breaks with many errors at the transformers step, error log starts with:
|
Update: If I downlgrade angular2 version to 2.0.0-beta.8 |
I'm getting this same error, and I've tracked it down to the combination of updating both Angular2 and something else. The "something else" is variable. My first find was code_transformers, which at version 0.2.11 produces the error in combination with angular2 beta 8. I have subsequently tried to update other dependencies while leaving code_transformers alone, however, and that also in some cases produces this error. Oddly, once I get the error it doesn't go away, even if I revert the other dependency upgrade, until I change angular2 version - even when changing angular2 right back to beta 8 gets no error. Checking inside angular2, beta 8 adds a PaxHeader folder that contains many dart files that all look like this:
The SCHILY.ino number is different in each file, but the rest are all the same in every file I've checked. This is not valid Dart syntax, and apparently there are multiple disparate recent updates that detect that where previously it was ignored. |
Where is |
In my environment to reproduce the bug I just have to put that pubspec.yaml into empty directory and run
|
I'm on Dart VM version: 1.15.0-dev.5.0 (Wed Mar 02 04:39:03 2016) on "windows_x64" |
Looks like it's implicitly created by tar on Windows when unpacking certain archives. Was 2.0.0-beta.8 published from a Linux or OS X machine with an unusual version of tar? https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=paxheaders https://www.gnu.org/software/tar/manual/html_section/tar_71.html |
Hello, I just downloaded the file from https://storage.googleapis.com/pub.dartlang.org/packages/angular2-2.0.0-beta.8.tar.gz On windows, opening it with 7-zip, I have these PaxHeader files (but not on linux!), so it's not specific to pub. Apparently it's not a new problem: |
@vsavkin you were the last person to cut the build. Anything unusual about your tar setup? |
The new beta.9 is ok. Maybe it should be the mentioned version in the "5 min Quickstart". |
Thanks for letting us know, @BorisNaguet. I'll update the samples and quickstart. |
OK, sounds like this is resolved. Closing |
@mhevery Can this be re-opened as this same error has returned in beta13 |
Last comment on this issue could be related owncloud/core#5783 |
Some further investigation shows it could be a Mac issue as the default format is BSD apposed to GNU as seen in this issue http://superuser.com/questions/318809/linux-os-x-tar-incompatibility-tarballs-created-on-os-x-give-errors-when-unt |
I'm looking into this |
@jrote1 would you please try installing 2.0.0-beta.13.1 from pub and verify that it is correct? |
@jeffbcross yes that is correct, what was the issue? |
@jrote1 great! The build was generated with a version of the Dart SDK that apparently produces bad tars. I'm going to add something to our build process to require SDK v1.14.2 or greater to prevent this from happening again. |
@jeffbcross cool glad you got to the bottom of it was a strange one |
Two gulp tasks, check-dart-version and enforce-dart-version, will compare the dart and pub sdk versions against a constant minimum SDK version defined in gulpfile.js. check-dart-version will log the result, while enforce-dart-version will throw an exception if either dart or pup versions are below the minimum required version. gulp enforce-dart-version has been added to the pub_publish script to prevent publishing invalid artifacts to pub. Closes angular#7860 Closes angular#7395
Two gulp tasks, check-dart-version and enforce-dart-version, will compare the dart and pub sdk versions against a constant minimum SDK version defined in gulpfile.js. check-dart-version will log the result, while enforce-dart-version will throw an exception if either dart or pup versions are below the minimum required version. gulp enforce-dart-version has been added to the pub_publish script to prevent publishing invalid artifacts to pub. Closes angular#7860 Closes angular#7395
Obsolete. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
When building I get the following errors (this is just a snippet as there are to many):
This project build fine with beta7 only get this with beta8,
pub cache repair
has no effectThe text was updated successfully, but these errors were encountered: