[go-nuts] Need Help: gopls and VSCode Setup with the Go Project - Nested Module Error

2023-04-17 Thread arthurwil...@gmail.com
Hey Golang-Nuts folks, So I cloned the Go project from GitHub (github.com/golang/go) and tried to open it in Visual Studio Code with the Go extension. But I'm running into some pesky errors from gopls, and it's messing with the module detection. When I open the root of the repo, I get this erro

Re: [go-nuts] build unoptimized std lib for debugging

2022-04-04 Thread arthurwil...@gmail.com
On Monday, April 4, 2022 at 7:00:49 PM UTC-5 arthurwil...@gmail.com wrote: > On Monday, April 4, 2022 at 6:14:30 PM UTC-5 Ian Lance Taylor wrote: > >> On Mon, Apr 4, 2022 at 3:49 PM arthurwil...@gmail.com >> wrote: >> > >> > >> > >>

Re: [go-nuts] build unoptimized std lib for debugging

2022-04-04 Thread arthurwil...@gmail.com
On Monday, April 4, 2022 at 6:14:30 PM UTC-5 Ian Lance Taylor wrote: > On Mon, Apr 4, 2022 at 3:49 PM arthurwil...@gmail.com > wrote: > > > > > > > > On Sunday, April 3, 2022 at 10:35:04 PM UTC-5 Ian Lance Taylor wrote: > >> > >> On Su

Re: [go-nuts] build unoptimized std lib for debugging

2022-04-04 Thread arthurwil...@gmail.com
On Sunday, April 3, 2022 at 10:35:04 PM UTC-5 Ian Lance Taylor wrote: > On Sun, Apr 3, 2022 at 6:21 PM arthurwil...@gmail.com > wrote: > > > > I'm trying to build an unoptimized version of the standard library for > debugging. > > You can just use

[go-nuts] build unoptimized std lib for debugging

2022-04-03 Thread arthurwil...@gmail.com
I'm trying to build an unoptimized version of the standard library for debugging. I tried using GO_GCFLAGS='-N -l' but dlv is telling me the code is optimized. This is what I did (Notice the "Warning debugging optimized function" coming from delve) /Volumes/git/goroot/src (master)$ git log --o

[go-nuts] src/errors/errors_test.go if err != err ?

2021-12-05 Thread arthurwil...@gmail.com
How is it possible for this test case to ever fail? // Same allocation should be equal to itself (not crash). err := errors.New("jkl") if err != err { t.Errorf(`err != err`) } https://cs.opensource.google/go/go/+/master:src/errors/errors_test.go;drc=519474451a44b861e54466998a893a173bd54c4b;l=24

[go-nuts] comment in test/ken/slicearray.go

2021-12-04 Thread arthurwil...@gmail.com
this should probably be updated to width 8: // width 4 (float64) https://cs.opensource.google/go/go/+/master:test/ken/slicearray.go;l=92#:~:text=91-,92,-93 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

[go-nuts] Re: compile time error vs runtime crash for same array

2021-11-25 Thread arthurwil...@gmail.com
ceed > > Why does the linker impose a 2GB limit on .bss data but not heap memory? Is there a limit on heap variables? > > On Saturday, November 13, 2021 at 5:46:29 PM UTC arthurwil...@gmail.com > wrote: > >> On a 64bit Mac, this code: >> >> package

[go-nuts] compile time error vs runtime crash for same array

2021-11-13 Thread arthurwil...@gmail.com
On a 64bit Mac, this code: package main var X [^uint(0)>>14]byte func main() { } produces a compile time error: main.X: symbol too large (1125899906842623 bytes > 20 bytes) But this compiles and crashes at runtime. package main func main() { var X [^uint(0) >> 14]byte _ = X } runtim

Re: [go-nuts] Re: go get v git clone

2021-03-13 Thread arthurwil...@gmail.com
On Saturday, March 13, 2021 at 8:44:44 AM UTC-6 Jan Mercl wrote: > On Sat, Mar 13, 2021 at 3:35 PM arthurwil...@gmail.com > wrote: > > > I just want to remove one thing go getted, not the entire cache. > > For new features one can fill a proposal. If accepted, a

Re: [go-nuts] Re: go get v git clone

2021-03-13 Thread arthurwil...@gmail.com
On Saturday, March 13, 2021 at 10:02:50 AM UTC-6 Jan Mercl wrote: > On Sat, Mar 13, 2021 at 4:57 PM arthurwil...@gmail.com > wrote: > > > OK I'll try and figure out how to do that. What is a CL? > > Change List. A patch against the repository that implements a f

Re: [go-nuts] Re: go get v git clone

2021-03-13 Thread arthurwil...@gmail.com
On Saturday, March 13, 2021 at 8:44:44 AM UTC-6 Jan Mercl wrote: > On Sat, Mar 13, 2021 at 3:35 PM arthurwil...@gmail.com > wrote: > > > I just want to remove one thing go getted, not the entire cache. > > For new features one can fill a proposal. If accepted, a

[go-nuts] Re: go get v git clone

2021-03-13 Thread arthurwil...@gmail.com
On Friday, March 12, 2021 at 11:13:44 PM UTC-6 Carla Pfaff wrote: > You use git clone. Go get is for adding a dependency to a project. > > Also how do I delete something I go getted? >> > > ~/go/pkg/mod is just a local cache, nothing you work in. You can clear the > whole module cache with go

[go-nuts] go get v git clone

2021-03-12 Thread arthurwil...@gmail.com
if I want to get a git repo of go module code and start hacking on it do I use go get or git clone? I tried go get, but it downloaded to ~/go/pkg/mod and when I tried to run one of the tests it didn't work. Also there's no .git dir with the history in the go get tree of the code. Is there a way

[go-nuts] where is the g writebuf flushed?

2021-01-31 Thread arthurwil...@gmail.com
in runtime/print.go gwrite, if the data is put in the gp.writebuf where does that writebuf get flushed? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nu

Re: [go-nuts] maptype questions

2020-07-02 Thread arthurwil...@gmail.com
On Monday, June 29, 2020 at 10:41:15 PM UTC-5 Ian Lance Taylor wrote: > On Mon, Jun 29, 2020 at 6:33 PM arthurwil...@gmail.com > wrote: > > > > On Monday, June 29, 2020 at 8:16:14 PM UTC-5 Ian Lance Taylor wrote: > >> > >> On Mon, Jun 29, 2020

Re: [go-nuts] maptype questions

2020-06-29 Thread arthurwil...@gmail.com
On Monday, June 29, 2020 at 8:16:14 PM UTC-5 Ian Lance Taylor wrote: > On Mon, Jun 29, 2020 at 5:32 PM Bill Morgan > wrote: > > > > for this code: > > > > m := make(map[int]int, 9) > > > > I think the compiler creates a maptype that is stored at > type.*+60480(SB) that it uses for the c