Bug 1704897 - "E484: Can't open file /usr/share/vim/vimfiles/templates/hello_world.go" when creating a new file
Summary: "E484: Can't open file /usr/share/vim/vimfiles/templates/hello_world.go" when...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim-go
Version: 28
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikola Forró
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-30 18:25 UTC by Jason Montleon
Modified: 2019-05-11 23:10 UTC (History)
2 users (show)

Fixed In Version: vim-go-1.20-2.fc30 vim-go-1.20-2.fc29 vim-go-1.20-2.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-11 01:57:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2019-04-30 18:25:15 UTC
Description of problem:
When running vi <somefile.go> that doesn't exist it looks like vim-go tries to use a non-existent template resulting in an error.

Version-Release number of selected component (if applicable):
vim-go-1.19-2.fc30.x86_64

How reproducible:
Always

Steps to Reproduce:
1. vi main.go

Actual results:
Error detected while processing function <SNR>9_template_autocreate[3]..go#template#create:
line   24:
E484: Can't open file /usr/share/vim/vimfiles/templates/hello_world.go


Expected results:
No error

Additional info:
I think this is coming from:
/usr/share/vim/vimfiles/autoload/go/template.vim
 24       let l:template_file = go#config#TemplateFile()

/usr/share/vim/vimfiles/autoload/go/config.vim
 62 function! go#config#TemplateFile() abort
 63   return get(g:, 'go_template_file', "hello_world.go")
 64 endfunction

Template files look to exist in the vim-go repo:
https://github.com/fatih/vim-go/tree/master/templates

Should probably be installed
https://src.fedoraproject.org/rpms/vim-go/blob/f30/f/vim-go.spec#_46

and added to the package:
https://src.fedoraproject.org/rpms/vim-go/blob/f30/f/vim-go.spec#_75

Comment 1 Nikola Forró 2019-05-02 10:06:44 UTC
Thanks for the report.

Comment 3 Fedora Update System 2019-05-02 10:13:43 UTC
vim-go-1.20-2.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-34e8884ee2

Comment 4 Fedora Update System 2019-05-02 10:13:49 UTC
vim-go-1.20-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ad77aaa68

Comment 5 Fedora Update System 2019-05-02 10:13:53 UTC
vim-go-1.20-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8880d0a7ba

Comment 6 Ben Cotton 2019-05-02 19:06:55 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Fedora Update System 2019-05-03 02:01:59 UTC
vim-go-1.20-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-7ad77aaa68

Comment 8 Fedora Update System 2019-05-03 04:12:17 UTC
vim-go-1.20-2.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-34e8884ee2

Comment 9 Fedora Update System 2019-05-03 05:41:41 UTC
vim-go-1.20-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-8880d0a7ba

Comment 10 Fedora Update System 2019-05-11 01:57:17 UTC
vim-go-1.20-2.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2019-05-11 02:37:19 UTC
vim-go-1.20-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2019-05-11 23:10:35 UTC
vim-go-1.20-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.