lances101 / Wox.Plugin.SimpleClock

A simple clock plugin for Wox.
4 stars 4 forks source link

Error with default .mp3 #2

Closed darkkain closed 8 years ago

darkkain commented 8 years ago

Hello Boris, thanks for plugin and all of your stuff ;) I've got exception, on dev build: v2.0.50727

   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   в NAudio.Wave.Mp3FileReader..ctor(String mp3FileName)
   в NAudio.Wave.AudioFileReader.CreateReaderStream(String fileName)
   в NAudio.Wave.AudioFileReader..ctor(String fileName)
   в Wox.Plugin.SimpleClock.Views.AlarmNotificationWindow.AudioPlayer.Open(String file) в C:\Users\Boris\Documents\SourceControl\WoxStuff\Wox.Plugin.SimpleClock\Wox.Plugin.SimpleClock\Views\AlarmNotificationWindow.cs:строка 26
   в Wox.Plugin.SimpleClock.Views.AlarmNotificationWindow.AudioPlayer..ctor(String file) в C:\Users\Boris\Documents\SourceControl\WoxStuff\Wox.Plugin.SimpleClock\Wox.Plugin.SimpleClock\Views\AlarmNotificationWindow.cs:строка 20
   в Wox.Plugin.SimpleClock.Views.AlarmNotificationWindow..ctor(DateTime time, String name, String trackPath) в C:\Users\Boris\Documents\SourceControl\WoxStuff\Wox.Plugin.SimpleClock\Wox.Plugin.SimpleClock\Views\AlarmNotificationWindow.cs:строка 85
   в Wox.Plugin.SimpleClock.Commands.AlarmCommand.<>c__DisplayClass4_0.<AlarmTimer_Elapsed>b__2() в C:\Users\Boris\Documents\SourceControl\WoxStuff\Wox.Plugin.SimpleClock\Wox.Plugin.SimpleClock\Commands\AlarmCommand.cs:строка 53

and (i don't have "D:\") absolute path for .mp3 I guess, it's because you have absolute path in code.

when hit "browse" and change filepath to real location (in my case E:\Downloads\release-binary-dev\Plugins\...) - all works fine.

darkkain commented 8 years ago

because https://github.com/Wox-launcher/Wox/issues/415