conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
2021-06-24T08:52:52.175900Z

[Olical/conjure] Issue opened by Olical

🚰 3
2021-06-24T09:13:33.181600Z

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 ?

Sigve 2021-06-25T07:45:24.182500Z

I have this problem as well, but i cant deterministically reproduce it

Olical 2021-06-29T09:56:47.182800Z

Are you running a command of some sort that saves all open buffers?

Olical 2021-06-29T09:57:32.183Z

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?

Olical 2021-06-29T09:57:36.183200Z

That's my hunch anyway!

2021-06-29T09:58:47.183500Z

Thing that comes to mind that I have started using is session management ?

Olical 2021-06-29T10:00:01.183700Z

Ohh you might need to exclude the conjure buffers from your session management

Olical 2021-06-29T10:00:18.183900Z

Not sure if I can do that for you... I don't think I have control of that

2021-06-29T10:00:24.184100Z

FYI: this is using nvim nightly and a bunch of lua plugins … telescope, compe etc.

2021-06-29T10:00:52.184300Z

I’ll take a look and see if I have control of that with the plugin I am using

Olical 2021-06-29T10:03:11.184500Z

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.

2021-06-29T10:09:09.184700Z

I’m using this https://github.com/rmagatti/auto-session I’ll investigate.

Olical 2021-06-29T10:16:26.185Z

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.

Olical 2021-06-29T10:16:39.185200Z

A manually curated list in the code for common plugins?

Olical 2021-06-29T10:20:57.185400Z

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

2021-06-29T10:21:09.185600Z

my sessionoptions=curdir,help,tabpages,winsize

2021-06-29T10:27:55.185800Z

Let me see if I can find the steps that cause the issue.

Sigve 2021-06-29T10:28:05.186Z

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 buftypeis set to nofile

Olical 2021-07-04T11:17:05.188800Z

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 😅

Olical 2021-07-04T11:18:11.189Z

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.