Closed Bug 567602 Opened 14 years ago Closed 14 years ago

crash using local.json to save a config for the nightly

Categories

(Add-on SDK Graveyard :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: erikvvold, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100522 Minefield/3.7a5pre
Build Identifier: 

I made a local.json file in the root of my jetpack-sdk clone, with the following contents:
{
  "configs": {
    "nightly": ["-a","firefox","-b","C:\Program Files\Minefield\firefox.exe"]
  }
}

then when I `bin\activate` and run `cfx run -a firefox` on a jetpack I get the following error in the console:

(C:\jetpack-sdk\jetpack-sdk) C:\github\gtranslate-it-jetpack>cfx run -a firefox
Traceback (most recent call last):
  File "C:\jetpack-sdk\jetpack-sdk\bin\cfx", line 6, in <module>
    cuddlefish.run()
  File "C:\jetpack-sdk\jetpack-sdk\python-lib\cuddlefish\__init__.py", line 247,
 in run
    config_args = get_config_args(options.config, env_root);
  File "C:\jetpack-sdk\jetpack-sdk\python-lib\cuddlefish\__init__.py", line 221,
 in get_config_args
    local_json = packaging.load_json_file(local_json)
  File "C:\jetpack-sdk\jetpack-sdk\python-lib\cuddlefish\packaging.py", line 84,
 in load_json_file
    path))
cuddlefish.packaging.MalformedJsonFileError: Invalid \escape: 'P': line 3 column
 41 (char 57) when reading "C:\jetpack-sdk\jetpack-sdk\local.json"

Reproducible: Always

Steps to Reproduce:
1. go on a windows machine
2. make a local.json file like mine
3. run `cfx run -a firefox` on a jetpack like this one: http://github.com/erikvold/gtranslate-it-jetpack
Actual Results:  
Error

Expected Results:  
Running Minefield for jetpack testing.
Ahh I see the problem now, I had to change the config to:

{
  "configs": {
    "nightly": ["-a","firefox","-b","C:\\Program Files\\Minefield\\firefox.exe"]
  }
}


User error.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
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.