cap-js / cds-intellij

SAP CDS Language Support for IntelliJ
https://cap.cloud.sap/docs/cds/
Apache License 2.0
12 stars 1 forks source link

[FEATURE] Detect Node.js installation from WSL #39

Open beckermarc opened 3 months ago

beckermarc commented 3 months ago

Description

I am using Windows and develop / run my projects in WSL. I also have Node.js installed in WSL and it is present in my user's path there. Unfortunately the CDS plugin doesn't detect Node.js in this scenario from my WSL distribution. As I don't have Node.js installed on my Windows machine directly I get an error from the plugin, that it can't find Node.js

Suggested Solution

I'd expect the Node.js installation from WSL to be found and used.

Alternatives

No response

Additional Context

No response

tim-sh commented 2 months ago

Hi @beckermarc, is your IDE installed in WSL or in Windows itself? Would you be able to influence the PATH the IDE is started with?

beckermarc commented 2 months ago

The IDE is installed in Windows itself. It internally connects to WSL (terminal, build, etc. is run there). I don't think I can reasonably adjust the PATH to point to a unix-based binary installed in WSL.

tim-sh commented 2 months ago

We now have a backlog item for automatic/manual selection of the local Node installation instead of having to set the PATH.