On Wed, 26 Jun 2024 13:25:09 +0200, Kirill A. Korinsky <kir...@korins.ky> wrote: > > Well, the problem is that IDEA doesn't support OpenBSD. Or at least it seems > so by examining the JNA sources [1]. Probably a Linux version can be ported > ... but after that we should rebuild IDEA from scratch. > > So fsNotifier depends on /proc [2] and seems to be very Linux specific. > > And frankly speaking I see that only fsNotifier and LinuxGlobalMenu can be > ported, everything else is MacOS or Windows specific. > > Footnotes: > [1] https://github.com/JetBrains/intellij-community/tree/master/native > > [2] > https://github.com/JetBrains/intellij-community/blob/master/native/fsNotifier/linux/inotify.c >
In the meantime I discovered https://github.com/0x467/fsnotifier The good news: it compiles on -current and works. The bad news: on the real life project it immediately hits the limit of number of open files and IDEA gives up. To really use it, someone probably needs to increase both openfiles in login.conf and kern.maxfiles. I'm not sure it's wise to add a prot with suggesting to put some large value in both login.conf and kern.maxfiles, and large here depends on the user's project and we can't simple say use 10K/20K or something like that. -- wbr, Kirill