andviro / flake8-vim

Pyflakes, Pep8 and mccabe code complexity checker for Vim, bundled with latest libraries for easy installation
63 stars 18 forks source link

Inserts Syntax Error... #12

Closed sheluchin closed 2 years ago

sheluchin commented 10 years ago

After updating to the latest commit, I get the behaviour seen here: http://www.gfycat.com/ThreadbareDaringGossamerwingedbutterfly

Note that I am just typing signals. and not hitting return anywhere. I am trying to type signals.post.

I reverted back to 7cecb3a and I'm no longer having the problem.

andviro commented 10 years ago

I can't reproduce this. It seems that you have some imap on '.' that outputs to stdout and garbles screen. Can you show me output of :imap in python buffer?

sheluchin commented 10 years ago
i  <Plug>(neocomplcache_start_omni_complete) * <C-X><C-O><C-P>
i  <Plug>(neocomplcache_start_auto_complete_no_select) * <C-X><C-U><C-P>
i  <Plug>(neocomplcache_start_auto_complete) * <C-X><C-U><C-R>=neocomplcache#mappings#popup_post()<CR>
i  <Plug>(neocomplcache_start_unite_quick_match) * unite#sources#neocomplcache#start_quick_match()
i  <Plug>(neocomplcache_start_unite_complete) * unite#sources#neocomplcache#start_complete()
i  <C-Tab>     * <C-R>=UltiSnips#ListSnippets()<CR>
i  <Plug>ISurround * <C-R>=<SNR>25_insert(1)<CR>
i  <Plug>Isurround * <C-R>=<SNR>25_insert()<CR>
i  <Plug>(neocomplcache_snippets_force_jump) * <C-O>:echoerr <SNR>23_print_snippets_complete_error()<CR>
i  <Plug>(neocomplcache_snippets_force_expand) * <C-O>:echoerr <SNR>23_print_snippets_complete_error()<CR>
i  <Plug>(neocomplcache_snippets_jump) * <C-O>:echoerr <SNR>23_print_snippets_complete_error()<CR>
i  <Plug>(neocomplcache_snippets_expand) * <C-O>:echoerr <SNR>23_print_snippets_complete_error()<CR>
!  <D-v>         <C-R>*
i  <C-G>S        <Plug>ISurround
i  <C-G>s        <Plug>Isurround
i  <Tab>       * <C-R>=UltiSnips#ExpandSnippet()<CR>
i  <CR>        * pumvisible() ? "\<C-Y>" : "\<C-G>u\<CR>"
i  <C-S>         <Plug>Isurround
i  #           * #
i  jj            <Esc>
andviro commented 10 years ago

Hmm. There's no mapping on '.' but something clearly runs on dot pressed. There's no 'syntax error...' string anywhere in flake8-py. Do you have some other syntax checker or completion library installed?

sheluchin commented 10 years ago

No other syntax checker, but I do have https://github.com/SirVer/ultisnips

sheluchin commented 10 years ago

Just did a bisect to find where the problem begins. It was indeed that commit I randomly chose to revert to.

 ((d0983de...)|BISECTING|✚3…) $ git bisect bad                                                                                                                                   05/14 18:05:54
d0983de7b67e5757093cef601f2d7a6d0d37f4a3 is the first bad commit
commit d0983de7b67e5757093cef601f2d7a6d0d37f4a3
Author: Andrew Rodionoff <andviro@gmail.com>
Date:   Thu Apr 3 22:27:31 2014 +0400

    Begin migration to frosted

:100644 100644 cbbc19a3447d2dee57bc13695ba6024c01e0bea3 236ca0e0b04e48f4f64626db23738e64e3d342f3 M      .gitmodules
:040000 040000 851628b868dfbca86f0ea80c34eed7bc61a12a58 815bfff7cd6c94de85b10e96f7eba8630e047e27 M      ftplugin
andviro commented 10 years ago

Sorry, I can't find anything that outputs to stdout in flake8-vim. There must be some conflict with your mappings in insert mode. I can only hope that you find what period key in insert mode maps to and show it to me so I could analyse it further. BTW, you should really use Jedi-vim for Python insert-mode completion and code navigation. It's awesome, and has no conflicts with my plugin.