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

File seems to be binary and cannot be opened as text - Error from vscode for zip file #276

Closed
alan-francis opened this issue Apr 25, 2024 · 1 comment

Comments

@alan-francis
Copy link

When trying to emit a .zip file from a POST method, encounter the following error.
cannot open vscode-remote://wsl%2Bubuntu/home/alan/.vscode-server/data/User/globalStorage/anweber.vscode-httpyac/.httpyac/http_0.0.0.0_8088_orchestrate.zip.73246235.zip. Detail: File seems to be binary and cannot be opened as text

@AnWeber
Copy link
Owner

AnWeber commented Apr 25, 2024

Hi, yes I understand your problem, but it was more or less a design decision. Extensions can register any files in vscode and extend the functionality. For example, there is a viewer for the zip display . However, I cannot see whether a corresponding viewer is installed and activated (no API).
I am now taking an optimistic approach. I always try to open and display the file. But because I don't notice any errors due to the lack of an API, I think it's the user's responsibility to tell httpyac if an error occurs. This is possible with # @save or # @openWith

Does that help you? Suggestions for improvement?

@AnWeber AnWeber closed this as completed Apr 28, 2024
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