Re: [Builder] Function and class fuzzy search for Python source code?




Hello Christian and thanks for your quick feedback!

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, May 24, 2019 1:48 AM, Christian Hergert <christian hergert me> wrote:

On 05/23/2019 02:04 AM, Pierre Equoy via builder-list wrote:

Could that be the reason why function/class fuzzy search doesn't work
with Python source code? If so, what would be a good first step to
take in order to implement this?

We need a python plugin that can implement the IdeCodeIndexer interface.

If someone can come up with a script that can run across a code-base and
spit out a bunch of symbol names and locations, it would be pretty easy
to integrate and get that working.

If you can do that, I'd be happy to handle the Builder side of things :)

Yes, I should be able to do this. Actually, I've already something functional that can return a list of 
functions and classes from python files in a given directory (along with their line number and in what file 
they are located), but I need to know what data structure is needed exactly.

As I said, I currently search for:

  - functions
  - classes

And I can return:

  - function or class name
  - path to the file they are located in
  - line in that file where they are located

Is that enough?

Actually, maybe all of my questions could be answered with: is there a documentation for that IdeCodeIndexer 
interface? :)

Cheers and happy Friday!

--
Pierre

Sent with ProtonMail Secure Email.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]