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

Errors from :GoBuild and similar commands don't look very good #1429

Closed
arp242 opened this issue Sep 6, 2017 · 2 comments
Closed

Errors from :GoBuild and similar commands don't look very good #1429

arp242 opened this issue Sep 6, 2017 · 2 comments
Assignees

Comments

@arp242
Copy link
Contributor

arp242 commented Sep 6, 2017

Running :GoBuild -tags=foo is an error; this shows as:

2017-09-07-001002_358x87_scrot

Which is not great; I need to type :messages to get the full error:

2017-09-07-001012_987x176_scrot

which is formatted pretty badly. Newlines are lost, and tabs are represented as <09>.

This is not a problem with just this command; I've seen it in many commands. In fact, it's the prime reason I typically use :!go ... instead of :Go.

Investigate if this can be improved.

@arp242 arp242 self-assigned this Sep 7, 2017
@arp242
Copy link
Contributor Author

arp242 commented Sep 14, 2017

Also noticed Neovim does't display errors beyond the first few characters; e.g.:

vim-go: building dispatched ...
vim-go: [build] FAILED
vim-go: # a

Regular Vim:

vim-go: building dispatched ...
vim-go: FAILED
vim-go: # a runtime.main_main·f: relocation target main.main not defined runtime.main_main·f: undefined: "main.main
"
vim-go: /home/martin/go/src/a

@arp242
Copy link
Contributor Author

arp242 commented Sep 14, 2017

And for Vim 7.4 there is basically no error output at all? I can't find anything in the quickfix list, location list, or :messages.

arp242 added a commit that referenced this issue Sep 15, 2017
Unlike `:echo`, `:echom` is rather stupid. It will display a newline as
`^@` or `<00>` and tabs as `^I` or `<09>` (depending on the `display`
setting).

`:GoBuild --`

This makes those messages display nicer.

This fixes some – but not all – of #1429.
arp242 added a commit that referenced this issue Sep 18, 2017
Unlike `:echo`, `:echom` is rather stupid. It will display a newline as
`^@` or `<00>` and tabs as `^I` or `<09>` (depending on the `display`
setting).

This some messages display nicer, for example `:GoBuild --` looked
rather confusing before, and looks as expected now.

This fixes some – but not all – of #1429.
@arp242 arp242 closed this as completed Dec 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant