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

Editing existing eyaml don't load existing data #280

Closed
tiyab opened this issue Mar 26, 2019 · 2 comments
Closed

Editing existing eyaml don't load existing data #280

tiyab opened this issue Mar 26, 2019 · 2 comments
Labels

Comments

@tiyab
Copy link

tiyab commented Mar 26, 2019

Hi,

I have setup my directories as the following:

|-- control-repo
|   |-- data
|   |      `-- common.eyaml
|   |-- manifests
|   `-- site
`-- keys
    `-- public_key.pkcs7.pem

I have managed to encrypt a field in my file some weeks ago. But now when I edit the file with the command:

eyaml edit control-repo/data/common.eyaml

it opens a blank file

If I am trying to create a new file, and encrypt a value inside it, after save and quit, the file has been created but still empty.

Am I missing something?

@tiyab
Copy link
Author

tiyab commented Mar 26, 2019

After some more tests, this is failing when editing with VSCode. If editing with VIM it is working fine.

@shoeffner
Copy link

shoeffner commented Jan 19, 2022

I had the same issue, running EDITOR="code -w" eyaml edit ... solved it: --wait/-w tells VSCode to wait until the file is closed. For reference, see https://code.visualstudio.com/docs/editor/command-line .

@kenyon kenyon closed this as completed Jan 20, 2022
@kenyon kenyon added the invalid label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants