vls icon indicating copy to clipboard operation
vls copied to clipboard

failed to build from source

Open tzSharing opened this issue 3 years ago • 0 comments

System Information

V doctor

OS: windows, Microsoft Windows 10 רҵ v19044 64 λ
Processor: 4 cpus, 64bit, little endian, AMD Athlon(tm) X4 760K Quad Core Processor
CC version: Error: exec failed (CreateProcess) with code 2: 系统找不到指定的文件。
 cmd: cc --version

getwd: C:\Users\TZ\.vmodules\vls
vmodules: C:\Users\TZ\.vmodules
vroot: D:\v
vexe: D:\v\v.exe
vexe mtime: 2022-09-27 08:26:44
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.1 001144f.51a92d1

Git version: git version 2.36.0.windows.1
Git vroot status: weekly.2022.03-1838-g51a92d17
.git/config present: true
thirdparty/tcc status: thirdparty-windows-amd64 hint: core.useBuiltinFSMonitor will be deprecated soon; use core.fsmonitor instead

VLS info

latest pulls

Problem Description

C:\Users\TZ>v -v
V 0.3.1 51a92d1

C:\Users\TZ>cd C:\Users\TZ\.vmodules\vls

C:\Users\TZ\.vmodules\vls>v run build.vsh gcc
> Building VLS...
v -g -gc boehm -d use_libbacktrace -cc gcc cmd/vls -o C:\Users\TZ\.vmodules\vls\bin\vls.exe
lsp/log/log.v:9:12: error: cannot register struct `vls.lsp.log.LogRecorder`, another type with this name exists
    7 | import strings
    8 |
    9 | pub struct LogRecorder {
      |            ~~~~~~~~~~~
   10 | mut:
   11 |     file           os.File
Failed building VLS

C:\Users\TZ\.vmodules\vls>

tzSharing avatar Sep 27 '22 08:09 tzSharing