php-perfect / ddev-intellij-plugin

DDEV Tool Integration for IntelliJ IDEA
https://plugins.jetbrains.com/plugin/18813-ddev-integration
BSD 3-Clause "New" or "Revised" License
110 stars 15 forks source link

Set up NodeJS Remote Interpreter automatically #353

Closed mikesnoeren closed 2 months ago

mikesnoeren commented 2 months ago

Is there an existing issue for this?

Are you sure that this bug is related to this DDEV Integration Plugin?

Enter your error report ID (If available)

No response

Describe the bug

After reading through an issue I have opened a while ago, this should already work, but it currently doesn't, or am I misunderstanding how it should work?

With PHPStorm now natively supporting coding assistance for remote node interpreters, it would be great if this could be looked into again. It would be ideal if opening a ddev project in phpstorm would automatically set up the Node.js remove interpreter like below: image

Steps to reproduce

No response

Additional context

No response

nico-loeber commented 2 months ago

The remote interpreter should be set correctly. I will take a look into this, thanks for reporting!

AkibaAT commented 2 months ago

One issue I see when trying it myself is that the plugin sets /usr/bin/node, which is incorrect on the current ddev version. It should be /usr/local/bin/node to be explicit, or just node to use the PATH

The rest seems to be getting set up correctly.

nico-loeber commented 2 months ago

Looks like coding assistance is still not available for remote interpreters. But after merging @AkibaAT pr #358 the node and npm versions are detected correctly by the IDE. So everything looks fine to me.

image