eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

JetBrains IDE-based workspace isn't started with the `.NET 5.0` sample #23225

Closed azatsarynnyy closed 2 weeks ago

azatsarynnyy commented 2 weeks ago

Is your task related to a problem? Please describe

When starting a new workspace from .NET 5.0 sample with a JetBrains IDE image

I get image

The problem is the link to the remote IDE server can't be acquired:

(node:54) UnhandledPromiseRejectionWarning: TypeError: (intermediate value).replaceAll is not a function
    at /idea-server/status-app/index.js:48:43

Describe the solution you'd like

It should be possible to start a JetBrains IDE-based workspace from the .NET 5.0 sample.

Most likely, it will fix the workspace start for other samples with the same problem.

Describe alternatives you've considered

No response

Additional context

No response

azatsarynnyy commented 2 weeks ago

Using the replaceAll JS function requires Node.js >= 15. .Net 5.0 sample is based on the image that contains Node.js 14. The problem is fixed by using replace with regexp