redhat-developer / vscode-server-connector

📦 Connects Visual Studio Code to your server adapters and run, deploy apps !!
Eclipse Public License 2.0
56 stars 26 forks source link

Unable to create the server: Extension backend error - there are no rsp providers to choose from. #532

Closed DuLima closed 1 year ago

DuLima commented 2 years ago

I don't know if you can help me or not. I get this error when I try to create a server.

zhang-guanghao commented 2 years ago

How to fix it?

lstocchi commented 2 years ago

Hi guys, what are you doing exactly? Which is your OS? Vscode/plugin version? Do you see something like the image below? Did you start the rsp connector (right click on a node and click on `Start/ Connect to RSP Provider)? Without any info it's hard to guess the problem. Thanks image

robstryker commented 2 years ago

If you guys could share details like @lstocchi asked, including java version, that'd be very helpful.

rainydayinjune commented 2 years ago

I got same error with you.

java version "11.0.15" 2022-04-19 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.15+8-LTS-149) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.15+8-LTS-149, mixed mode)

Speykious commented 1 year ago

Hi guys, what are you doing exactly? Which is your OS? Vscode/plugin version? Do you see something like the image below? Did you start the rsp connector (right click on a node and click on `Start/ Connect to RSP Provider)? Without any info it's hard to guess the problem. Thanks image

I had this exact issue, but clicking on Community Server Connector to stop it and restart it somehow worked.

ila-embsys commented 1 year ago

I have looked to the developer tools and noticed the the extension show an error related to the JAVA_HOME variable. Since it was set correctly I have looked through the extension source code and found that the extension wants to find 'javac' binary. So I have resolved the issue by installing java developer package. E.g. java-11-openjdk-devel.

robstryker commented 1 year ago

Hrmm. I'm going to leave this issue open for a bit so I can think how to get better error messaging here.

robstryker commented 1 year ago

https://github.com/redhat-developer/vscode-rsp-ui/commit/53b4ed03577b33b128eeb021bc6187166fd47b1e

https://github.com/redhat-developer/vscode-server-connector/commit/7d5a48356b4029161cee99b93de4b410b0416763

https://github.com/redhat-developer/rsp-server-community/commit/8b2b29632b4397a7001c94365fd83a9d2722b232

Three commits to make the error message more clear about what's missing.