Could not load 'dair.File'

6 views
Skip to first unread message

jklcom99

unread,
Dec 18, 2008, 9:29:08 AM12/18/08
to Dojo Extensions for Adobe AIR
Hi,

I'm trying dAIR for the first time. I tried to include dojo.require
("dair.File") in myApplication.html and it would give the following
error:

Error: Could not load 'dair.File'; last tried '../dair/File.js'
at app:/js/dojo/dojo.js : 16
undefined at app:/myApplication.html : 7

I checked File.js is in dair directory along with other js resources.

Thank you

pete higgins

unread,
Dec 18, 2008, 11:20:56 AM12/18/08
to doj...@googlegroups.com
if you download the 'full checkout' and run:

adl File.xml

does the unit test throw this error too?

makadodo

unread,
Dec 18, 2008, 11:59:39 AM12/18/08
to Dojo Extensions for Adobe AIR
I downloaded dair-0.1.0-SDK and got the same error.

On Dec 18, 11:20 am, "pete higgins" <phigg...@gmail.com> wrote:
> if you download the 'full checkout' and run:
>
> adl File.xml
>
> does the unit test throw this error too?
>

pete higgins

unread,
Dec 18, 2008, 1:05:38 PM12/18/08
to doj...@googlegroups.com
Okay, I'm seeing this too ... Found the issue, though I thought we
fixed this one before we tagged it. In js/dair/File.js, line 87 is an
unopened comment in a function signature:

getName: function(/ Boolean? */ fullname){

change that to:
getName: function(/* Boolean? */ fullname){

and it will work. I'll open an issue and fix it in trunk.

Thanks for spotting this.

Regards,
Peter Higgins

pete higgins

unread,
Dec 18, 2008, 1:07:29 PM12/18/08
to doj...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages