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

Presented inputs of a function run off of the screen #4104

Open
6 tasks
nickeisenberg opened this issue Dec 23, 2022 · 1 comment
Open
6 tasks

Presented inputs of a function run off of the screen #4104

nickeisenberg opened this issue Dec 23, 2022 · 1 comment

Comments

@nickeisenberg
Copy link

nickeisenberg commented Dec 23, 2022

Issue Prelude

Please complete these steps and check these boxes (by putting an x inside
the brackets) before filing your issue:

  • [x ] I have read and understood YCM's CONTRIBUTING document.
  • [ x] I have read and understood YCM's CODE_OF_CONDUCT document.
  • [ x] I have read and understood YCM's README, especially the
    Frequently Asked Questions section.
  • [ x] I have searched YCM's issue tracker to find issues similar to the one I'm
    about to report and couldn't find an answer to my problem. (Example Google
    search.
    )
  • If filing a bug report, I have included the output of vim --version.
  • If filing a bug report, I have included the output of :YcmDebugInfo.
  • If filing a bug report, I have attached the contents of the logfiles using
    the :YcmToggleLogs command.
  • If filing a bug report, I have included which OS (including specific OS
    version) I am using.
  • If filing a bug report, I have included a minimal test case that reproduces
    my issue, using vim -Nu /path/to/YCM/vimrc_ycm_minimal, including what I
    expected to happen and what actually happened.
  • If filing a installation failure report, I have included the entire output
    of install.py (or cmake/make/ninja) including its invocation
  • [x ] I understand this is an open-source project staffed by volunteers and
    that any help I receive is a selfless, heartfelt gift of their free time. I
    know I am not entitled to anything and will be polite and courteous.
  • [ x] I understand my issue may be closed if it becomes obvious I didn't
    actually perform all of these steps.

Thank you for adhering to this process! It ensures your issue is resolved
quickly and that neither your nor our time is needlessly wasted.

Issue Details

Provide a clear description of the problem, including the following key
questions:

The function input descriptions will run off the screen if there are many
inputs for a function.

  • What did you do?

Include steps to reproduce here.

  1. In the .vimrc, I have

let g:ycm_python_binary_path = '/usr/local/bin/python3'
let g:ycm_path_to_python_interpreter='/usr/local/bin/python3'
let g:ycm_autoclose_preview_window_after_insertion = 1

  1. Then open up a python script, test.py for example.
  2. import numpy
  3. Then do something like,
    time = numpy.linspace(
  4. The inputs of numpy.linspace will appear above but they will run off the screen
    so that you can not see all of the inputs. (https://imgur.com/a/RSyjzTN)

Include description of a minimal test case, including any actual code required
to reproduce the issue.

If you made changes to vimrc_ycm_minimal, pase them here:

<contents of ycm_vimrc_minimal>
  • What did you expect to happen?

Include description of the expected behaviour.
I expect the inputs to be presented in a way where they do not run
off the screen.

  • What actually happened?
    The inputs ran off the screen

Include description of the observed behaviour, including actual output,
screenshots, etc.
(https://imgur.com/a/RSyjzTN)

Diagnostic data

Output of vim --version

Paste output here

Output of YcmDebugInfo

Paste output here

Output of YcmDiags

Paste output here

Output of git rev-parse HEAD in YouCompleteMe installation directory

paste output here

Contents of YCM, ycmd and completion engine logfiles

Reproduce the issue with vim -Nu /path/to/YCM/vimrc_ycm_minimal, which
enabled debug logging and other useful diagnostics. Include a link to a
gist containing all of the log files listed by :YcmToggleLogs.

OS version, distribution, etc.

Include system information here.

Output of build/install commands

Include link to a gist containing the invocation and entire output of
install.py if reporting an installation issue.

@puremourning
Copy link
Member

It's not obvious how this can be improved and remain useful and simple in the general case. It might be possible to horizontally scroll to make the active parameter visible at least, but there's no way we will split the arguments over multiple lines or anything like that.

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

No branches or pull requests

2 participants