You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clerk can fails to properly watch on file changes when using Emacs on MS-Windows, either with Emacs complaining that it can't unlock the file it is trying to save or with the following error message on the web browser:
Eval the first form, a browser should open at localhost:7777
Eval the second form, it should start watching for changes in the notebooks dir where dice.clj lives
Try to save dice.clj, you either get the above error in the web browser or Emacs will complain it can't unlock the dice.clj file and nothing happens on the web page (the file stays unsaved).
The root cause for this is that Emacs creates a complimentary lock file named .#dice.clj alongside dice.clj to check for multiprocess access to the main file. It so happens that the lock file on MS-Widnows is a real file (rather than a symbolic link) with contents the name of the user and the process id that holds the lock. clerk might try to display the lock file (since it ends in .clj) and thus the error described earlier.
PR to follow.
Thanks,
The text was updated successfully, but these errors were encountered:
ikappaki
changed the title
clerk could fail to visualize file when editing with Emacs on MS-Windows
clerk can fail to visualize file when editing with Emacs on MS-Windows
Dec 4, 2021
They aren't symlinks on Windows so Clerk will attempt to show them. Closes#22.
Co-authored-by: ikappaki <ikappaki@users.noreply.github.com>
Co-authored-by: Martin Kavalar <mk@katercalling.com>
Hi,
Clerk can fails to properly watch on file changes when using Emacs on MS-Windows, either with Emacs complaining that it can't unlock the file it is trying to save or with the following error message on the web browser:
To reproduce using Emacs and Cider
clerk/notebooks/dice.clj
in EmacsM-x cider-clj-jack-in RET clojure-cli
dice.clj
but do not save the filelocalhost:7777
dice.clj
livesdice.clj
, you either get the above error in the web browser or Emacs will complain it can't unlock thedice.clj
file and nothing happens on the web page (the file stays unsaved).The root cause for this is that Emacs creates a complimentary lock file named
.#dice.clj
alongsidedice.clj
to check for multiprocess access to the main file. It so happens that the lock file on MS-Widnows is a real file (rather than a symbolic link) with contents the name of the user and the process id that holds the lock.clerk
might try to display the lock file (since it ends in.clj
) and thus the error described earlier.PR to follow.
Thanks,
The text was updated successfully, but these errors were encountered: