antfu / retypewriter

Replay the steps of your changes at ease.
https://marketplace.visualstudio.com/items?itemName=antfu.retypewriter
MIT License
729 stars 12 forks source link

Unable to re-use .retypewriter file from another system #11

Closed ikomom closed 4 months ago

ikomom commented 1 year ago

Describe the bug

When I click the Play button, I get the error message 'Invalid snapshot file'.

I think it might be an EOL bug, the parse function does not handle it.

It's possible to set Eol to \n before reading the file, and to set Eol to before after reading the file.

Reproduction

Follow the description

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 2.17 GB / 15.87 GB
  Binaries:
    Node: 14.20.0 - ~\AppData\Local\Volta\tools\image\node\14.20.0\node.EXE
    Yarn: 1.22.19 - ~\AppData\Local\Volta\tools\image\yarn\1.22.19\bin\yarn.CMD
    npm: 9.1.2 - ~\AppData\Local\Volta\tools\image\npm\9.1.2\bin\npm.CMD
    Watchman: 20201213.172817.0 - D:\watchman-v2020.12.14.00-windows\watchman-v2020.12.14.00-windows\bin\watchman.EXE
  Browsers:
    Chrome: 109.0.5414.120
    Edge: Spartan (44.22000.120.0), Chromium (109.0.1518.61)
    Internet Explorer: 11.0.22000.120

Used Package Manager

pnpm

Validations