This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-24
Channels
- # babashka (11)
- # beginners (62)
- # calva (9)
- # cider (7)
- # clj-kondo (18)
- # cljfx (2)
- # cljsrn (4)
- # clojure (55)
- # clojure-australia (3)
- # clojure-dev (2)
- # clojure-europe (39)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-spec (5)
- # clojure-uk (5)
- # clojured (7)
- # clojurescript (16)
- # clojureverse-ops (2)
- # conjure (22)
- # cursive (12)
- # data-science (13)
- # datomic (8)
- # duct (7)
- # emacs (11)
- # events (1)
- # fulcro (12)
- # helix (10)
- # integrant (21)
- # introduce-yourself (5)
- # jobs (2)
- # jobs-discuss (16)
- # lsp (1)
- # malli (5)
- # meander (7)
- # membrane (9)
- # pathom (9)
- # reitit (5)
- # releases (3)
- # ring (2)
- # sci (18)
- # shadow-cljs (35)
- # sql (15)
Hi - I am seeing log files like this “conjure-log-66961.cljc” produced in the project folder that I have not seen before. There are times where I can’t quit nvim without q! as the logfile is modified; I save and it immediately becomes modified again etc etc. Not sure if this is just me seeing this or if there is a setting I am missing ?
If so, maybe you're writing the log (an in memory scratch buffer by default) to disk, which may flip it from scratch to "real". And then at that point it's always marked as modified as conjure appends to it, so you can't quit until it's written?
Thing that comes to mind that I have started using is session management ?
FYI: this is using nvim nightly and a bunch of lua plugins … telescope, compe etc.
I’ll take a look and see if I have control of that with the plugin I am using
I think I remember using a session plugin before and having to tell it not to store fugitive and nerdtree buffers from it or it broke.
I’m using this https://github.com/rmagatti/auto-session I’ll investigate.
Hmm I don't see any options or issues for it. I wonder if it's looking for a certain option in the buffer to know it's a scratch and shouldn't be saved. Like you wouldn't want it to write fugitives buffer to disk, so I wonder how it knows not to.
Ohh if it's relying on the built in session tooling and is just doing the auto invocation... it's probably an option in nvim
my sessionoptions=curdir,help,tabpages,winsize
Let me see if I can find the steps that cause the issue.
I am using https://github.com/tpope/vim-obsession, but i cannot provoke the writing of the conjure-log file by creating sessions using it. By default it does not seems to do anything with the log-buffer as long as the buftype
is set to nofile
the fact that I've never seen this but I don't use sessions really suggests it's session related... or maybe some other plugin both of you have in common? Would one of you be able to open an issue with as much info as you can when you get a chance? I'd love to fix it! This just isn't a great place to track issues and share information since it vanishes after a time 😅
I wonder if we can find a minimal repro... I think it's around writing the file by mistake somewhere, then it gets included in sessions, then you end up with the "nofile" attribute being removed from the log buffer. So then nvim thinks you care about the modifications (things being appended to the log). We have to work out how the nofile option is being removed... if that is the root cause anyway.