Can't get any channel layout except stereo in, stereo out. JUCE linux, Reaper

Hi everyone, I’m new to JUCE, but I’m a relatively experienced C++ programmer.
I’m trying to create a VST3 spatial audio plugin that outputs ambisonics, so I need multiple output channels, but no matter what I’ve tried, I can’t get it to work.

I currently just return true from isChannelLayoutSupported method of my audio processor class.
I’ve tried passing different combinations of BusesLayouts() options to the AudioProcessor constructor. Although it is my understanding, that if isChannelLayoutSupported() always returns true, the plugin should accept any channel layout suggested by the host, and the initial BusesLayouts setup is irrelevant.
Anyways, all I ever get is 2 inputs 2 outputs in Reaper (Linux) (I am of course putting the plugin on a multichannel track). I’ve also tested using the AudioPluginHost, and there are no options available beyound stereo for inputs or outputs in the Audio I/O settings for my plugin.

At this point I really don’t know what to do next, as to my knowledge I am using the framework correctly. I am also using CMake, without Projucer, but this shouldn’t result in such weird behaviour, should it?..

Thanks in advance to anyone who tries to help me (and hopefully succeeds)

PS: I will happily provide more information and code samples, but this should be enough info to tell if I’m just incorrectly using the framework.

Have you set Reaper itself to have more channels on the track? (Press the IO button and there is the Track Channels dropdown menu.)

Yeah, I did

I have narrowed the problem down to the build system. Somehow, even after completely replacing the plugin code, including the ui, some old version is being installed. The ui shown in AudioPluginHost is indeed from the old version, although I deleted the vst manually from all install locations. This is possibly a juce CMake problem. I am doing a clean build now, and will update with more info.

In case, this might be useful to anyone, I gave up.
I think Conan cmake integration or something else in one of my cmakefiles was messing with JUCE’s cmake stuff, but after weird issues kept popping up, I just decided to use projucer to generate makefiles for my project. It’s an inelegant solution, considering I was going for a fully automated build, including dependency installation, but opposed to the previous one it works… For now i just have a script that calls make to build the plugin, and use a tool called bear to generate a compile_commands.json file for clangd to work correctly. This solution has been working flawlessely so far, although I had to add some include directories and linker flags in Projucer for my external libs.