Giter Club home page Giter Club logo

Comments (9)

Olical avatar Olical commented on May 15, 2024

from conjure.

daveyarwood avatar daveyarwood commented on May 15, 2024

That Can't open file /tmp... error is from vista.vim, to clarify :)

from conjure.

Olical avatar Olical commented on May 15, 2024

Also thank you for calling it an edge case rather than a bug, that's one step away from calling it an unintended feature 😄

from conjure.

Olical avatar Olical commented on May 15, 2024

So this error is actually coming out of Conjure:

19-07-17 16:29:59 moondog TRACE [conjure.rpc:199] - Received RPC message: {:type :response, :id 1, :error [0 "Error executing lua: /home/dave/.vim/bundle/conjure//lua/conjure.lua:87: Vim(if):E482: Can't open file /tmp/user/10007d12eecc0088a7ae6e413b2dd9867a4f3aabb0807309eacc4899826f7042e53a.clj for writing: permission denied"], :result nil, :client :stdio}

More precisely, it's coming out of the Lua function, upsert_log. So it seems like there might be a race condition there somewhere 🤔

from conjure.

Olical avatar Olical commented on May 15, 2024

So the error is coming from this:

    if open then
      if focus ~= true then
        vim.api.nvim_command("wincmd p") -- <- this line
      end
    else
      vim.api.nvim_command("wincmd q")
    end

So it looks like as I try to go back to your original window it explodes. This case only happens on the initial load or if you've deleted Conjure's log buffer and it needs to make a new one.

from conjure.

Olical avatar Olical commented on May 15, 2024

How's develop look for you now @daveyarwood? I basically wrapped that wincmd p in pcall which is kinda like a catch all? Because I think it's the act of going to the previous buffer that's causing this issue, which is weird.

I'm just kinda paving over this edge case since it's not something Conjure is causing directly... as far as I can tell.

from conjure.

daveyarwood avatar daveyarwood commented on May 15, 2024

The changes on develop do not seem to fix this issue. The behavior seems to be the same, although I haven't dug into the logs to verify if anything has changed. Here they are, in case it's helpful.

Screenshot:

2019-07-18-105706_1719x374_scrot

Logs:

conjure.log

from conjure.

Olical avatar Olical commented on May 15, 2024

Ah, that sucks 😭 okay, I'll have another dig, I'm not sure what could be causing it right now.

from conjure.

Olical avatar Olical commented on May 15, 2024

Oh, did liuchengxu/vista.vim#124 fix the issue? Because I was beginning to see what vista was doing to check if it was conflicting with Conjure and it's log buffer upsert somehow. Basically that permission error was causing the log buffer to never get created which breaks all sorts of things.

Luckily the upsert is run every time, so that's why it works after you attempt something else.

from conjure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.