-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Problem generating JS for the Dart samples #2367
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
This comment was originally written by [email protected] cc @danrubel. |
Kasper: Set owner to @kasperl. |
FWIW, I tried this on a windows 7 machine here, and had no problems. |
Issue #2456 has been merged into this issue. |
We're getting a lot of reports in on this - I'm fairly certain it's an issue with frog/dart2js not running on windows in the context of the SDK. Removed Priority-Medium, Area-Editor labels. |
I don't know if this helps narrow down the issue, but when compiling an test.dart file: void main() { from the dart-sdk directory, using the bin/frog command on the mac I get no warnings and a test.dart.js file is created correctly. On windows w/ the same setup, a test.dart.js file is also created but I get several compilation warnings: C:/temp/dart/dart-sdk/bin/../lib/core/frog/expect.dart:219:24: warning: no matching constructor for Set |
I did some binary searching today, and this showed up between r5925 and r5933. This isn't a VM problem - I switched the VM's, and had the same results. r5926 was the big move to lib/compiler, and I suspect it's there. I'll take this one. cc @efortuna. |
FYI: it's in r5926-5927, and also add the few character change in r5929 so that it actually builds. As we already suspected, it's in these changes somewhere. |
This comment was originally written by [email protected] windows 7 sdk 32-bit does not work if import dart:html added |
So, this is interesting. in r5933, these versions of the SDK work: Windows SDK with the release_ia32 VM has the warnings above. Sending this to Siva, because we shouldn't have an differences between the Debug and Release VM's. I carefully inspected the changes at r5926/7, and can't see anything other than a VM issue that might explain this. cc @iposva-google. |
Issue #2430 has been merged into this issue. |
We currently found an issue with the scanner which allows the '\r' character to be included into a literal token. This causes issues when we convert the literal into an integer. I have a workspace (top of tree) with a fix for the scanner issue and this problem described above does not happen in that build. |
Any updates on whether this is fixed? Added Accepted label. |
Your CL did fix the issue - we're able to generate JS on windows again. Thanks! |
Added Fixed label. |
This issue was originally filed by [email protected]
--What steps will reproduce the problem?
--What is the expected output? What do you see instead?
I expected to see Dartium or a browser with the apps code running inside it, Rather I saw an error message appear.
--In Dartium, enter chrome://version and paste the results here.
I don't know where to enter chrome:// (I am slightly noob-ish) so here is this:
Version 0.1.0.201203261048, Build 5845
Dart SDK version 5845, Dartium is not installed
--Put OS and machine details here.
(If you're using Linux or Mac OS, you can get this from uname -a.)
32 bit - Windows XP
Version 2002
Service Pack 3
Intel Pentium
processor 1.60GHz
798 MHz, 0.99 GB of RAM
1 core (I believe)
--Please provide any additional information below.
"
'Launching sunflower.html' has encountered a problem.
org.eclipse.core.runtime.CoreException: Failure to launch - unable to generate JavaScript for sunflower.html.
Please see console for more details.
Failure to launch - unable to generate JavaScript for sunflower.html.
Please see console for more details.
"
This is the details (not the console details) for the error. The console remains with the one-line compiling status "Generating JavaScript". It happens every single time I try, and I have tried re-downloading Java and Dart.
I just check and Dartium is not, and cannot be installed to Windows just yet. So I changed the launch browser to a very updated version of Mozilla Firefox. The same thing popped up.
I also downloaded the folder/ZIP folder into ..\Program Files\ (in its own folder). Maybe this is the cause of the issue? I noticed my RAM is pretty low. I also did NOT restart my computer after downloading the software.
-Steve
The text was updated successfully, but these errors were encountered: