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

util: Fix method not found go#util#Warn and go#util#EchoWarn #3613

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ endfunction
function! go#debug#TestFunc(...) abort
let l:test = go#util#TestName()
if l:test is ''
call go#util#Warn("vim-go: [debug] no test found immediate to cursor")
call go#util#EchoWarning("vim-go: [debug] no test found immediate to cursor")
return
endif
call call('go#debug#Start', extend(['test', '.', '-test.run', printf('%s$', l:test)], a:000))
Expand Down
6 changes: 3 additions & 3 deletions autoload/go/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ function! s:definitionHandler(next, msg) abort dict

let l:line = s:lineinfile(go#path#FromURI(l:msg.uri), l:msg.range.start.line+1)
if l:line is -1
call go#util#Warn('could not find definition')
call go#util#EchoWarning('could not find definition')
return
endif

Expand Down Expand Up @@ -651,7 +651,7 @@ function! s:typeDefinitionHandler(next, msg) abort dict

let l:line = s:lineinfile(go#path#FromURI(l:msg.uri), l:msg.range.start.line+1)
if l:line is -1
call go#util#Warn('could not find definition')
call go#util#EchoWarning('could not find definition')
return
endif

Expand Down Expand Up @@ -1866,7 +1866,7 @@ function s:applyDocumentChanges(changes)

let l:editbufnr = bufnr(l:bufname)
if l:editbufnr == -1
call go#util#EchoWarn(printf('could not apply changes to %s', l:fname))
call go#util#EchoWarning(printf('could not apply changes to %s', l:fname))
continue
endif

Expand Down
Loading