Skip to content

Tab completion segfault #10899

Closed
Closed

Description

@simonbyrne

I keep seeing segfaults when trying to do tab-completion with pyjulia in IPython on OS X, see JuliaPy/pyjulia#132

Interestingly I don't see the problem with normal python3 tab-completion, which makes me wonder if it is an IPython issue? Is there any information I can give that would be useful?

Activity

  1. takluyver commented on Nov 15, 2017

    @takluyver
    Member

    I would guess this is a consequence of the completions being calculated in a separate thread. Apparently prompt_toolkit 2.0 is going to have an option to do completions in the main thread, which I think we'll use.

    In the meantime, using jupyter_console might be a workaround - that talks to a kernel process, which runs completions in its main thread.

  2. simonbyrne commented on Nov 15, 2017

    @simonbyrne
    Author

    Is there anything we can do on the pyjulia end to fix this, even if temporarily?

  3. takluyver commented on Nov 15, 2017

    @takluyver
    Member

    If it's possible to make any kind of protection for tab completion running in a separate thread from the main interpreter, that would probably help. I don't know if that's something pyjulia can do, though.

  4. tkf commented on Jul 31, 2018

    @tkf
    Contributor

    I think you can close it now that you have #11177 in master. I just tried it and it worked perfectly. JuliaPy/pyjulia#132 (comment) Thanks a lot!

    image

  5. tkf commented on Oct 24, 2018

    @tkf
    Contributor

    @meeseeksdev close

    (Just interested in trying it out 😃 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions