hide-org / hide

🤖 Headless IDE for AI agents
https://hide.sh
MIT License
116 stars 5 forks source link

search_symbols fails with None is not iterable #115

Open wistuba opened 4 days ago

wistuba commented 4 days ago

Hello! First of all, great work you are doing, I really love it!

I've tried your new search_symbols feature and it seems to work in general, but apparently not in all cases and it is not clear why.

The content of the response is None such that json() returns None which is not iterable so it fails: https://github.com/hide-org/hide-sdk/blob/main/hide/client/hide_client.py#L197

https://github.com/django/django/ is one repository where I see that it fails. I assume this is related to some problem with the LSP. I see that warning, but it probably is not my setup. Other Python repositories work fine for me. Any idea what might cause this?

artmoskvin commented 4 days ago

hey! thanks for reporting. i think the problem here is us not handling empty lsp responses properly.

i assume that for symbol search when nothing is found lsp returns None and we simply forward it as an API response.

i will try to reproduce this bug and get back to you. what query did you use?

wistuba commented 3 days ago

That does not seem to be the case. In the other cases, it comes back to me even in these cases. Example queries: "test", "__init__".