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
go: show EOF error on last line #2447
Comments
Makes sense.
What's the raw output here? Does it have a line number after all? |
Does this help?
|
Yes, thanks.
|
When the following program is tested:
The error produced,
go: syntax error: unexpected EOF, expecting } (E)
is beyond the last line of the file and therefore doesn't appear (in the gutter or on a hover).When a blank line follows the last closing brace, the error appears on that line, but only until the file is saved.
Expected behavior
It would be nice if any errors that were attributed to nonexistent line numbers were associated with the last line of the program.
Steps to reproduce
See above. Use the standard go maker.
Output from :NeomakeInfo
Neomake debug information
Async support: 1
Current filetype: go
Windows: 0
[shell, shellcmdflag, shellslash]: ['/bin/bash', '-c', 0]
makeprg=make
Enabled makers
For the current filetype ("go", used with :Neomake):
append_file: 0
args: ['test', '-c', '-o', '/dev/null']
auto_enabled: 1
cwd: '%:h'
errorformat: '%W%f:%l: warning: %m,%E%f:%l:%c:%m,%E%f:%l:%m,%C%\s%+%m,%-G%.%#\[no test files],%-G#%.%#'
exe: 'go'
postprocess: function('neomake#postprocess#compress_whitespace')
serialize: 1
serialize_abort_on_error: 1
version_arg: 'version'
version information (/home/seth/.local/go/bin/go version): go version go1.13.5 linux/amd64
8:16:56Z
NOTE: you can define g:neomake_go_enabled_makers to configure it (or b:neomake_go_enabled_makers).
For the project (used with :Neomake!):
n it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c,,%-GIn file included from %f:%l:%c,%-GIn file include
d from %f:%l,%-G%[ ]from %f:%l:%c,%-G%[ ]from %f:%l:,%-G%[ ]from %f:%l,,%-G%[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f", line %l%
\D%c%[^ ] %m,%D%\a[%\d]: Entering directory %[
'']%f'',%X%*\a[%*\d]: Leaving directory %*[
'']%f'',%D%\a: Entering directory %[`'']%f'mode
',%X%\a: Leaving directory %[`'']%f'',%DMaking %*\a in %f,%f|%l| %m'
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
NOTE: you can define g:neomake_enabled_makers to configure it.
Default maker settings:
Settings
New-style (dict, overrides old-style)
Old-style
:version
:messages
The text was updated successfully, but these errors were encountered: