-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Plug-in doesn't get the job done because: "ctags: Warning: Cannot disable fixed field 'xxx' {pattern}" #467
Comments
Update: Uninstall exuberant-ctags (if necessary) and uninstall universal-ctags |
I've the same issue. Something changed with vista, since I've had it working using universal-ctags. When I recently updated vista, it broke, producing only an output reading: 'ctags: Warning: Cannot disable fixed field: "P"{pattern}' I'm on Debian 10 (buster), using universal ctags version 0.0.0, and vim 9.0. |
#466 updates the kinds option of ctags for go, which looks like the culprit of this ssue. Can you try this patch and post the output of diff --git a/autoload/vista/types/uctags/go.vim b/autoload/vista/types/uctags/go.vim
index 826a9e8..acc255e 100644
--- a/autoload/vista/types/uctags/go.vim
+++ b/autoload/vista/types/uctags/go.vim
@@ -15,7 +15,6 @@ let type_go.kinds = {
\ 'm': {'long' : 'struct members', 'fold' : 0, 'stl' : 0},
\ 'M': {'long' : 'struct anonymous members', 'fold' : 0, 'stl' : 0},
\ 'n': {'long' : 'interface method specification', 'fold' : 0, 'stl' : 0},
- \ 'P': {'long' : 'imports', 'fold' : 0, 'stl' : 0},
\ 'a': {'long' : 'type aliases', 'fold' : 0, 'stl' : 0},
\ } |
hi liu, i tried your patch and here is the output of the Vista.vim still not work and get error "[vista.vim] ctags: Warning: Cannot disable fixed field: 'P'{pattern}" |
Sorry for the persistent error, could you paste the output of |
ctags wasn't even started :P You have to print it after the error has occurred. Try invoking |
You'll see the error message and Looks like the problem comes from here, but they actually remain unchanged for a long time, not sure why.
Since these are warnings instead of hard errors, we may suppress them silently. @masatake any suggestions? Thanks! |
At a glance,
Do you really want to disable |
I revised my answer. You can turn off the fields P and F in the JSON output mode.
It looks old.
|
@ljxrrcj Can you try installing a newer u-ctags as suggested by masatake and see if the issue persists? |
@ljxrrcj Nightly-build is available from https://github.com/universal-ctags/ctags-nightly-build/releases . |
Thank you all! I tried the latest version of universal-ctags and the problem disappeared! And I have another question now: is there a way to show the tags just by the order like Source Insight rather than by tags' types? |
It's definitely possible, the request already exists actually in #452. The idea is to add a new renderer for the ctags output (https://github.com/liuchengxu/vista.vim/blob/master/autoload/vista/renderer.vim#L83-L92), but I don't have more bandwidth for developing new features of vista.vim, we need more contributors :P. |
The README has been updated with a note on newer ctags and a link to the ctags nighlty-build (thank you! @masatake), I believe this issue can be closed now. |
Describe the bug
As the title says, whenever I want to load the plug-in (:Vista!!) I get such error twice:
ctags: Warning: Cannot disable fixed field 'P' {pattern}
ctags: Warning: Cannot disable fixed field 'F' {input}
and then nothing happens.
Environment:
OS: Linux Mint 20.3
Neovim version: 0.7.2 (the one I got with the ppa)
This plugin version: master (#466) (I downloaded the zip version)
I'm using universal-ctags: The one shipped with Linux Mint
Vista info
Steps to reproduce given the above info
Just type:
:Vista
Expected behavior
A window should show with the source code tags (I guess).
Actual behavior

A couple of warnings show up and nothing more happens.
Screenshot or gif (if possible)
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: