Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
missing function body - x/tools/go/ssa/interp/testdata/src/os/os.go:3:6 #40140
What version of Go are you using (
I'm not sure how much I'll need to give before you have enough but I guess we'll work our way through it.
This is the entire function it is in:
Because ConfigInit() is stored in a variable in a struct like:
It will eventually be called with a line like:
and the structs they are referring to look like:
I would help if you provided a higher level overview of the problem, not specifics of your codebase. Can you please answer these questions:
I know how valuable this is but all as I could do is write a snippet, put it in playground and see if it errors, and I tried that and it doesn't.
Part of the problem here is that I am relatively new to go, I have been learning it mostly through my IDE (GoLand) which I have also been learning as I have not used JetBrains products before so I'm coming from a double learning curve and because I have been working mostly through my IDE I am not yet intimately knowledgeable about the ins and outs of the toolchain.
I think I can answer both questions above with one answer which is, I'm actively working on that bit of code so I just uncommented
So perhaps some help from you might help me help you in that can you tell me whether
Is there something I can do to give you more information other than create a general snippet of code? because I don't think that's going be possible in this case with the way it comes and goes and seems to need some subtle combination of stuff.
Is there a way I can get go to
Is there some debug version of the compiler I could run for you to precisely identify the problem?
I wish I was already a go expert but I really am at the learning stages right now so if you could give me some guidance I will do what i can.
No, it is a test fixture. There should be no reason for code to import this package.
Thanks for clarifying, that's very helpful. In the original issue report, I didn't realize you were using an IDE and could not understand where the error was coming from.
Thanks a lot for wanting to contribute. Based on what you described, there's a good chance this issue is related to something the IDE was doing. We can't really make progress here without being able to reproduce the problem, and you mentioned it no longer happens.
I'll close this now because there's nothing action to do on the Go project side at this time, but if this happens again, I suggest reporting this as a bug to the IDE and letting them investigate it on their end first. Additionally, see https://golang.org/wiki/Questions for where to ask questions and get general help.
If you get to a point where it's possible to narrow down the issue to something in the Go project, please don't hesitate to open a new issue or leave a comment here if this occurs again. Thanks.