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

Missing parameters list inside parentheses #23

Open
4 of 17 tasks
FelipeMarcelino opened this issue Oct 22, 2017 · 1 comment
Open
4 of 17 tasks

Missing parameters list inside parentheses #23

FelipeMarcelino opened this issue Oct 22, 2017 · 1 comment

Comments

@FelipeMarcelino
Copy link

FelipeMarcelino commented Oct 22, 2017

Issue Prelude

  • Category
    • Question
    • Bug
    • Suggestion
  • OS
    • Linux
    • macOS
    • Windows
    • Etc.
  • Vim
    • Vim
    • Neovim
  • Language
    • C
    • C++
    • go
    • python
    • rust
    • javascript
    • typescript
    • erlang

Completion Engine and Commit SHA

YouCompleteMe: cd41727

Minimal Configuration

inoremap ( complete_parameter#pre_complete("()")
smap (complete_parameter#goto_next_parameter)
imap (complete_parameter#goto_next_parameter)
smap (complete_parameter#goto_previous_parameter)
imap (complete_parameter#goto_previous_parameter)

Issue Details

  • What did you do?

When i try to autocomplete functions, parameters does not insert inside parentheses.

  • What did you expect to happens?

Insertion of parameters inside function parentheses

  • What actually happened?

Only add empty parentheses

Messages

[CompleteParameter][03:55:40][TRACE][814724358] {'word': 'XGBClassifier', 'menu': 'class XGBClassifier', 'info': 'XGBClassifier(self, max_depth=3, learning_rate=0.1,
n_estimators=100, silent=True,
objective="binary:logistic", nthread=-1, gamma=0,
min_child_weight=1, max_delta_step=0, subsample=1,
colsample_bytree=1, colsample_bylevel=1, reg_alpha=0,
reg_lambda=1, scale_pos_weight=1, base_score=0.5,
seed=0, missing=None)
', 'kind': '', 'abbr': ''}

[CompleteParameter][03:56:19][DEBUG][375168591] []

[CompleteParameter][03:56:43][DEBUG][1816182727] parseds is empty

@tenfyzhong
Copy link
Owner

Can you show me the preview info? Follow next steps to get the preview info.

  1. Edit the python file.
  2. Use command mode to enable the preview info: :set completeopt+=preview.
  3. Reproduce the completion. And then the preview info will show in the preview window.

Please copy the info and take a screenshot.

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