Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fileSystem.getDisplayPath invalid value #2

Open
Kleak opened this issue Jul 11, 2014 · 7 comments
Open

fileSystem.getDisplayPath invalid value #2

Kleak opened this issue Jul 11, 2014 · 7 comments

Comments

@Kleak
Copy link
Member

Kleak commented Jul 11, 2014

When I use getDisplayPath I have this error :
Error: Invalid value for argument 1. Object must be an instance of Entry.
though the argument is a Entry,
And the error is not catch by the catchError future.

@devoncarew
Copy link

Hmm, try passing in entry.jsProxy instead.

@Kleak
Copy link
Member Author

Kleak commented Jul 11, 2014

I don't have the properties jsProxy in Entry class

@devoncarew
Copy link

Nevermind, from looking at the implementation you shouldn't need to dereference the jsproxy. Just passing in the entry should work. How are you getting this entry? It probably needs to be something that comes from one of the chrome APIs.

@Kleak
Copy link
Member Author

Kleak commented Jul 11, 2014

I get the entry by a drop event with the items properties of DataTransfer after I get the entry with the DataTransferItem method called getAsEntry and i pass this entry to getDisplayPath like in the js sample

EDIT: you have the code in filesystem-access sample

@devoncarew
Copy link

I think you're running into a corner case w/ JS interop. The Entry gotten from the the data transfer is not compatible with the Entry that getDisplayPath() expects. I'm not sure if there is something chrome.dart can do to work around this, or if the issue lies with Dart's JS interop. You may want to file a tracking bug with chrome.dart.

@Kleak
Copy link
Member Author

Kleak commented Jul 11, 2014

the chrome.dart repo of the dart-gde?

@devoncarew
Copy link

yup :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants