Closed
Bug 550368
Opened 14 years ago
Closed 14 years ago
Syntax errors in modules don't raise tracebacks or line numbers
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: avarma, Assigned: avarma)
References
Details
In the Jetpack SDK packaging tutorial, if the code for "add" contains the word "returns" instead of "return", then the response of "cfx test" is:
> Traceback (most recent call last):
> SyntaxError: missing ; before statement
> FAIL
> Total time: 1.018095 seconds
> Program terminated unsuccessfully.
This is terrible feedback! Must make more helpful before 0.1 launch, shouldn't be hard.
Assignee | ||
Updated•14 years ago
|
Assignee | ||
Comment 1•14 years ago
|
||
Discussed this one w/ Myk and it's not a hard blocker for 0.1 launch; adding it as a priority bugfix for 0.1.1 though.
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → avarma
Assignee | ||
Comment 2•14 years ago
|
||
Added this to the "known issues" section of 0.1: https://wiki.mozilla.org/Labs/Jetpack/Release_Notes/0.1#Known_Issues
Assignee | ||
Comment 3•14 years ago
|
||
Fixed: http://hg.mozilla.org/labs/jetpack-sdk/rev/c23377ff1d92 An error like the one in comment 1 now raises this: > Traceback (most recent call last): > File "blah.js", line 25, in null > SyntaxError: missing ; before statement However, we still don't get full stack tracebacks, in part because Cu.evalInSandbox--which is called by require()--doesn't include any parts of the stack frame above the current one when it throws errors, probably because it creates a brand new JS context to run the sandboxed code in. Will create a new bug for that, but this fix should be enough to not completely alienate developers for now.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•14 years ago
|
||
Filed the new bug as bug 551604.
Comment 5•14 years ago
|
||
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product. To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
You need to log in
before you can comment on or make changes to this bug.
Description
•