doomemacs / doomemacs/core

Wrong instructions for activating go

Open
#5,957 7 comments 0 reactions 0 assignees View on GitHub
:lang go is:bug status:unknown
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

After following the module's README.org file:

```
export GOPATH=~/work/go

go install github.com/x-motemen/gore/cmd/gore@latest
go install github.com/stamblerre/gocode@latest
go install golang.org/x/tools/cmd/godoc@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/cmd/gorename@latest
go install golang.org/x/tools/cmd/guru@latest
go install github.com/cweill/gotests/gotests@latest
go install github.com/fatih/gomodifytags@latest
```

to install dependencies, go language supporrt in Doom Emcas to work.

### What actually happened?

Doom doctor can't find the go language dependencies:

```
doom doctor ─╯
> Executing 'doom doctor' with Emacs 27.2 at 2022-01-04 11:01:19
The doctor will see you now...

> Checking your Emacs version...
> Checking for Doom's prerequisites...
> Checking for Emacs config conflicts...
> Checking for great Emacs features...
> Checking for private config conflicts...
> Checking for stale elc files...
> Checking for problematic git global settings...
> Checking Doom Emacs...
✓ Initialized Doom Emacs 21.12.0-alpha
✓ Detected 45 modules
✓ Detected 154 packages
> Checking Doom core for irregularities...
Found font material-design-icons.ttf
Found font weathericons.ttf
Found font octicons.ttf
Found font fontawesome.ttf
Found font file-icons.ttf
Found font all-the-icons.ttf
> Checking for stale elc files in your DOOMDIR...
> Checking your enabled modules...
> :completion vertico
! The installed ripgrep binary was not built with support for PCRE lookaheads.
Some advanced consult filtering features will not work as a result, see the module readme.
! The installed grep binary was not built with support for PCRE lookaheads.
Some advanced consult filtering features will not work as a result, see the module readme.
> :lang go
! Couldn't find gocode. Code completion won't work
! Couldn't find gomodifytags. Manipulating struct tags will not work
! Couldn't find gotests. Generating tests will not work
! Couldn't find gore. REPL will not work
! Couldn't find guru. Refactoring commands (go-guru-*) won't work
There are 7 warnings!
✓ Finished in 6.1070s
Cleaning up the recentf list...
Cleaning up the recentf list...done (0 removed)
```

### Describe your attempts to resolve the issue

Followed the instructions exactly as they are.

### Steps to reproduce

1- Fresh Doom Emacs install
2- Activate go language in init.el
3- Follow instructions to install/activate it from here: https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/go
4- Run `doom sync` and `doom doctor`

You will see the warnings

### System Information

https://pastebin.com/6A7ePxMk

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.