[ALOY-282] Alloy - Syntax error breaks build process
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-09-19T14:45:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2012 Sprint 19, Release 3.0.0 |
Components | n/a |
Labels | n/a |
Reporter | Pedro Enrique |
Assignee | Unknown |
Created | 2012-09-19T10:06:57.000+0000 |
Updated | 2018-03-07T22:26:08.000+0000 |
Description
The problem
When building an alloy application through the command line, if there is a syntax error in the code, the build will fail and cannot be run again. The "iphone" folder inside the Resource is missing and needs to be recreated
Steps to reproduce:
1. Create an Alloy app
2. Run it through the command line: _alloy run_
3. Create a syntax error in index.js, for example _#.index.open()_ instead of _$.index.open()_
4. Build will fail
5. Fix the error and _alloy run_ again
6. Build will fail again, this time because "iphone" folder is missing, we need to manually recreate it.
Note:
Not sure if this happens also through Studio, my Studio installation has issues and cannot launch the simulator.
Comments
JSON Source
Did you try "alloy compile" after the fix
Here is the fix:
This issue relates to TIMOB-10991. A true solution will come when that ticket is resolved. In the meantime I will attempt to workaround this bug.
Thanks Pedro for the
alloy run
fix. This will resolve command line usage problems. Need TIMOB-10991 before TiStudio can catch it though. I'll do my best to minimize the situations where this occurs. Syntax errors will not be one of them. ;-)As fixed as i can get it without TIMOB-10991. The only time it would fail is if you manually delete Resources (or the necessary platform-specific folders) or import a project that has no Resources path and try to run through studio. The nice part is though that
alloy run
oralloy compile
from the command line will recover from any state