We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2210bb2 commit e700b84Copy full SHA for e700b84
internal/lsp/cache/view.go
@@ -206,6 +206,9 @@ func (v *view) Rebuild(ctx context.Context) (source.Snapshot, error) {
206
func (v *view) LookupBuiltin(ctx context.Context, name string) (*ast.Object, error) {
207
v.awaitInitialized(ctx)
208
209
+ if v.builtin == nil {
210
+ return nil, errors.Errorf("no builtin package for view %s", v.name)
211
+ }
212
data := v.builtin.handle.Get(ctx)
213
if ctx.Err() != nil {
214
return nil, ctx.Err()
0 commit comments