Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parts of long Python lines get erroneously echoed #52

Open
dkasak opened this issue Nov 4, 2016 · 2 comments
Open

Parts of long Python lines get erroneously echoed #52

dkasak opened this issue Nov 4, 2016 · 2 comments

Comments

@dkasak
Copy link

dkasak commented Nov 4, 2016

Issue description

Entering a long comment (I think it happens with others kinds of long lines too, but I couldn't reproduce it by entering a long integer literal, for instance) in a Python buffer makes a part of that line get echoed in Codi's window. The threshold length for this behaviour seems to be 74 chars. I haven't tested other languages.

asciicast

Codi log snippet which demonstrates that the line gets broken which causes the issue:

[21:11:16.292494] <SNR>149_codi_do_update[25]: Starting job for buffer 10
[21:11:16.295624] <SNR>149_user_au[1]: Doing autocommand CodiEnterPost
[21:11:16.375917] <SNR>149_codi_handle_data[9]: async line: # Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
[21:11:16.376491] <SNR>149_codi_handle_data[9]: async line: Python 3.5.2 (default, Jun 28 2016, 08:46:01) 
[21:11:16.376716] <SNR>149_codi_handle_data[9]: async line: [GCC 6.1.1 20160602] on linux
[21:11:16.376939] <SNR>149_codi_handle_data[9]: async line: Type "help", "copyright", "credits" or "license" for more information.
[21:11:16.377255] <SNR>149_codi_handle_data[9]: async line: >>> # Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy 
[21:11:16.377624] <SNR>149_codi_handle_data[9]: async line: eirmod
[21:11:16.377827] <SNR>149_codi_handle_data[9]: async line: ... 
[21:11:16.377944] <SNR>149_stop_job_for_buf[8]: Stopping job for buffer 10

Environment

  • Operating system: Arch Linux
  • Codi version: Latest master (6f83309)
  • nvim version:
NVIM 0.1.6
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.6/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser```

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"
@metakirby5
Copy link
Owner

Seems like an nvim-only issue - I can reproduce it there, but not in vim. Can you confirm this?

@maurges
Copy link

maurges commented Nov 16, 2019

Alright, it's been 3 years, and I can confirm this is nvim-only bug. This is the line that always reproduces the bug for me:
from z3 import BitVec, Solver, unsat, RotateRight, Extract, Concat, BitVecVal

This is my python version:
Python 3.6.9

This is my vim version:

VIM - Vi IMproved 8.0 (2016 Sep 12)
Included patches: 1-1568

This is my nvim version:
NVIM v0.3.7

To add to that, neovim has a lot of issues with long lines. Sometimes I get a SyntaxError on long lines (it seems lines are getting cut in the middle), sometimes the output for long command lines is one line off, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants