Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
E584 fix: keep omnicompl really default enable by Shane-XB-Qian · Pull Request #373 · yegappan/lsp · GitHub
Nothing Special   »   [go: up one dir, main page]

Skip to content

Conversation

Shane-XB-Qian
Copy link
Contributor

omnicompl option was default true really, the recent change made it be possible false.
// this to fix it.

@yegappan
Copy link
Owner
yegappan commented Aug 1, 2023

There is a deliberate reason why I made this change. This change allows omni-completion to be disabled independent of auto-completion. Previously, when auto-completion is disabled, omni-completion is enabled by default. There are use cases where a user needs to disable both auto-completion and omni-completion globally. With your change, these features cannot be independently enabled or disabled.

Can you describe what is the problem that you are facing with omni-completion?

@Shane-XB-Qian
Copy link
Contributor Author
Shane-XB-Qian commented Aug 1, 2023 via email

@Shane-XB-Qian
Copy link
Contributor Author
Shane-XB-Qian commented Aug 1, 2023 via email

@yegappan
Copy link
Owner
yegappan commented Aug 2, 2023

you changed this several times, last time before latest one you modified it
to if auto-complete disabled then omnicompl enabled, the latest change you
recovered it to independent auto-complete and omnicompl which both can be
enabled, and added a vim session level omnicomplete option.

The changes I made didn't change the default behavior. The behavior previously
was:

  1. Auto completion is enabled by default and omni-complete is not enabled.
  2. If the autocomplete option is set to false, then omni-complete is enabled.
  3. If autocomplete is set to false and the per-server omnicompl flag is
    set to false, then omni-completion is disabled for that server.

My changes added another option to enable or disable omni-completion.
If this broke something else, let me know.

now this/my
change kept it and same like the original design, but get default from vim
session level omnicomplete option too, however your latest change make that
default 'false' which server level omnicompl maybe false, which changed the
consistent default behavior, this change/my pr just to fix that to keept it
really default true, unless user changed vim session level omnicomplete
option value, and didnot change omnicompl for that server.

Currently to change the autocomplete and omnicomplete option values, the
Vim instance need to be restarted. This makes it difficult to test these
options. I am working on changes to dynamically enable or disable these
options. To support this, the default option value should be set to
null and not true. So we can detect whether the user specified the
option value or the default value is used.

@Shane-XB-Qian
Copy link
Contributor Author
Shane-XB-Qian commented Aug 2, 2023 via email

@Shane-XB-Qian
Copy link
Contributor Author

r.i.p bram.

@Andilutten
Copy link

I can confirm the fact that omnicomplekion is broken for me in master branch (#380), this branch works like a charm tho.

@Shane-XB-Qian Shane-XB-Qian force-pushed the fix_omnicompl_default_enable branch from 021764b to 7737dc1 Compare September 19, 2023 14:18
@Andilutten
Copy link

What is the status of this ?
I find it kind of frustrating n 8000 ot being able to make omnicompletion work :O

@yegappan
Copy link
Owner

What is the status of this ? I find it kind of frustrating not being able to make omnicompletion work :O

I will look into this over this weekend.

@Shane-XB-Qian
Copy link
Contributor Author
Shane-XB-Qian commented Dec 13, 2023

it actually didnot bother me, but how about just merging it? 😄
// your previous modification i felt perhaps was a bit too tricky,
// a.k.a making life easy, and your modification worked may on situation, but mine seems solid.

@TheDreadedAndy
Copy link
Contributor

I'm not convinced this patch is actually necessary. AFAIK, the current version is behaving as the documentation says:

  • If the server specifies omnicompl, that is used
  • If the global config does, that is used.
  • Otherwise, the value is !cfg.autoComplete

I struggled with issue #380 earlier tonight, and the actual problem (for both me and the OP of that issue) seems to be that LspAddServer was called before LspOptionSet, which prevents the value of cfg.omniComplete from being used (since LspAddServer is the function that inspects it).

@Shane-XB-Qian
Copy link
Contributor Author

this PR was to make it easy, tho not have to.
// and #475 (comment)

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

Successfully merging this pull request may close these issues.

4 participants

0