Setting up devel IDE on Debian

Hi there,

trying to understand how I can set up an IDE environment to build SC, e.g. https://github.com/supercollider/supercollider/wiki/Setting-up-your-development-environment

First question is on Clang. So I’m on Debian stable, which comes with a Clang 7 package. Now if I look at https://apt.llvm.org/ , there are packages for Clang 10, 11, 12. Is there a problem going for anything more recent than the v8.0.1 that is described in https://github.com/supercollider/supercollider/wiki/Cpp-formatting-instructions#requirements ?

Next question would be Cmake integration. Anyone knows if this works “out of the box” with Codium? I could also try the free version of Clion perhaps? Would prefer not to go to plain editor like vim, but have proper build integration.

Thx

A setup that’s more manual than CLion, but easier/more feature-rich than vim would be to use Visual Studio Code. With the right extensions (the cmake extension, for starters…), this should handle cmake projects properly with only a little setup, and project search and indexing works as good or better than CLion.

And since you’re in a setup headspace, you might consider installing ninja and using this for builds (requires adding the -GNinja flag to your cmake command). It makes incremental building a lot more pleasant. This setup integrates well with VSCode.

1 Like

Ok, exciting, I installed the CMake Tools extension in Codium. This then brings up cmake detection. I try ‘Build [all]’ via Clang 9 as the ‘kit’, but apparently something is missing:

[cmake] Compiling with Ableton Link support
[cmake] CMake Error at lang/CMakeLists.txt:258 (include):
[cmake]   include could not find load file:
[cmake] 
[cmake]     ../external_libraries/link/AbletonLinkConfig.cmake
[cmake] 
[cmake] 

How would I deactivate that in Codium? Or can I install that thing?


Ok, there is an editor:

After removing Ableton, I get

[cms-driver] Error during CMake configure: 
	Error: Configuration failed.
	at CMakeServerClient._onMessage (/home/hhrutz/.vscode-oss/extensions/ms-vscode.cmake-tools-1.5.3/dist/main.js:22653:33)
	at CMakeServerClient._onMoreData (/home/hhrutz/.vscode-oss/extensions/ms-vscode.cmake-tools-1.5.3/dist/main.js:22626:18)
	at Socket.emit (events.js:223:5)
	at addChunk (_stream_readable.js:309:12)
	at readableAddChunk (_stream_readable.js:290:11)
	at Socket.Readable.push (_stream_readable.js:224:10)
	at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

which doesn’t look good. Is the extension bad?

I think I’m not understanding the ‘CMake Cache Editor’. It resets the ableton thing when I run ‘Configure all projects’. So there must be a different way to set cmake options?

Nevermind the ableton thing ; I had to do git reset --hard; git submodule update --init --recursive ; seems update alone is not enough.