-
Notifications
You must be signed in to change notification settings - Fork 2.3k
internal/lsp
: error handling
#75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 60553e5) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
Message from Gobot Gobot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/163006. |
This PR (HEAD: 9febbbd) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: b46ebbf) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: c69cefc) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 18628d1) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 1e56d3e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
* Add Markdown `cmd/gopls/GOPLS.md` file with instructions on how to install `cmd/gopls`. * Add script `cmd/gopls/install-gopls.sh` to automate install.
This PR (HEAD: f6e21a2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/163006 to see it. Tip: You can toggle comments from me using the |
cd tools | ||
vim internal/lsp/server.go # modify some code | ||
cmd/gopls/install-gopls.sh | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is not needed.
fi | ||
|
||
echo -e "\\033[92m ---> installed cmd/gopls (race=${RACE}) \\033[0m" | ||
find "$(command -v gopls)" -printf "%c %p\\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Message from Ian Cottrell: Patch Set 7: I just (last week) removed all the error return values from File accessors, as I think they are the wrong choice. Please don’t reply on this GitHub thread. Visit golang.org/cl/163006. |
Message from Yudai Iwasaki: Patch Set 7:
By the way, the previous commit broke gopls because there are some code that doesn't expect nil from those panic: runtime error: invalid memory address or nil pointer dereference goroutine 21 [running]:
|
Main change is to the
File
interface found ininternal/lsp/source/view.go
.