[ALOY-887] In XML files of an Alloy project, open a comment block but not closing it, will hang up the compiler
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-02-04T20:54:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.4.0 |
Components | XML |
Labels | qe-testadded, supportTeam |
Reporter | Mauro Parra-Miranda |
Assignee | Tim Poulsen |
Created | 2013-11-21T15:16:11.000+0000 |
Updated | 2014-05-13T23:50:21.000+0000 |
Description
The compiler will start compilation but will remain in the XML file forever. In the Studio you will not see any error. If you compile it manually in the command line, you will see in which specific file is "freezed", but again no error.
Example:
to close the comment, and the problem appeared. It's not a great problem, but can stuck you for a while.
This behavior is caused by an issue with the xmldom module upon which Alloy depends. See https://github.com/jindw/xmldom/issues/68 Also possibly related would be https://github.com/jindw/xmldom/issues/40
I've submitted a pull request to the xmldom project that fixes this error. https://github.com/jindw/xmldom/pull/74
PR: https://github.com/appcelerator/alloy/pull/323 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-887 Functional test should include running the test app above and confirming that it generates a compile time error that looks like this:
Verified as fixed. TiSDK 3.3.0.v20140513115438 Alloy 1.4.0-dev Appcelerator Studio 3.3.0.201405011408 CLI 3.3.0-dev Closing.