Giter Site home page Giter Site logo

Comments (8)

Shougo avatar Shougo commented on August 25, 2024

Hm.

I want to test the behavior.
Please create the minimal vimrc and the reproduce ways from Vim starting.

from vim-racer.

jinks avatar jinks commented on August 25, 2024

Here's a minimal vimrc that reproduces the error for me:

set nocompatible

if empty(glob('~/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

call plug#begin('~/.vim/bundle')
Plug 'Shougo/neocomplete.vim'
Plug 'racer-rust/vim-racer'
call plug#end()

let g:neocomplete#enable_at_startup = 1

Obviously you can replace the vim-plug part with any other method to get the plugs installed.

A test file (save as ./src/main.rs):

fn main() {
    println!("Hello, world!");
}

The error appears for me when I try to insert .unwrap() between the ) and the ;. (Note, .unwrap() is not a valid method at that point, but it still shouldn't mangle the input.)

Vim version is 8.0.0851.

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

I will test it.

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

I think your machine is very slow and the input is lost.
You can test it in another machine.

from vim-racer.

jinks avatar jinks commented on August 25, 2024

I doubt speed is the problem. i5-3550, 16G, data on SSD and there's almost no load.

Even if I type really slowly the changes happen and you can see the cursor jumping back and forth.

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

Reproduced.
It is racer completion is too slow problem.
I cannot fix it.
You should use deoplete instead.

from vim-racer.

jinks avatar jinks commented on August 25, 2024

I might look into that, but I'm not yet on NeoVim. For now, YCM works for rust.

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

For now, YCM works for rust.

YCM has own integration with racer.
So it has not the problem.

from vim-racer.

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.