Closed Bug 1142381 Opened 9 years ago Closed 9 years ago

Symlinked apps in outoftree_apps folder throwing error

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kgrandon, Unassigned)

Details

Attachments

(1 file)

When symlinking apps into outoftree_apps folder I'm seeing the following error:

Exception: [Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsILocalFile.lastModifiedTime]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/rebuild.js :: getTimestamp/</< :: line 19"  data: no]
getTimestamp/</<@resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/rebuild.js:19:8
getTimestamp/<@resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/rebuild.js:17:6
getTimestamp@resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/rebuild.js:12:2
exports.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/rebuild.js:89:16
exports.execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///Users/kevin/workspace/gaia/build/app.js:120:29
CommonjsRunner.prototype.run@/Users/kevin/workspace/gaia/build/xpcshell-commonjs.js:168:4
run@/Users/kevin/workspace/gaia/build/xpcshell-commonjs.js:183:2
@-e:1:0
Comment on attachment 8576422 [details] [review]
[gaia] KevinGrandon:bug_1142381_symlinked_apps_fix > mozilla-b2g:master

Ricky - I'm not really sure what's going on here, but for some reason my symlinked apps stopped working. This patch seems to fix it - is it something you'd be comfortable landing?
Attachment #8576422 - Flags: review?(ricky060709)
Comment on attachment 8576422 [details] [review]
[gaia] KevinGrandon:bug_1142381_symlinked_apps_fix > mozilla-b2g:master

IIRC, I guess you create a symlink that links to an app but delete that app in your project folder so that cause such error.
I'm fine to this fix. r=me Thanks!
Attachment #8576422 - Flags: review?(ricky060709) → review+
Hmm, I'm not sure if I follow you. I'm not deleting anything, I just have a symlink to an app somewhere in my tree. I wonder if the file module does not return lastModifiedTime properly for a symlink?

I'll go ahead and land this for now if you don't think it's going to cause any problems, and we can investigate further later. Thanks for the quick review.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee: jeroentulp → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: