Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Starting client failed #52

Closed
HunterZ opened this issue Nov 26, 2021 · 6 comments
Closed

Windows: Starting client failed #52

HunterZ opened this issue Nov 26, 2021 · 6 comments

Comments

@HunterZ
Copy link

HunterZ commented Nov 26, 2021

Getting the following error on Windows 10:

[Error - 11:06:52 AM] Starting client failed
Launching server using command C:\ProgramData\Red failed.

It's completely ignoring my red.redPath setting. I've tried the following values:

"red.redPath": "C:\\ProgramData\\chocolatey\\lib\\red\\tools\\red.exe"
"red.redPath": "C:\\ProgramData\\chocolatey\\lib\\red\\tools\\red.exe --cli"
"red.redPath": "C:\\ProgramData\\chocolatey\\lib\\red\\tools\\red.exe --CLI"

It's almost like it's looking in a hard-coded path and ignoring the red.redPath setting.

Also, red.exe is in my system PATH, so why do I even need to tell VSCode where to find it?

@qtxie
Copy link
Collaborator

qtxie commented Nov 27, 2021

Also, red.exe is in my system PATH, so why do I even need to tell VSCode where to find it?

It cannot work properly in system PATH. red/red#543

@qtxie
Copy link
Collaborator

qtxie commented Nov 27, 2021

I think this setting (red.redPath) is outdated in the latest plugin. Document needs to be updated. Please try the following command:

  1. open the CMD on Windows.
  2. run > red.exe --cli in the CMD to generate the CLI console.
  3. restart the VSCode.

@HunterZ
Copy link
Author

HunterZ commented Nov 28, 2021

No, that just results in a different failure mode:

[Info  - 5:51:59 PM] Connection to server got closed. Server will restart.
[Info  - 5:52:00 PM] Connection to server got closed. Server will restart.
[Info  - 5:52:00 PM] Connection to server got closed. Server will restart.
[Info  - 5:52:01 PM] Connection to server got closed. Server will restart.
[Error - 5:52:02 PM] Connection to server got closed. Server will not be restarted.

Accompanying popup:

The Red Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.

@qtxie
Copy link
Collaborator

qtxie commented Nov 28, 2021

@HunterZ Did you use the automated builds version of Red? 0.6.4 is way too outdated.

@HunterZ
Copy link
Author

HunterZ commented Dec 1, 2021

I used chocolatey to install, as mentioned on the official download page.

I didn't understand the comment on the extension about needing a newer build, so that's probably the problem. What a mess; I guess I'll check back later, as I'm not up for messing with manually installing cutting edge builds of things at the moment.

@HunterZ HunterZ closed this as completed Dec 1, 2021
@qtxie
Copy link
Collaborator

qtxie commented Dec 1, 2021

You don't need to install Red. Just download it and use it directly. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants