Coder Social home page Coder Social logo

Comments (8)

dstein64 avatar dstein64 commented on May 20, 2024

Hi @pollen00, can you provide details on (1) the error message you're encountering (and/or any other information on how vim-staruptime is breaking), (2) details on how you have the alias set up, and (3) if relevant, information about the dashboard?

from vim-startuptime.

ppebb avatar ppebb commented on May 20, 2024

The error is just the "Is vim-startuptime stuck on 0% progress?" screen. I can run neovim in a nested terminal just fine, and the screen goes away and everything works once I remove the alias.
The alias is set through my zshrc.

from vim-startuptime.

dstein64 avatar dstein64 commented on May 20, 2024

I'm not sure what could be causing the issue.

I've updated vim-startuptime to include additional debugging information on the screen you're stuck on.

It should now include something like the following (this is what's shown for me, which quickly disappears since I don't encounter any issue):

  It may help to run a nested instance of (n)vim in a manner similar
  to vim-startuptime. The following lines show the shell-escaped
  program and arguments used by vim-startuptime. <OUTPUT> should be
  replaced with an output file.

    '/usr/bin/vim.gtk3'
      '--startuptime'
      '<OUTPUT>'
      '-c'
      'if exists('\''*timer_start'\'') | call timer_start(0, {-> execute('\''qall!'\'')}) | else | autocmd VimEnter * qall! | endif'

Can you post that information here and/or try running a nested Neovim with the program and arguments from the information that's shown for you (if so, be sure to replace <OUTPUT> with a real file path for saving the startuptime output)?

from vim-startuptime.

ppebb avatar ppebb commented on May 20, 2024

This is what's shown in the 0% menu.

    '/usr/bin/nvim'
      '--startuptime'
      '<OUTPUT>'
      '-c'
      'if exists('\''*timer_start'\'') | call timer_start(0, {-> execute('\''qall!'\'')}) | else | autocmd VimEnter * qall! | endif'

Trying to run with those arguments just spits out error detected while processing command line: so I think there might be something wrong with all of the single quotes in -c

from vim-startuptime.

dstein64 avatar dstein64 commented on May 20, 2024

The arguments are shell-escaped, so I'm not sure what's causing the problem. Does the following command run from a :terminal within Neovim?

/usr/bin/nvim --startuptime startuptime_output -c 'if exists('\''*timer_start'\'') | call timer_start(0, {-> execute('\''qall!'\'')}) | else | autocmd VimEnter * qall! | endif'

from vim-startuptime.

ppebb avatar ppebb commented on May 20, 2024

It runs, flashes for a sec, and then returns to the :terminal. Nothing is printed out to the console.

from vim-startuptime.

dstein64 avatar dstein64 commented on May 20, 2024

That's the working behavior. I thought maybe there would be a notification of some error.

Can you share the alias command? I'll try to reproduce by matching your configuration.

from vim-startuptime.

ppebb avatar ppebb commented on May 20, 2024

It's just alias nvim="nvim --startuptime /tmp/nvim-startuptime"

from vim-startuptime.

Related Issues (16)

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.