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

Aiken language server, couldn't create a connection to server. #3

Open
golddydev opened this issue Sep 20, 2023 · 7 comments
Open

Aiken language server, couldn't create a connection to server. #3

golddydev opened this issue Sep 20, 2023 · 7 comments

Comments

@golddydev
Copy link

Hello, everyone.
I am now creating smart contract on cardano using Aiken.
In my opinion, this aiken language is really suitable for creating smart contract.

Only one problem I face is this issue.

[Error - 15:22:46] Aiken Language Server client: couldn't create connection to server.
Launching server using command aiken failed. Error: spawn aiken ENOENT

Can anybody help me?

@rvcas
Copy link
Member

rvcas commented Sep 20, 2023

which operating system are you on?

@golddydev
Copy link
Author

I am on ubuntu 22.04

@rvcas
Copy link
Member

rvcas commented Sep 21, 2023

On Linux people have had issues with VSCode not having aiken in it's path

@golddydev
Copy link
Author

On Linux people have had issues with VSCode not having aiken in it's path

So you mean, it is not with aiken extension but the fault is with the linux vs code.
Right?
Then how to fix this?

@cauu
Copy link

cauu commented Apr 9, 2024

Is there any progress in this issue? I'm using a mac and encountered the same problem.

I think this is caused by reading $PATH from process.env in the extension.

I installed aiken in ~/.aiken/bin folder, but $PATH variables read by the extension was always "/usr/bin:/bin:/usr/sbin:/sbin", I can not mv aiken into these folders(mac's restrictions), and didn't find a way to modify $PATH variables for vscode progress.

@golddydev
Copy link
Author

Is there any progress in this issue? I'm using a mac and encountered the same problem.

I think this is caused by reading $PATH from process.env in the extension.

I installed aiken in ~/.aiken/bin folder, but $PATH variables read by the extension was always "/usr/bin:/bin:/usr/sbin:/sbin", I can not mv aiken into these folders(mac's restrictions), and didn't find a way to modify $PATH variables for vscode progress.

Well, you can open vscode using terminal.
In your project directory.

code .

This will fix the issue.
I think it is related to VScode.

@cauu
Copy link

cauu commented Apr 9, 2024

Is there any progress in this issue? I'm using a mac and encountered the same problem.
I think this is caused by reading $PATH from process.env in the extension.
I installed aiken in ~/.aiken/bin folder, but $PATH variables read by the extension was always "/usr/bin:/bin:/usr/sbin:/sbin", I can not mv aiken into these folders(mac's restrictions), and didn't find a way to modify $PATH variables for vscode progress.

Well, you can open vscode using terminal. In your project directory.

code .
This will fix the issue. I think it is related to VScode.

Thanks, it works!

It seems the environment variables are different between starting from cli and gui, I think a better solution would be allowing user manually setting path to aiken binary file in the extension's configuration @rvcas

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

No branches or pull requests

3 participants