Genio icon indicating copy to clipboard operation
Genio copied to clipboard

Cannot use with Haiku source code

Open bitigchi opened this issue 11 months ago • 5 comments

When I select the haiku source code folder, application hangs without restoration... It would be nice to be able to use it for Haiku development.

bitigchi avatar Mar 17 '24 17:03 bitigchi

Currently Genio loads a folder synchronously and the Haiku source may require some time. How much time passed before you gave up? There is a tentative branch to make this process asynchronous but we need more time to polish it, until then I'd recommend loading just a subfolder and run jam on it instead of the whole tree.

nexus6-haiku avatar Mar 17 '24 18:03 nexus6-haiku

Oh I see then. I waited about 5 minutes on a fairly capable i5 machine... But I can wait and still use Vim in the meantime. :)

bitigchi avatar Mar 17 '24 18:03 bitigchi

Also, is this with a released version or from current sources? There was an algorithmic issue with loading the 50K tags of haiku sources that would lead to a very long wait. Current main, even without the async folder loading patches, takes about half a minute to load haiku sources for me (from an SSD, surely an HDD would take quite longer).

lonemadmax avatar Mar 18 '24 19:03 lonemadmax

It's a release source. That's nice to hear, I can tolerate half-a-minute or a bit longer, as long as I know that I will not hang indefinitely like it currently does.

bitigchi avatar Mar 19 '24 11:03 bitigchi

The v2.1 release suffers a performance hit if "Show repository outline" is enabled. Switching it off could help.

jackburton79 avatar Mar 25 '24 12:03 jackburton79

It's a release source. That's nice to hear, I can tolerate half-a-minute or a bit longer, as long as I know that I will not hang indefinitely like it currently does.

Have you had the chance to test with a development build?

jackburton79 avatar Jun 01 '24 08:06 jackburton79

I don't have access to that particular machine at the moment, and won't have for another 8-9 months. Sorry!

bitigchi avatar Jun 01 '24 14:06 bitigchi

Development build works fine with haiku src for me, performance, wise, but has another issue with includes that resolve just fine during compile, but Genio complains they cannot be found... will check and open a separate issue if not known already.

grexe avatar Jun 13 '24 16:06 grexe

I think there are some include directories which are not visibile by default for clang, you need to tweak the clang settings. I could try in the next few days

jackburton79 avatar Jun 13 '24 16:06 jackburton79

Since Genio can now be used for haiku development, I'd close this issue

jackburton79 avatar Jun 13 '24 16:06 jackburton79

Development build works fine with haiku src for me, performance, wise, but has another issue with includes that resolve just fine during compile, but Genio complains they cannot be found... will check and open a separate issue if not known already.

You have to tell clangd to include additional directories. To do that, add a .clangd file in the root directory of haiku project. For example, I added a basic one to include private/app and private/interface folders:


CompileFlags:
  Add: [-I/boot/system/develop/headers/private/app, -I/boot/system/develop/headers/private/interface]

 

I vaguely recall some commit where they put this setting file in haiku repo, but obviously it's not like this.

jackburton79 avatar Jun 13 '24 20:06 jackburton79