Closed FameOverflow closed 1 hour ago
Related Issues and Documentation
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Reuninstall through msi doesn't work.It need to remove files yourself. I solved it by remove go/src and run go installation repair.
gopls version
gopls: The term 'gopls' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
go env
What did you do?
go install -v golang.org/x/tools/gopls@latest
What did you see happen?
gopls: failed to install gopls(golang.org/x/tools/gopls@latest): Error: Command failed: C:\Dev\Go\bin\go.exe install -v golang.org/x/tools/gopls@latest runtime
runtime
C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:53:2: mallocHeaderSize redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:71:2: other declaration of mallocHeaderSize C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:54:2: minSizeForMallocHeader redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:101:2: other declaration of minSizeForMallocHeader C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:60:6: heapBitsInSpan redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:112:6: other declaration of heapBitsInSpan C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:243:6: bulkBarrierPreWrite redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:418:6: other declaration of bulkBarrierPreWrite C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:316:6: bulkBarrierPreWriteSrcOnly redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:504:6: other declaration of bulkBarrierPreWriteSrcOnly C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:695:6: heapSetType redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:705:6: other declaration of heapSetType C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:704:6: getgcmask redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:1750:6: other declaration of getgcmask C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:798:6: userArenaHeapBitsSetType redeclared in this block C:\Dev\Go\src\runtime\arena.go:553:6: other declaration of userArenaHeapBitsSetType C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:891:6: typePointers redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:122:6: other declaration of typePointers C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:936:6: heapBitsSlice redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:587:6: other declaration of heapBitsSlice C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:936:6: too many errors
What did you expect to see?
go install complete
Editor and settings
No response
Logs
2024-09-20 08:38:17.371 [info] gopls: failed to install gopls(golang.org/x/tools/gopls@latest): Error: Command failed: C:\Dev\Go\bin\go.exe install -v golang.org/x/tools/gopls@latest runtime
runtime
C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:53:2: mallocHeaderSize redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:71:2: other declaration of mallocHeaderSize C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:54:2: minSizeForMallocHeader redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:101:2: other declaration of minSizeForMallocHeader C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:60:6: heapBitsInSpan redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:112:6: other declaration of heapBitsInSpan C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:243:6: bulkBarrierPreWrite redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:418:6: other declaration of bulkBarrierPreWrite C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:316:6: bulkBarrierPreWriteSrcOnly redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:504:6: other declaration of bulkBarrierPreWriteSrcOnly C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:695:6: heapSetType redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:705:6: other declaration of heapSetType C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:704:6: getgcmask redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:1750:6: other declaration of getgcmask C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:798:6: userArenaHeapBitsSetType redeclared in this block C:\Dev\Go\src\runtime\arena.go:553:6: other declaration of userArenaHeapBitsSetType C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:891:6: typePointers redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:122:6: other declaration of typePointers C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:936:6: heapBitsSlice redeclared in this block C:\Dev\Go\src\runtime\mbitmap.go:587:6: other declaration of heapBitsSlice C:\Dev\Go\src\runtime\mbitmap_noallocheaders.go:936:6: too many errors