Opening a working directory on a drive letter that later becomes unavailable makes it impossible to set a new working directory until the drive letter becomes available again.
Example:
Attach a drive / Connect a USB Key -> Mounts Drive D:
Start AsciidocFX and set Working Directory to D:\myproject
Do your stuff, save, exit AsciidocFX
Detach the drive / Remove USB Key
Start AsciidocFX -> No Working Directory, can't get prompt to change working directory when clicking the icon
Workaround : Edit the value of workingDirectory in ~/.AsciidocFX-*/stored_directories.json to a valid drive path.
The issue appears to be due to the fact that windows' working directory prompt throws an error if it receives an invalid starting path. Validating the path and defaulting to a parent if the path is unavailable or the first value of java.nio.file.FileSystem::getRootDirectories if no parent is available might be a good idea.
Seen on windows 10, AsciidocFX 1.7.3
Opening a working directory on a drive letter that later becomes unavailable makes it impossible to set a new working directory until the drive letter becomes available again.
Example:
D:
D:\myproject
Workaround : Edit the value of
workingDirectory
in~/.AsciidocFX-*/stored_directories.json
to a valid drive path.The issue appears to be due to the fact that windows' working directory prompt throws an error if it receives an invalid starting path. Validating the path and defaulting to a parent if the path is unavailable or the first value of
java.nio.file.FileSystem::getRootDirectories
if no parent is available might be a good idea.