GithubHelp home page GithubHelp logo

Comments (9)

wincent avatar wincent commented on May 18, 2024

I doubt it's a Command-T bug, but you never know.

My first instinct is to try doing this with an autocmd or some other such
hackery (instead of -c) to rule out -c as a confounding variable.

On Friday, March 28, 2014, Aiden Scandella [email protected] wrote:

I recently went through a recompile/upgrade of my OS X (10.9.2)
workstation, and ran into a frustrating issue.

When I run vim -c CommandT (which is my default vim launcher, when no
file is specified on the command line), I can type into the prompt and see
my input reflected, but the match window does not update. When I out and
:CommandT again, it works fine. I tried vim -c "sleep 100m | CommandT out
of desperation, with no change.

I tried both the official vim 7.4 tbz, and the mercurial head. I reset to
previous versions of Command-T as well (my previous HEAD was 89896bdhttps://github.com/wincent/Command-T/commit/89896bd
).

How do I got about debugging this issue? I'd love to help you fix it, but
honestly I can't even tell if it's a vim bug or a command-t bug.

Thanks!
—Aiden


Reply to this email directly or view it on GitHubhttps://github.com//issues/71
.

from command-t.

ascandella avatar ascandella commented on May 18, 2024

Same result on doing:

autocmd BufEnter * :CommandT

from command-t.

wincent avatar wincent commented on May 18, 2024

I just tried this on my box (10.9.2, latest HEAD of Command-T next branch, Vim 7.4 with patches 1-161 installed via Homebrew, Ruby 2.0.0-p247) and it (vim -c CommandT) works for me.

Any other different stuff in your environment?

from command-t.

ascandella avatar ascandella commented on May 18, 2024

I've been building vim from source... I just tried to install the homebrew version and now I'm getting:

Vim: Caught deadly signal ABRT
Vim: Finished.

I'm guessing there's some mixing of libraries that I've installed from source and the homebrew version. I'll try to clean out my environment and get the homebrew vim running, since that seems more likely to work than my custom-compiled one (although everything was working fine before today).

from command-t.

wincent avatar wincent commented on May 18, 2024

Yeah, just be sure to build Command-T with the exact same version of Ruby that your Vim links against. If in doubt, :ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}".

from command-t.

wincent avatar wincent commented on May 18, 2024

I should also add, there is nothing special about the Homebrew Vim (I build Vim from source on my CentOS devserver and it works fine).

from command-t.

ascandella avatar ascandella commented on May 18, 2024

Aha... I got the homebrew vim running 7.4.161 and the -c behavior works again. I'm going to assume I just did something terrible when compiling my latest round and never try that again.

Thanks for the speedy responses! I was really worried I would have to live in a world where Command-T wasn't the first thing I saw when opening a new editor :)

from command-t.

wincent avatar wincent commented on May 18, 2024

image

from command-t.

ascandella avatar ascandella commented on May 18, 2024

Hmm, so I did a little more digging today and discovered that the homebrew vim was a red herring. In the process of switching vim binaries, I had to disable the YouCompleteMe vim plugin (see above ABRT errors), which turns out to have been the problem. Re-enabling YouCompleteMe reintroduces the flaky launch behavior.

I worked around it by moving the call youcompleteme#Enable() from plugin/youcompleteme.vim augroup youcompletemeStart into the top-level, but it's mostly a hack.

Anyway, if you get future reports (or if you run into this issue yourself by installing YCM), this is a decent workaround (I imagine the impact to startup time is minimal given modern processing speed). I wish I knew enough about vim internals to debug this further, but alas, everything is working again.

Cheers,
Aiden

from command-t.

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.