Bug 1531089 - vim: Jumping to tag created by etags no longer works
Summary: vim: Jumping to tag created by etags no longer works
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 27
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-04 14:45 UTC by Andrea Bolognani
Modified: 2018-02-15 06:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-15 06:46:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andrea Bolognani 2018-01-04 14:45:24 UTC
Recent vim versions can no longer process etags-generated tag files
that worked just fine with older builds.

Reproducing the issue is quite simple:

  1. Create a trivial C program.

     $ cat >test.c <<EOF
     void foo() {}
     void bar() {}
     void baz() {}

     inf main(int argc, char **argv)
     {
         foo();
         bar();
         baz();

         return 0;
     }
     EOF

  2. Build tags database.

     $ etags -R

  3. Try jumping straight to a tag.

     $ vim -t foo

     The error message will be:

       E434: Can't find tag pattern

  4. Alternatively, open the C program and try jumping to a tag
     using Ctrl-].

     The error message will be one of:

       E48: Not allowed in sandbox: U
       E492: Not an editor command: ^?
       E435: Couldn't find tag, just guessing!

     with no apparent correlation between the specific error message
     and the action performed, that is, repeating the same steps
     three times in a row might result in all three error messages
     being displayed one after the other.

I've "bisected" the issue and found that

  vim-8.0.1187-1

works fine, whereas

  vim-8.0.1322-1

presents the issue. I've tested this both by gradually upgrading
two Fedora guests (25 and 26; freshly installed, so that no vim
customizations would be involved) and by downgrading my laptop,
which is running Fedora 27 and exhibits the issue, to vim-8.0.1187-1
upon which the functionality started working once again.

etags is ctags-etags-5.8-21.fc27.x86_64 on my laptop.

Comment 1 Zdenek Dohnal 2018-01-05 07:22:36 UTC
Hi Andrea,

thank you for reporting this issue. I managed to reproduce the issue, I'll look into it further and I'll report it to upstream. You can use ctags for now as workaround, ctags works fine.

Comment 2 Zdenek Dohnal 2018-01-05 13:10:40 UTC
Upstream patchlevel 1218 broke etags. Reporting upstream...

Comment 3 Zdenek Dohnal 2018-02-12 11:17:44 UTC
The issue is fixed in 8.0.1505. Issuing the build now.

Comment 4 Fedora Update System 2018-02-12 11:36:17 UTC
vim-8.0.1505-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e740835cc7

Comment 5 Fedora Update System 2018-02-13 07:59:40 UTC
vim-8.0.1505-1.fc27 has been pushed to the Fedora 27 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-2018-e740835cc7

Comment 6 Fedora Update System 2018-02-14 17:30:56 UTC
vim-8.0.1505-1.fc27 has been pushed to the Fedora 27 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.