I have WSL 2 installed; I built Cling from scratch in WSL on Windows and I can execute the cling binary in a WSL console without error; I have cling in the ~/.bashrc PATH so it can be executed in the WSL console via, simply, cling; it can also be executed via the absolute path.
However, it is not possible to get the C++ settings to work for the Execute Code plugin.
Enable WSL option (and I also tried with this option disabled trying both paths below)
Paste absolute path in Windows to cling (as in E:\path\to\cling)
or
Past absolute path in WSL to cling (as in /mnt/e/path/to/cling)
...and there is always an ENOENT error when attempting to run the code block.
Note: Python running in WSL (enabling the WSL setting and simply having 'python3' as the path to Python in the Execute Code settings for Python) succeeds, so WSL is being accessed.
It's just that C++ does not work, unfortunately. Alas! Took me two days to get Cling finally building in WSL hoping it would work with Execute Code - so just creating this issue so perhaps others will think twice before embarking on this route.
I have WSL 2 installed; I built Cling from scratch in WSL on Windows and I can execute the
cling
binary in a WSL console without error; I havecling
in the ~/.bashrc PATH so it can be executed in the WSL console via, simply,cling
; it can also be executed via the absolute path.However, it is not possible to get the C++ settings to work for the Execute Code plugin.
Enable WSL option (and I also tried with this option disabled trying both paths below)
Paste absolute path in Windows to cling (as in E:\path\to\cling) or
Past absolute path in WSL to cling (as in /mnt/e/path/to/cling)
...and there is always an ENOENT error when attempting to run the code block.
Note: Python running in WSL (enabling the WSL setting and simply having 'python3' as the path to Python in the Execute Code settings for Python) succeeds, so WSL is being accessed.
It's just that C++ does not work, unfortunately. Alas! Took me two days to get Cling finally building in WSL hoping it would work with Execute Code - so just creating this issue so perhaps others will think twice before embarking on this route.
Thanks!