vls icon indicating copy to clipboard operation
vls copied to clipboard

Does not install on macOS M2(?)

Open danawoodman opened this issue 2 years ago • 6 comments

System Information

V doctor

OS: macos, macOS, 12.5.1, 21G83
Processor: 8 cpus, 64bit, little endian, Apple M2
CC version: Apple clang version 13.0.0 (clang-1300.0.29.30)

getwd: /Users/danawoodman/v
vmodules: /Users/danawoodman/.vmodules
vroot: /Users/danawoodman/v
vexe: /Users/danawoodman/v/v
vexe mtime: 2022-08-30 01:28:32
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.0 e355ae7

Git version: git version 2.32.0 (Apple Git-132)
Git vroot status: weekly.2022.34-48-ge355ae7b
.git/config present: true
thirdparty/tcc status: thirdparty-macos-amd64 46662e20

VLS info

n/a

Problem Description

Running v ls --install as stated in the docs fails using the latest version of V with:

$: v ls --install
cannot compile `/Users/danawoodman/v/cmd/tools/vls.v`: 
builder error: Your V installation may be out-of-date. Try removing `thirdparty/tcc/` and running `make`

$: v -v
V 0.3.0 a689641

I've followed the instructions but it still fails.

I've installed V by cloning the git repo and running make as instructed in V's readme

Expected Output

It to install VLS

Actual Output

See above

Steps to Reproduce

See above

Last Recorded LSP Requests

danawoodman avatar Aug 30 '22 01:08 danawoodman

Thanks for the report, we're looking into it.

medvednikov avatar Aug 30 '22 07:08 medvednikov

Thanks!

danawoodman avatar Aug 30 '22 19:08 danawoodman

Getting the same error on an M1 Pro mac.

SilverTab avatar Sep 17 '22 13:09 SilverTab

You have a rather old version of V. Try v up to get the latest, then try again.

Current version is V 0.3.1 085a09e.

JalonSolov avatar Sep 17 '22 15:09 JalonSolov

I tried on the latest one, same result:

% v --version
V 0.3.1 afe7166

% v ls --install           
cannot compile `/Users/jeannicolas/Downloads/v/cmd/tools/vls.v`: 
builder error: Your V installation may be out-of-date. Try removing `thirdparty/tcc/` and running `make`

SilverTab avatar Sep 17 '22 18:09 SilverTab

Looks like this was due to my system having 2 versions of OpenSSL installed (one via homebrew, and a system one) and V was compiled using the wrong one. Following the instructions at the end of this issue, I was able to fix it: https://github.com/vlang/v/issues/14888

However, now I'm back to where I was on my intel mac, which is that the language server is installed, and runs fine from Terminal, but it just doesn't work at all from VS Code... if I set the mode to stdio, it starts, but it's never able to complete anything image

If I set it to tcp, it fails to boot, with the following error: [Error - 9:01:24 AM] Connection to server is erroring. Shutting down server.

SilverTab avatar Sep 18 '22 13:09 SilverTab

Try https://blog.vosca.dev/meet-v-analyzer/ instead, now that it is released.

JalonSolov avatar Jul 03 '23 16:07 JalonSolov