GSGBen / t2md

Back up Trello to markdown folders on disk, fast.
MIT License
100 stars 5 forks source link

Unhandled exception #39

Closed alranel closed 2 years ago

alranel commented 2 years ago

Hello! When running:

./t2md --output-folder output --no-numbering --single-file --remove-empty-folders

during phase 1, after many "Finished xxx", it crashes with this error:

Unhandled exception. System.IO.IOException: The process cannot access the file '/Users/alranel/Downloads/output/osx-x64/output/t2md/xxx.json' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Init(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.Create(String path)
   at GoldenSyrupGames.T2MD.Cli.ProcessTrelloBoardAsync(TrelloApiBoardModel trelloApiBoard, CliOptions options)
   at GoldenSyrupGames.T2MD.Cli.RunAsync(CliOptions options)
   at GoldenSyrupGames.T2MD.Cli.Main(String[] args)
   at GoldenSyrupGames.T2MD.Cli.<Main>(String[] args)
GSGBen commented 2 years ago

Thanks for the report!

alranel commented 2 years ago

Thank you for the quick reply :) Here's the answers to your question:

GSGBen commented 2 years ago

Could you please try again now with v4.0.3 and let me know if it's fixed.

alranel commented 2 years ago

I confirm this issue is fixed in v4.0.3. Thank you! :)