Fork me on GitHub
#conjure
<
2021-06-24
>
GitHub08:06:52

[Olical/conjure] Issue opened by Olical

🚰 6
The Continium09:06:33

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 ?

Sigve07:06:24

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

Olical09:06:47

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

Olical09:06:32

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?

Olical09:06:36

That's my hunch anyway!

The Continium09:06:47

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

Olical10:06:01

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

Olical10:06:18

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

The Continium10:06:24

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

The Continium10:06:52

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

Olical10:06:11

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.

Olical10:06:26

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.

Olical10:06:39

A manually curated list in the code for common plugins?

Olical10:06:57

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

The Continium10:06:09

my sessionoptions=curdir,help,tabpages,winsize

The Continium10:06:55

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

Sigve10:06:05

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

Olical11:07:05

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 😅

Olical11:07:11

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.

The Continium17:07:02

For me it has gone away on develop after your change

🎉 2