question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ctags: Unknown option --extras

See original GitHub issue

Environment data

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): 2018.11.0
  • OS and version: Fedora 29
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.1 and 2.7.15 (Python version unrelated)
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): any
  • Relevant/affected Python packages and their versions: ctags version (obtained through referred site)
→ ctags --version
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Jul  9 2009, 16:56:18
  Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  Optional compiled features: +wildcards, +regex

Actual behavior

ctags: Unknown option: --extras when trying to view workspace’s symbols.

Expected behavior

List of workspace’s symbols is shown.

Steps to reproduce:

  1. Download and install latest ctags release - 5.8 - for Fedora (.rpm file) from http://ctags.sourceforge.net
  2. In VSCode press ctrl+t for workspace’s symbols.
  3. Verify ctags: Unknown option: --extras error in Output is shown and no symbols generated.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

ctags: Unknown option: --extras

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

[ms-python.python]ctags: Unknown option: --extras

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
harrastiacommented, Dec 3, 2018

I experienced the same in my Ubuntu 18.04

I can see in the changelog something related to this was released recently https://github.com/Microsoft/vscode-python/blob/master/CHANGELOG.md#fixes. It points to this PR https://github.com/Microsoft/vscode-python/issues/793

Seems exuberant-ctags in some Linux distributions is pretty old and does not have the --extra option (but --extras). I built and installed manually the master branch from https://github.com/universal-ctags/ in my Ubuntu 18.04 and things work again. http://docs.ctags.io/en/latest/autotools.html

3reactions
carlosefrcommented, Dec 7, 2018

I’m also having this problem (macOS 10.12.6, brew installed ctags) and this workaround works for me:

sed -i .bak 's/^--extras=/--extra=/' "${HOME}/.vscode/extensions/ms-python.python-2018.11.0/resources/ctagOptions"
Read more comments on GitHub >

github_iconTop Results From Across the Web

ctags error: "ctags: Unknown option: -p" - Stack Overflow
In any case, try to run ctags with ctags --options=NONE ; if it fixes the issue, it means that the problem comes from...
Read more >
Developers - ctags: Unknown option: --extras, exit code: 1 -
Coming soon: A brand new website interface for an even better experience!
Read more >
Universal Ctags 0.3.0 documentation
Specifies whether to include extra tag entries for certain kinds of information for language <LANG>. Universal Ctags introduces language-specific extras. See “ ...
Read more >
Universal Ctags Documentation - Read the Docs
This --extras= option is for controlling extras common in all languages (or ... Unknown parser with --languages=+Unknown forces ctags to create the extra....
Read more >
Hints for developing a tool using ctags command and tags ...
!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ extras:pseudo If the name of a normal tag in a tag file starts with "!_", a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found