Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #87 from yudai/fix_crash_in_mods
Browse files Browse the repository at this point in the history
Fix errors in non-moduled dependencies
  • Loading branch information
saibing authored Feb 13, 2019
2 parents 72d4745 + 1ff10d3 commit 5c4993b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion langserver/internal/cache/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func (v *View) parse(uri source.URI) error {
return err
}

v.Config.Dir = filepath.Dir(path)
v.Config.ParseFile = v.parseFile
pkgs, err := packages.Load(v.Config, fmt.Sprintf("file=%s", path))
if len(pkgs) == 0 {
Expand Down

0 comments on commit 5c4993b

Please sign in to comment.