caraya
caraya copied to clipboard
add support for Linux desktop
It would be great if Caraya could be fully functional on LabVIEW for Linux.
A first step would be to "simply" use Conditional Disable Structure to wrap whatever is not supported on Linux so that at least the Caraya stuff wouldn't appear as "broken" on Linux.
Hi Antoine,
This is a great idea! I don't think too many of us on the dev team are using desktop Linux.
Would you be willing to help out by identifying which specific pieces of code are broken on Linux?
-Jim
On Thu, Oct 21, 2021 at 1:25 AM Antoine Chalons @.***> wrote:
It would be great if Caraya could be fully functional on LabVIEW for Linux.
A first step would be to "simply" use Conditional Disable Structure to wrap whatever is not supported on Linux so that at least the Caraya stuff wouldn't appear as "broken" on Linux.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JKISoftware/Caraya/issues/146, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5D6DBFFEDESEZH2FZPSLUH654ZANCNFSM5GNM3BQQ .
Absolutely! If it's ok with you, I can fork the repo, do the fixes and create a pull request.
Yes, please!
If you're able to do that in LV 2013, that would be great :)
If that's not possible, then just taking inventory of where the fixes need to be done would be super helpful.
-Jim
On Thu, Oct 21, 2021 at 7:10 AM Antoine Chalons @.***> wrote:
Absolutely! If it's ok with you, I can fork the repo, do the fixes and create a pull request.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JKISoftware/Caraya/issues/146#issuecomment-948601613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5D6ASAPTJ3B3XEY3KW7DUIAGOBANCNFSM5GNM3BQQ .
Ha... I forgot about that. I only have 2017, 2019 and 2020. So I'll list keep a list.
Sure. Thank you!
So it was not too difficult to fix. But it might be specific to some LV versions, I only tested this on Ubuntu 20 with LabVIEW 2020-64bit. I had to fix 2 things :
-
~/vi.lib/addons/_JKI Toolkits/Caraya/classes/Basic Test Manager/Process.vi in this one I remove the Event Structure case that handle "double clic on the tree"
-
wrap all the "General Error Handler.vi" into a conditional disable structure, make default case no nothing and target=windows use the GEH vi why? because a subVI of GEH vi is broken due to the fact that on Linux the Event Structure handles "key down" events differently than on Windows (not sure about the details tough. Carefull here because in the OpenG dependencies of Caraya "some" VIs call the GEH vi (only List Directory Recursive I think).
Apparently in LabVIEW 2021 the GEH vi is not broken, at least that's what NI support told me. So now I'm wandering if the issue isn't specific to LabVIEW on Ubuntu which is not - yet - officially supported by NI
To wrap it up, I think you should assume that GEH works and do nothing about it and simply not try to handle the double clic event on the tree or any "key down?" event when on Linux.
@AntoineChalons thanks for the report. We could try to replace the double-click with a single click and add a way to monitor for it twice in rapid succession... It would be a shame if Linux users could not navigate to the failed assertion directly from the report.
Can you confirm that "Mouse Down" event is supported on your Linux distro? You mention "Key Down?", but I assume that "Key Down" is fine, right?
Great ideas Francois.
Also, for what it's worth, Linux is going to become ever more important of a platform for LabVIEW, since NI is putting a lot of work into Linux hardware drivers and system configuration tools.
Hi Antoine,
I have some questions:
Is the code broken (broken run arrow) on Linux?
Or, is there simply an error?
If it’s broken, maybe we could dynamically register from the double-click event and then only have to comment out the Register for Events node, which would presumably be broken on Linux too, instead of deleting the event case.
Jim
On Fri, Oct 22, 2021 at 2:55 AM Antoine Chalons @.***> wrote:
So it was not too difficult to fix. But it might be specific to some LV versions, I only tested this on Ubuntu 20 with LabVIEW 2020-64bit. I had to fix 2 things :
~/vi.lib/addons/_JKI Toolkits/Caraya/classes/Basic Test Manager/Process.vi in this one I remove the Event Structure case that handle "double clic on the tree" 2.
wrap all the "General Error Handler.vi" into a conditional disable structure, make default case no nothing and target=windows use the GEH vi why? because a subVI of GEH vi is broken due to the fact that on Linux the Event Structure handles "key down" events differently than on Windows (not sure about the details tough. Carefull here because in the OpenG dependencies of Caraya "some" VIs call the GEH vi (only List Directory Recursive I think).
Apparently in LabVIEW 2021 the GEH vi is not broken, at least that's what NI support told me. So now I'm wandering if the issue isn't specific to LabVIEW on Ubuntu which is not - yet - officially supported by NI
To wrap it up, I think you should assume that GEH works and do nothing about it and simply not try to handle the double clic event on the tree or any "key down?" event when on Linux.
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/JKISoftware/Caraya/issues/146#issuecomment-949422639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC5D6CLKDDCKWPAX7FNA5DUIERILANCNFSM5GNM3BQQ .
-- Jim Sent from my mobile.
@francois-normandin @jimkring
- GEH issue : The issue seems to be linked to my Linux distro (ubuntu 20), I have an open SRQ with NI to investigate this.
- event struct issue : François's suggestion sounds good, but due to my distro issue, I'm even wandering if this is not broken "only for me" I'll try to get a clean Linux VM + LabVIEW from NI.
@AntoineChalons Thanks. We'll wait for your confirmation.
So... I got an OpenSuse Leap 15.1 VM with LabVIEW 2020-64-bit directly from NI Tech support, and there everything works. The GEH, the event stricture catches "Key Down?" and "Double clic" events on listboxes and trees. So the issue is not in Caraya or in LabVIEW, but in my own VM. I'm now trying to install VIPM 2017 on this VM to check if Caraya works out of the box.
Quick update : working hard with a colleague to build an Ubuntu VM with LabVIEW 2020 SP1 and VIPM 2017 and Caraya without all the issues described above.