-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
[windows][dart][alpha.51] Transformer error on @View styleUrls #5772
Comments
@kegluneq please take a look |
Sorry to pass this on, but the transformer does not know anything about the content of the stylesheets, it just outputs whatever is passed to it. This looks like it has to do with the |
Just tried with Dart 1.12 and Dart 1.13: This example works in Dartium as well as in Chrome (via dart2js). I did the following:
@avoivo Could you please try the same steps in a new temporary folder to be sure your reproduction case works? Btw, I tested on MacOSX. What OS are you using? |
@tbosch Just tried on a different pc with windows and i am also getting the same errors. The OS i am using in both those PCs is windows 8.1. Also some new info that can be helpfull, when i chage the css file from this:
to this:
the transformer executes without an error . Seems that the newline character is responsible for the errors that i am getting. |
From the description and the output file, it seems like "\n" are escaped in the output file but "\r" rewind to the start of the line. @kegluneq do we test that "\r\n" are correctly handle by the transformer (writer) ? |
I don't think we have an explicit test for it, let me take a look |
_styleCodeGen calls compiler/util.ts to escape the incoming style strings, but that util does not escape '\r' characters. In Dart, we could pass the incoming css lines through the LineSplitter and avoid dealing with newlines altogether. I'm not sure what the equivalent would be in TS. This should be tested along with util. |
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. |
I have the following component
and when i execute 'pub build' i get the following
I have created an example here.
I also have tested it on a Ubuntu machine on which 'pub get' executed without any problems.
Dart VM versions on both machines is 1.13.0
The text was updated successfully, but these errors were encountered: