warpdesign / react-explorer

File manager written in TypeScript, React, Blueprint and packaged with Electron
MIT License
245 stars 35 forks source link

Error when browsing an offline distro #153

Open warpdesign opened 4 years ago

warpdesign commented 4 years ago

React-Explorer lists every distro, even though they are offline.

When clicking in the left panel on an offline distro, nothing happens: an error should be displayed (maybe a hint that's the distro is offline ?).

Stack trace:

error cd/list for path \wsl$\Ubuntu-20.04\ error was Error: UNKNOWN: unknown error, lstat '\wsl$\Ubuntu-20.04\' at fs.lstatSync (fs.js:936) at Object.fs.lstatSync (ELECTRON_ASAR.js:259) at LocalApi. (FsLocal.ts:184) at step (FsGeneric.ts:173) at Object.next (FsGeneric.ts:173) at FsGeneric.ts:173 at new Promise () at ./src/services/plugins/FsLocal.ts.__awaiter (FsGeneric.ts:173) at LocalApi../src/services/plugins/FsLocal.ts.LocalApi.isDir (FsLocal.ts:183) at LocalApi../src/services/plugins/FsLocal.ts.LocalApi.cd (FsLocal.ts:59)

warpdesign commented 4 years ago

I am closing this: latest version of Windows appears to automatically start the VM when attempting to access it if it's offline.

warpdesign commented 4 years ago

Actually no... re-opening.