markbind icon indicating copy to clipboard operation
markbind copied to clipboard

UncaughtException when running Markbind Serve in non-Markbind directories.

Open gerteck opened this issue 1 year ago • 2 comments

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#1715

Tell us about your environment

Win 10

MarkBind version

3.1.1 - 5.5.2

Describe the bug and the steps to reproduce it

When markbind serve is run in stray directories (non-MarkBind configured folders), there is an uncaught exception that should be caught, or at least not shown to the user, to avoid confusion. (unless this is intentional).

The "path" argument must be of type string.

v3.1.1: image

v5.5.2: image

Minor nit to improve CLI experience.

Expected behavior

Error not shown.

Anything else?

No response

gerteck avatar Aug 19 '24 04:08 gerteck

Sounds like this error might be related to #2547 and #1825

kaixin-hc avatar Aug 19 '24 13:08 kaixin-hc

Yes, I think https://github.com/MarkBind/markbind/issues/1825 is relevant to this issue. I guess it is a known behavior that markbind serve does not work in non-markbind directories, but improving the error handling/message is indeed good to have.

tlylt avatar Sep 04 '24 12:09 tlylt