Closed Bug 549776 Opened 14 years ago Closed 14 years ago

"cfx test" throwing error after going through SDK tutorial

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Dolske, Unassigned)

Details

Attachments

(1 file)

I went through the SDK package tutorial during Atul's talk with fx-team, but just get an exception thrown when running "cfx test":

(jetpack-sdk)[mbp] tabxfade-jet $ cfx test
Traceback (most recent call last):
  File "/Users/dolske/build/jetpack-sdk/bin/cfx", line 6, in <module>
    cuddlefish.run()
  File "/Users/dolske/build/jetpack-sdk/python-lib/cuddlefish/__init__.py", line 267, in run
    pkg_cfg = packaging.build_config(env_root, target_cfg)
  File "/Users/dolske/build/jetpack-sdk/python-lib/cuddlefish/packaging.py", line 130, in build_config
    raise DuplicatePackageError(path, otherpkg.root_dir)
cuddlefish.packaging.DuplicatePackageError: ('/Users/dolske/build/jetpack-sdk/packages/tabxfade-jet', '/Users/dolske-bulk/build/jetpack-sdk/packages/tabxfade-jet')
(jetpack-sdk)[mbp] tabxfade-jet $ 


I'll tar up my sample dir and attach.
Summary: "cfx text" throwing error after going through SDK tutorial → "cfx test" throwing error after going through SDK tutorial
I see this too when I run cfx-test from a directory whose path contains an alias to another directory (in my case ~/Projects is an alias to /mnt/hgfs/myk/Projects):

 (jetpack-sdk)myk@myk:~/Projects/jetpack-sdk/packages/tabxfade-jet$ cfx test
 Traceback (most recent call last):
   File "/home/myk/Projects/jetpack-sdk/bin/cfx", line 6, in <module>
     cuddlefish.run()
   File "/home/myk/Projects/jetpack-sdk/python-lib/cuddlefish/__init__.py", line 267, in run
     pkg_cfg = packaging.build_config(env_root, target_cfg)
   File "/home/myk/Projects/jetpack-sdk/python-lib/cuddlefish/packaging.py", line 130, in build_config
     raise DuplicatePackageError(path, otherpkg.root_dir)
 cuddlefish.packaging.DuplicatePackageError: ('/home/myk/Projects/jetpack-sdk/packages/tabxfade-jet', '/mnt/hgfs/myk/Projects/jetpack-sdk/packages/tabxfade-jet')

However, if I change to the original directory, rerun activate, and try again, it works:

 (jetpack-sdk)myk@myk:~/Projects/jetpack-sdk/packages/tabxfade-jet$ cd /mnt/hgfs/myk/Projects/jetpack-sdk/
 (jetpack-sdk)myk@myk:/mnt/hgfs/myk/Projects/jetpack-sdk$ source bin/activate
Welcome to the Jetpack SDK. Run 'cfx docs' for assistance.
 (jetpack-sdk)myk@myk:/mnt/hgfs/myk/Projects/jetpack-sdk$ cd packages/tabxfade-jet
 (jetpack-sdk)myk@myk:/mnt/hgfs/myk/Projects/jetpack-sdk/packages/tabxfade-jet$ cfx test
 
 (firefox-bin:29047): GLib-WARNING **: g_set_prgname() called multiple times
 
 (firefox-bin:29047): GLib-WARNING **: g_set_prgname() called multiple times
 .Tracked memory objects in testing sandbox: 2
 
 1 of 1 tests passed.
 OK
 Total time: 2.800034 seconds
 Program terminated successfully.
OS: Mac OS X → All
Hardware: x86 → All
Yeah, that fixed it.

My real dir is /Users/dolske-bulk/build/..., but I was getting there via /Users/dolske/build/... [dolske-bulk being a filesystem outside of OS X's FileVault.]
Sorry about that. I believe I fixed it here: http://hg.mozilla.org/labs/jetpack-sdk/rev/9558153770e7
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: