njthomson / SrvSurvey

A new to help Commanders in planet based opperations
GNU General Public License v3.0
38 stars 1 forks source link

DirectoryNotFoundException "Could not find a part of the path 'D:\code\SrvSurvey\SrvSurvey\bio-criteria'." at 07/07/24 23:54:17 -05:00 #113

Closed SkepticalFall closed 4 months ago

SkepticalFall commented 4 months ago

What happened?

After finding some bio it faulted out looking for a dir that doesn't exist.

Version

1.1.3.63

Exception message

Could not find a part of the path 'D:\code\SrvSurvey\SrvSurvey\bio-criteria'.

Exception stack

at System.IO.Enumeration.FileSystemEnumerator1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator1.Init() at System.IO.Enumeration.FileSystemEnumerable1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized) at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at System.IO.Directory.GetFiles(String path, String searchPattern, EnumerationOptions enumerationOptions) at BioCriteria.Criteria.readCriteria() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\bio-criteria\Criteria.cs:line 34 at BioCriteria.Predictor.predict(SystemBody body) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\bio-criteria\Predictor.cs:line 12 at SrvSurvey.game.SystemBody.predictSpecies() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\SystemData.cs:line 2260 at SrvSurvey.game.SystemData.Load(String systemName, Int64 systemAddress, String fid) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\SystemData.cs:line 65 at SrvSurvey.game.SystemData.From(ISystemDataStarter entry, String fid, String cmdrName) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\SystemData.cs:line 95 at SrvSurvey.game.Game.<>c__DisplayClass117_0.<initSystemData>b__0(JournalEntry entry) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\Game.cs:line 772 at SrvSurvey.JournalFile.walk(Int32 index, Boolean searchUp, Func2 func) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\JournalFile.cs:line 210 at SrvSurvey.JournalFile.walkDeep(Int32 index, Boolean searchUp, Func2 func, Func2 finishWhen) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\JournalFile.cs:line 182 at SrvSurvey.game.Game.initSystemData() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\Game.cs:line 747 at SrvSurvey.game.Game.initializeFromJournal(LoadGame loadEntry) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\Game.cs:line 515 at SrvSurvey.game.Game..ctor(String cmdr) in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\game\Game.cs:line 164 at SrvSurvey.Main.newGame() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\Main.cs:line 416 at SrvSurvey.Main.b11_9() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\Main.cs:line 252 at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Forms.Control.InvokeMarshaledCallbacks() --- End of stack trace from previous location --- at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at System.Windows.Forms.Control.Invoke(Action method) at SrvSurvey.Main.b11_2() in D:\a\SrvSurvey\SrvSurvey\SrvSurvey\Main.cs:line 243

Relevant log output

No response

njthomson commented 4 months ago

@SkepticalFall - doh, that is a bug with the new prediction code. I will fix this tomorrow.

SkepticalFall commented 4 months ago

No problem, appreciate it!

On Mon, 8 Jul 2024 at 02:03, njthomson @.***> wrote:

@SkepticalFall https://github.com/SkepticalFall - doh, that is a bug with the new prediction code. I will fix this tomorrow.

— Reply to this email directly, view it on GitHub https://github.com/njthomson/SrvSurvey/issues/113#issuecomment-2213195335, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDJVPZB52YD4QMDHIXBNY73ZLI2U5AVCNFSM6AAAAABKQBQRFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGE4TKMZTGU . You are receiving this because you were mentioned.Message ID: @.***>

-- Thanks,

Shane Pottridge

njthomson commented 4 months ago

@SkepticalFall - please give this a try: https://github.com/njthomson/SrvSurvey/releases/tag/1.1.3.64