oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.34k stars 745 forks source link

How to resolve ctags warnings #2773

Closed cross closed 5 years ago

cross commented 5 years ago

I am getting two (or more) errors repeatedly when indexing my source tree. I am using OpenGrok 1.2.8 and universal ctags hand-built within the past month.

I see two things repeatedly

  1. "null tag" in some javascript files:
    2019-05-17 13:52:59.878-0400 WARNING t25 Ctags.lambda$initialize$0: Error from ctags: ctags: Warning: ignoring null tag in /mysources/tools/3rdparty/swagger-ui/src/plugins/topbar/topbar.jsx(line: 115)
    2019-05-17 13:53:00.479-0400 WARNING t22 Ctags.lambda$initialize$0: Error from ctags: ctags: Warning: ignoring null tag in /mysources/tools/3rdparty/swagger-ui/test/setup.js(line: 5)
  2. null expansion of \1 pattern in .md files:
    2019-05-17 13:50:30.591-0400 WARNING t20 Ctags.lambda$initialize$0: Error from ctags: ctags: Warning: /mysources/product/subdir/IMAGE_OVERVIEW.md:53: null expansion of name pattern "\1"

Numerous, but not all, javascript and markdown files report these errors. I am not sure how to tell if they are issues with the specifications/invocation of ctags from opengrok, or bugs internal to ctags.

vladak commented 5 years ago

I believe this is an issue in Universal ctags, not OpenGrok. I'd suggest to file a new issue under https://github.com/universal-ctags/ctags