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 after pressing control + c #248

Open
3 of 9 tasks
Bryan9995 opened this issue May 2, 2023 · 1 comment
Open
3 of 9 tasks

Error after pressing control + c #248

Bryan9995 opened this issue May 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Bryan9995
Copy link

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

pressed control c in terminal

  1. Installation
  • I run it via npx alacritty-themes
  • I installed it via npm i -g alacritty-themes (global installation)
  1. Run alacritty-themes
  • Did you add params? yes, I type "alacritty-themes Ayu-Dark"
  • Did you add params? no, I just type "alacritty-themes" then click up/down keys
  1. See error

Expected behavior

A clear and concise description of what you expected to happen.

Somehow broke it pressing control + c. I get this error:
backup file was created: /home/brett/.config/alacritty/alacritty.yml.1683059351612.bak
/usr/local/lib/node_modules/alacritty-themes/node_modules/yaml/dist/Document-9b4560a1.js:676
if (this.errors.length > 0) throw new Error('Document with errors cannot be stringified');
^

Error: Document with errors cannot be stringified
at Document.toString (/usr/local/lib/node_modules/alacritty-themes/node_modules/yaml/dist/Document-9b4560a1.js:676:39)
at String ()
at updateThemeWithFile (/usr/local/lib/node_modules/alacritty-themes/index.js:98:22)
at updateTheme (/usr/local/lib/node_modules/alacritty-themes/index.js:117:10)
at /usr/local/lib/node_modules/alacritty-themes/index.js:124:12

Operating System:

  • Windows
  • Ubuntu
  • Pop Os
  • Arch
  • Fedora KDE 36

Add your alacritty.yml content

# your alacritty content here
![error](https://user-images.githubusercontent.com/63263447/235779633-0bd1f7af-8957-4eaf-8d34-cf68ad990997.png)

Screenshots

Add screenshots to help explain your problem.

@Bryan9995 Bryan9995 added the bug Something isn't working label May 2, 2023
@Bryan9995
Copy link
Author

I managed to get my theme back. But i still seem to receive this error.

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

No branches or pull requests

1 participant