Comments (2)
Can you try this?
diff --git a/lua/cmp_tabnine/source.lua b/lua/cmp_tabnine/source.lua
index 8317372..13923fc 100644
--- a/lua/cmp_tabnine/source.lua
+++ b/lua/cmp_tabnine/source.lua
@@ -150,10 +150,6 @@ function Source.complete(self, ctx, callback)
Source._do_complete(ctx)
end
-Source._on_err = function(_, _, _)
- table.remove(Source.ctx_list, 1)
-end
-
Source._on_exit = function(_, code)
-- restart..
if code == 143 then
@@ -167,7 +163,7 @@ Source._on_exit = function(_, code)
end
Source.ctx_list = {}
Source.job = fn.jobstart({bin, '--client=cmp.vim'}, {
- on_stderr = Source._on_stderr;
+ on_stderr = nil;
on_exit = Source._on_exit;
on_stdout = Source._on_stdout;
})
@@ -187,7 +183,10 @@ Source._on_stdout = function(_, data, _)
-- "user_message": [],
-- "docs": []
-- }
- -- dump(data)
+ -- check that we have a context.
+ if #Source.ctx_list == 0 then
+ return
+ end
local items = {}
local old_prefix = ""
local show_strength = conf:get('show_prediction_strength')
from cmp-tabnine.
@tzachar git apply
the patch failed to me so I had to do it manually, it seems the bug is fixed. I did some fresh install and no error shown up. Thank you!
from cmp-tabnine.
Related Issues (20)
- Stop tabnine with a command? HOT 1
- Integrate with official TabNine plugin HOT 1
- Overlapping completion sources HOT 2
- Failed to install tabnine from Git Bash HOT 2
- how to show tabnine status in lualine or other statusline HOT 6
- Auto-imports on Tabnine completions HOT 1
- Tabnine completion being very flaky after special characters (randomly not appearing) HOT 8
- Termux build HOT 1
- Latest TabNine binary doesnt have executable permissions HOT 2
- Tabnine sorting HOT 2
- Problem with multi-line completion preview not receiving all lines or cutting it off HOT 5
- entry.completion_item.data.detail always returns empty value HOT 2
- Cannot do the initial setup with Lazy.nvim HOT 1
- Lazy plugin manager HOT 5
- Tabnine completion items move to the right in nvim-cmp HOT 1
- Issue on startup HOT 2
- Lazynvim error HOT 2
- Insert value into documentation HOT 3
- contains byte that does not start any UTF-8 character HOT 4
- Error cmp-tabnine with Lazy.nvim HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmp-tabnine.