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

Error: TypeError: Failed to execute 'getFileHandle' on 'FileSystemDirectoryHandle': Name is not allowed. #19

Open
Undertone0809 opened this issue Apr 21, 2023 · 8 comments

Comments

@Undertone0809
Copy link

As you can see. An error occurred while reading the file.

image

@zabirauf
Copy link
Owner

@Undertone0809 are you using Safari? Safari doesn't yet support the full file system access APIs. I would recommend using Chromium based browser as they have the API compatibility for file system access.

I need to add a message on website to recommend using Chromium.

@Undertone0809
Copy link
Author

I using Edge dev version on Windows10

@zabirauf
Copy link
Owner

@Undertone0809 did you get a dialog asking for permission and did you select a folder? Curious if this is happening because you may have accidentally disallowed when it asked for permission.

image

Once you press 'Give access' and select folder, you'll see two more dialogs

image

image

@Undertone0809
Copy link
Author

Sometimes I succeed, sometimes I fail. So it's confusing to me.

@zabirauf
Copy link
Owner

@Undertone0809 can you please share more on what's succeeding and what's failing? Is the file writing action is specifically failing due to the error you have in the initial screen shot or are there other failures you are running into?

@Undertone0809
Copy link
Author

Is it after I give the command, it says it needed to read the file and analyze my code, and then maybe it's because it took me a while to open the file? The above error occurs when the ta fails to read the file.

@zabirauf
Copy link
Owner

@Undertone0809 does the file already exist and is the action 'read_file'?
It's possible that in the scenario you ran into the LLM may be hallucinating and trying to read a file when one doesn't exist. In that case, you can either see if it fixes its error in next commands by generating the file or you can try to rephrase your prompt goals and see if that helps.

@Undertone0809
Copy link
Author

Thank you. I'll try again. Moreover, I would like to know why it doesn't answer the question after answering the question for a while, my question hasn't been solved yet.

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