Skip to content
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

cannot find package "unsafe" with golang #55

Open
bigduu opened this issue Sep 1, 2021 · 3 comments
Open

cannot find package "unsafe" with golang #55

bigduu opened this issue Sep 1, 2021 · 3 comments

Comments

@bigduu
Copy link

bigduu commented Sep 1, 2021

setting

lua <<EOF
require'navigator'.setup({
debug = true
})
EOF

gh.log

[INFO  Thu Sep  2 00:22:39 2021] .../nvim/plugged/navigator.lua/lua/navigator/definition.lua:50: { {
    error = {
      code = 0,
      message = 'err: exit status 1: stderr: cannot find package "unsafe" in any of:\n\t/usr/local/Cellar/go/1.16.2/bin/src/unsafe (from $GOROOT)\n\t/Users/bigduu/Documents/git/goproject/src/unsafe (from $GOPATH)\n: packages.Load error',
      <metatable> = {
        __tostring = <function 1>
      }
    }
  } }
@bigduu
Copy link
Author

bigduu commented Sep 1, 2021

golang version is 1.16.2
OS : macOS 11.4

@ray-x
Copy link
Owner

ray-x commented Sep 1, 2021

Sizeof() is an internal function and go std package does not include it's go code. I suspect it is a C function. Also checked behaviour in vs-code and default lspconfig. But show the same/similar error (depends on gopls version).

@bigduu
Copy link
Author

bigduu commented Sep 2, 2021

my gopls version

golang.org/x/tools/gopls v0.7.1
    golang.org/x/tools/[email protected] h1:Mh3Z8Xcoq3Zy7ksSlwDV/nzQSbjFf06A+L+F8YHq55U=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants