Giter Site home page Giter Site logo

Comments (11)

0ihsan avatar 0ihsan commented on July 22, 2024 3

I solved by mapping <C-C> -> <C-[> as a workaround.

from lualine.nvim.

hoob3rt avatar hoob3rt commented on July 22, 2024 1

I stand by my point that it's not a lualine issue nor is it your configuration issue. All we are doing in our filetype components is calling vim.fn.expand functions. My guess is that it's a neovim/vim bug. Go ahead and submit an issue but I think you need to find a real cause of this crash as I suspect they would blame us if you refer a plugin with your ticket.

from lualine.nvim.

hoob3rt avatar hoob3rt commented on July 22, 2024

Mmm, this looks like it's not an issue with lualine but with the lua nvim api. Can you confirm that CTRL_C also breaks other lua plugins?

from lualine.nvim.

0ihsan avatar 0ihsan commented on July 22, 2024

I haven't tried and don't know how to. Maybe secretly but this one was obvious.
Should I create the issue on https://github.com/neovim/neovim?

from lualine.nvim.

shadmansaleh avatar shadmansaleh commented on July 22, 2024

Can you provide more information of how to reproduce it ? It's proving to be really hard to reproduce . If we can find a easier way to reproduce it we can test it on other plugins ..

from lualine.nvim.

0ihsan avatar 0ihsan commented on July 22, 2024

I don't know how to reproduce exactly but I collected some key points I realised this issue occurs.

1. ✅ No Problem

  1. Open nvim
  2. Press i or a
  3. Press CTRL-C
  4. Go to step 2

2. ✅ No Problem

  1. Open nvim
  2. Press i or a
  3. Type "hello"
  4. Press CTRL-C
  5. Go to step 2

3. ❌ Issue Occurs

  1. Open an empty python file nvim x.py
  2. Press i or a
  3. Press CTRL-C
  4. Press i or a one more time (sometimes more than twice)
  5. Press CTRL-C
  6. See the status line disappeared and error message printed.

So, I suspect that this is something to do with filetypes or Python specific. I tried other filetypes and saw they are affected too. Here the filetypes I tried

  • ❌ Python
  • ❌ C
  • ❌ C++
  • ❌ Rust

I also tested how many times should I go to insert mode and normal mode again to reproduce this issue.
(I counted [i+CTRL-C] as 1)

  • nvim x.cc: 5, 2, 3, 3, 4, 5, 2, 4, 7...

So, I couldn't see I pattern here.


See Also

from lualine.nvim.

shadmansaleh avatar shadmansaleh commented on July 22, 2024

Thanks for the info. In your config I can see you are using separate function for relative paths . But
lualines filename component provides relative path too . You can do

lauline_c = {{'filename', full_path = true}},

You can checkout Component options for details :)

from lualine.nvim.

0ihsan avatar 0ihsan commented on July 22, 2024

Thank you, but I also have the filename blocking mechanism for terminal buffers in that function.

from lualine.nvim.

shadmansaleh avatar shadmansaleh commented on July 22, 2024

I suspect they would blame us if you refer a plugin with your ticket.

Not true . The neovim guys are pretry cool . I had mentioned this issue on neovim gitter . This issue needs better way of reproduceing if the cause is ever to be found . After aton of attempts I was only able to make it happen twice . Also it just happens randomly . Trying aton of times the same thing and wating for a bug to affect is npt realistic to do . Also I was actualy gona ask @ihsanturk are you using current master of neovim? I'm using current master and this issue almost naver happens . If you're using an old version can you try current master maybe this has been partialy solved already :)

from lualine.nvim.

0ihsan avatar 0ihsan commented on July 22, 2024

I am using v0.5.0-dev. I will try master.
Thanks.

from lualine.nvim.

icholy avatar icholy commented on July 22, 2024

I'm using nightly builds and this happens about once every hour for me. I cannot find a way to reliably reproduce.

from lualine.nvim.

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.