Raptor Computing Systems Community Forums (BETA)

Software => Applications and Porting => Topic started by: Woof on December 12, 2021, 08:10:37 am

Title: Clion, VSCode, IDE options?
Post by: Woof on December 12, 2021, 08:10:37 am
Hi! My first post... I'm waiting for my Talos II to arrive and have a question regarding IDE options. Having been spoiled with the choice of IDEs on x64 what will my options be on Power? Hopefully I'm not going to be stuck with gcc, gdb and a text editor? The answer to that shouldn't be clang and lldb...

Eclipse looks to prebuilt for IBM's Advance Toolchain, so I'm assuming I can get that running? Any other good choices?
Title: Re: Clion, VSCode, IDE options?
Post by: MPC7500 on December 12, 2021, 11:35:54 am
VSCode, Code Blocks and Eclipse are available, depending on the distribution. Netbeans I dunno.
Title: Re: Clion, VSCode, IDE options?
Post by: Woof on December 12, 2021, 01:54:04 pm
VSCode with native compiler integration, step debugging, etc.?
Title: Re: Clion, VSCode, IDE options?
Post by: MPC7500 on December 12, 2021, 05:45:59 pm
I never used any of these. I only saw it in the repo. But I hardly guess.
Title: Re: Clion, VSCode, IDE options?
Post by: ClassicHasClass on December 13, 2021, 06:29:37 pm
Eclipse and IntelliJ work fine. Haven't tried VSCode.
Title: Re: Clion, VSCode, IDE options?
Post by: mparnaudeau on September 14, 2022, 05:09:44 am
It was expected as ClassicHasClass reported that IntelliJ was working fine but I confirm it's the same with CLion, my preferred IDE  :D

About VSCode, I see there (https://github.com/microsoft/vscode-remote-release/issues/401) that the support of Linux ppc64le was requested without success.

There is a project fork with support of ppc64el (https://github.com/leo-lb/vscode) but changes were made in 2019 on VSCode 1.41.1. I tried to build but that stops on an error about Python2 syntax  :-\
Title: Re: Clion, VSCode, IDE options?
Post by: MPC7500 on September 14, 2022, 07:44:24 am
VScode is up-to-date on Void and works
https://github.com/void-ppc/void-packages/tree/master/srcpkgs/vscode
Title: Re: Clion, VSCode, IDE options?
Post by: Woof on September 26, 2022, 09:33:42 am
Resurrecting this...

I've been using Eclipse CDT for a while now and it's a little clunky. Importing a CMake project works fine-ish (backed by a Makefile), it builds but is full of erroneous errors, though the debugger works as expected so that's good. Trying to get a CMake/Ninja project to work, to have a multi-core build, has the same 100s of errors to ignore but won't let me debug. In general it's usable of sorts, and has good SVN and Git integration, but I'd really like something better.

mparnaudeau mentioned CLion, which I'd be very interested in using, but last I read it was missing the debugger adapter or some other closed-source component? Do you have more info on this?

MPC7500 mentions VSCode on Void being up-to-date, but I settled on running Debian so I'm not able to try this.

As for other options, I tried Kate with CMake and it wasn't a good experience. It builds and lets me set breakpoints, but then inspecting variables seems to only work via gdb.
Title: Re: Clion, VSCode, IDE options?
Post by: Hasturtium on September 26, 2022, 09:16:24 pm
VScode is up-to-date on Void and works
https://github.com/void-ppc/void-packages/tree/master/srcpkgs/vscode

Yep, seconding this - works fine for Python, C, and C++. Only wrinkle was that I needed to enable 2D canvas rendering, otherwise the integrated terminal didn't properly render text. I do hope VSCode continues to be supported with the switch to Chimera.
Title: Re: Clion, VSCode, IDE options?
Post by: Woof on September 27, 2022, 10:53:19 am
I took another look at CLion and followed the (brief) instructions for getting it running on non-supported CPUs. It's kinda lengthy to get it all going (it needs the JetBrains JDK building, which needs boostrapping with JDK19, which itself needs bootstrapping with JDK18... which needs bootstrapping with JDK17, which at least is available in Debian's repo).

The only thing I've found not to work is the clangd integration (which needs JetBrain's own) but everything else works great. It's a Java IDE but I guess I have to do something with my CPUs...

I didn't try VSCode, so I don't know how much work it is to getting running on Debian.

But to answer myself or anyone else wondering which native IDEs work on Power9 with Debian: Eclipse CDT and CLion, and so far I'm quite happy with CLion.