shime / emacs-livedown

Emacs plugin for Livedown.
115 stars 6 forks source link

Livedown server can't open directories with a space in the name #10

Open chetstone opened 4 years ago

chetstone commented 4 years ago

My .md file is in a directory called "CMW affairs". When trying to preview with livedown, I get the following error:

/Volumes/ChesterHome/chet/.nodenv/versions/12.18.2/lib/node_modules/livedown/server.js:85
      if (err) throw err
               ^

[Error: ENOENT: no such file or directory, open '/Volumes/ChesterHome/chet/Documents/CMW'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Volumes/ChesterHome/chet/Documents/CMW'
}

Process emacs-livedown exited abnormally with code 1

"/Volumes/ChesterHome/chet/Documents/CMW affairs/ComputerSetup.md rendered @ 1337"

Renaming the directory to CMW_affairs works around the problem.