FHIR Chat · emacs love · shorthand

Stream: shorthand

Topic: emacs love


view this post on Zulip Carl Leitner (Mar 15 2021 at 19:41):

sushi errors out when certain emacs lock files are in place for unsaved files (see https://ftp.gnu.org/old-gnu/Manuals/emacs-20.7/html_node/emacs_106.html for details) but an example is this:
lrwxr-xr-x 1 litlfred staff 26 Mar 15 15:38 .#svc-valuesets.fsh@ -> litlfred@mustard.lan.37228

error message from sushi is this:
info path-to-fsh-defs defaulted to current working directory
info Running SUSHI v1.1.0 (implements FHIR Shorthand specification v1.1.0)
info Arguments:
info /Users/litlfred/pulsar_cats/svc-rc1
info No output path specified. Output to .
error Invalid path to FSH definition folder.

view this post on Zulip Carl Leitner (Mar 15 2021 at 19:42):

has anyone seen this before and knows another workaround besides "save all your files first"? I wonder if there is some unexpected behavior around symbolic link traversal that this issue is surfacing and/or we could add some file exclusions to make sure that sushi has love for emacs

view this post on Zulip Chris Moesel (Mar 15 2021 at 21:36):

It's interesting that this is how such an issue manifests itself (Invalid path to FSH definition folder.). That said, it seems reasonable to me that SUSHI should ignore any files that start with . -- would you (and any others who want to pipe in) agree? If we have agreement that this is a reasonable thing to do, we can update SUSHI in that way.

view this post on Zulip Chris Moesel (Mar 16 2021 at 20:43):

I've filed this under SUSHI#780

view this post on Zulip John Silva (Mar 17 2021 at 19:39):

Yes, I agree. There are other . (dot) files that are created on Macs that (.DS_Store) and others for git, etc. that should be ignored it seems.

view this post on Zulip Chris Moesel (Mar 17 2021 at 19:44):

We only pay attention to files ending in .fsh anyway, so most of those other dot-files aren't an issue. It's only the dot-files that also end in .fsh that are a problem.

view this post on Zulip Carl Leitner (Mar 22 2021 at 18:17):

Thanks @Chris Moesel


Last updated: Apr 12 2022 at 19:14 UTC