GithubHelp home page GithubHelp logo

Comments (6)

Shougo avatar Shougo commented on June 30, 2024

I have update jedi to the latest.
#255

Please use the latest deoplete-jedi.
I think it is fixed on the latest.

from deoplete-jedi.

lriuui0x0 avatar lriuui0x0 commented on June 30, 2024

@Shougo Unfortunately the problem persists after I updated it to the latest.

from deoplete-jedi.

Shougo avatar Shougo commented on June 30, 2024

OK. I get it.

But please provide the real minimal vimrc.

It is the real minimal vimrc.

set rtp+=~/work/deoplete.nvim/
set rtp+=~/src/deoplete-jedi

let g:deoplete#enable_at_startup = 1
let g:deoplete#sources#jedi#show_docstring = 1

call deoplete#custom#option('auto_complete_popup', 'manual')
call deoplete#custom#option('min_pattern_length', 0)

from deoplete-jedi.

Shougo avatar Shougo commented on June 30, 2024

This is jedi's issue.
Please create the new issue in jedi issues.
https://github.com/davidhalter/jedi/issues

And I have found the reason.
The patch fixes the problem for me.

diff --git a/jedi/api/completion.py b/jedi/api/completion.py
index f8853cdf..c8a2d0c4 100644
--- a/jedi/api/completion.py
+++ b/jedi/api/completion.py
@@ -534,6 +534,8 @@ def _extract_string_while_in_string(leaf, position):
         if leaf.line == position[0]:
             kwargs['endpos'] = position[1] - leaf.column
         match = _string_start.match(leaf.value, **kwargs)
+        if not match:
+            return None, None, None
         start = match.group(0)
         if leaf.line == position[0] and position[1] < leaf.column + match.end():
             return None, None, None

from deoplete-jedi.

davidhalter avatar davidhalter commented on June 30, 2024

Reproduction:

>>> import jedi
>>> jedi.Script("'a' 'b'").complete(column=4)

from deoplete-jedi.

Shougo avatar Shougo commented on June 30, 2024

Fixed in the latest version.

from deoplete-jedi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.