Coder Social home page Coder Social logo

Comments (8)

nic-hartley avatar nic-hartley commented on September 17, 2024 1

A couple thoughts:

  • This occurs on all but f strings, not just """s. It's just most irritating on """, where 100% of the time I'm trying to write a docstring, usage message, template, or other long-form, multiline thing, so I immediately hit enter, and then oops, instead of a newline I get .git/.
  • Why is this the default behavior which should only be turned off in limited contexts/by user decision? Even just off the top of my head I can come up with an enormous list of situations where I don't want the behavior, and maybe one where I do want it. Seems like it should be implemented as off by default, enabled only in the situations where it makes sense, maybe with a user option to complete like that on all strings.

from jedi-language-server.

pappasam avatar pappasam commented on September 17, 2024

Have you confirmed that these completions are coming from jedi-language-server? I don't think jedi returns these completions

from jedi-language-server.

greggthomason avatar greggthomason commented on September 17, 2024

The BBEdit lead dev confirmed to me that it does not generate any completions in docstrings, and does not do completions from the disk in general (only from something like ctags, which I am not using).

from jedi-language-server.

greggthomason avatar greggthomason commented on September 17, 2024

To clarify slightly: If I disable the jedi server integration and cold-start and open a new buffer, typing """ and pausing does not do anything. If I then re-enable the server, restart, and on a new buffer to """ the immediate completion is the contents of the directory of the file I opened. No completion (of the type I am seeing) is generated until the file is saved, though. Therefore it is reasonable to assume it is the Jedi server, since the editor does not generate the completion unless server integration is active.

from jedi-language-server.

davidhalter avatar davidhalter commented on September 17, 2024

I'm pretty sure this is coming from Jedi. I understand that it's questionable, but the question is where do you want file completions and where not? I feel like this just depends a lot on the users. I understand that in triple quotes especially in a docstring position these are not very useful.

from jedi-language-server.

greggthomason avatar greggthomason commented on September 17, 2024

yeah I feel like automatically showing ls $PWD is a weird choice after a triple-quote. I would expect plain ol' symbol completion, and the editor should chose eg to complete strings (or do nothing).

from jedi-language-server.

pappasam avatar pappasam commented on September 17, 2024

I see... based on david's input, here are the options I can see:

  1. If we can identify the context being a docstring somehow, we can disable path completions specifically for that context.
  2. If not, we can add an option to disable all path completions.
  3. Finally, regardless of 1 and 2, if this is just mildly annoying, we can simply ignore and hope for an upstream resolution.

from jedi-language-server.

greggthomason avatar greggthomason commented on September 17, 2024

I would be more than happy with #2.

from jedi-language-server.

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.