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 : Writing in readonly mode is disabled #407

Closed
fbclol opened this issue Oct 2, 2020 · 2 comments
Closed

Error : Writing in readonly mode is disabled #407

fbclol opened this issue Oct 2, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@fbclol
Copy link

fbclol commented Oct 2, 2020

Describe the bug

Extension Version

To Reproduce
Steps to reproduce the behavior:

  1. Go to edit key or string term
  2. Click on I can't click the edit button it's disabled
  3. See error Error: Writing in readonly mode is disabled.

Use format file PO

Device Infomation

  • OS: Ubuntu
  • Version: 18.04
  • VS Code Version: 1.49.2
@fbclol fbclol added the bug Something isn't working label Oct 2, 2020
@antfu
Copy link
Contributor

antfu commented Oct 11, 2020

Yeah. We don't find a way to write back to Po file, so it's forced in readonly mode. https://github.com/antfu/i18n-ally/blob/a1e92134005c672ac8d5108b7801c89ceb02ce9e/src/parsers/po.ts#L12

@justingrant
Copy link

Hi @antfu - This issue was closed as completed in 2020, but I'm still getting the same error in 2.12.0, and the latest code in the file linked above still forces readonly=true:

readonly = true

PR #1095 seems to propose a solution to enable writing of PO files. Would it be possible to review that PR? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants