Skip to content
This repository was archived by the owner on Mar 27, 2019. It is now read-only.
This repository was archived by the owner on Mar 27, 2019. It is now read-only.

Symbol search on joxeankoret/maltindex doesn't seem to work #25

Open

Activity

  1. keegancsmith commented on Jun 27, 2017

    @keegancsmith
    Member

    My guess is py2 syntax is throwing off the parser we use for symbols. If the implementation hasn't changed, I used the builtin parse which is very fast but will expect py3 syntax.

  2. akhleung commented on Jun 27, 2017

    @akhleung
    Contributor

    Yeah, we're still using the builtin parser for workspace symbols (global references too)

  3. beyang commented on Jun 29, 2017

    @beyang
    Author

    Can work around this somehow (like try the python 3 parser and then fall back to the python 2 parser)? How much of a pain would that be? I'm guessing there's a fair amount of Python 2 out there still both in OSS and private code.

  4. akhleung commented on Jun 29, 2017

    @akhleung
    Contributor

    If we fall back to a Python 2 parser, it probably can't be the stdlib parser since our langserver is in Python 3. We could fall back on a different parser though (which would be slower).

  5. sqs commented on Jun 29, 2017

    @sqs

    I've seen a technique where you shell out to a small python2 program and have it output a JSON serialization of the AST that it parsed using its stdlib parser.

  6. keegancsmith commented on Jun 30, 2017

    @keegancsmith
    Member

    That should work, as long as we make the program we shell out to take a list of things to parse. Otherwise the overhead of starting up python will dominate. We could go back to using a more relaxed parser like jedi does, but it is much slower. So I think using the subprocess approach would be worth it.

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

Metadata

Metadata

Assignees

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