Sublime Forum

CTags not working after update

#1

Hi All,

I was using CTags with Sublime Text well. But, not sure which update, I found the right click menu about tag data build, is not enabled. The problem happens on tag rebuilding so with already generated tag works.

“CTags: Rebuild Tags”
image

I am sure CTags plugin worked with Sublime Text 4 but it doesn’t work now. I checked this issue with other 2 more my laptops but got the same result.

Could you anybody see and let me know solution? Sublime team seems to need to check this as well.

0 Likes

#2

If you use View > Show Console, do you see any errors? Is this one of those commands that only enables itself in files where CTags is supported?

0 Likes

#3

No uploading file option so I copy and pasted here all logs. Sorry. anyway there is no error for CTags and ctags.exe is located in system32 folder.

DPI mode: per-monitor v2
startup, version: 4152 windows x64 channel: stable
executable: /C/Program Files/Sublime Text/sublime_text.exe
application: /C/Program Files/Sublime Text
working dir: /C/Program Files/Sublime Text
packages path: /C/Users/ckim/AppData/Roaming/Sublime Text/Packages
state path: /C/Users/ckim/AppData/Roaming/Sublime Text/Local
zip path: /C/Program Files/Sublime Text/Packages
zip path: /C/Users/ckim/AppData/Roaming/Sublime Text/Installed Packages
ignored_packages: [“Vintage”]
pre session restore time: 0.406128
loading dictionary Packages/Language - English/en_US.dic
startup time: 0.461128
first paint time: 0.462128
git: using configuration from C:\Program Files\Git\cmd\git.exe
git: tracking working dir C:\Users\ckim\workspace\STM32Cube_FW_F4_V1.27.0\Projects\Xpress
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.html_print
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading python 3.3 plugin 0_package_control_loader.00-package_control
reloading python 3.3 plugin 0_package_control_loader.01-pygments
reloading python 3.3 plugin 0_package_control_loader.10-wcwidth
reloading python 3.3 plugin 0_package_control_loader.40-pywinpty
reloading python 3.3 plugin 0_package_control_loader.50-backrefs
reloading python 3.3 plugin 0_package_control_loader.50-markupsafe
reloading python 3.3 plugin 0_package_control_loader.50-pymdownx
reloading python 3.3 plugin 0_package_control_loader.50-pyte
reloading python 3.3 plugin 0_package_control_loader.50-python-markdown
reloading python 3.3 plugin 0_package_control_loader.50-pyyaml
reloading python 3.3 plugin 0_package_control_loader.51-python-jinja2
reloading python 3.3 plugin 0_package_control_loader.55-jsonschema
reloading python 3.3 plugin 0_package_control_loader.55-mdpopups
reloading python 3.3 plugin BracketHighlighter.bh_core
reloading plugin Default.keymap
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin A File Icon.plugin
git: tracking working dir C:\Users\ckim\workspace\STM32Cube_FW_F4_V1.27.0\Projects\BanBoot
git: tracking working dir C:\Users\ckim\workspace\STM32Cube_FW_F4_V1.27.0\Projects\XpressFat
git: tracking working dir C:\Users\ckim\workspace\STM32Cube_FW_F4_V1.27.0\Projects\Nucleo\Flash_Card_Word_Memory
reloading python 3.3 plugin BracketHighlighter.bh_logging
reloading python 3.3 plugin BracketHighlighter.bh_plugin
reloading python 3.3 plugin BracketHighlighter.bh_popup
reloading python 3.3 plugin BracketHighlighter.bh_regions
reloading python 3.3 plugin BracketHighlighter.bh_remove
reloading python 3.3 plugin BracketHighlighter.bh_rules
reloading python 3.3 plugin BracketHighlighter.bh_search
reloading python 3.3 plugin BracketHighlighter.bh_swapping
reloading python 3.3 plugin BracketHighlighter.bh_wrapping
reloading python 3.3 plugin BracketHighlighter.support
reloading python 3.3 plugin CTags.ctags
reloading python 3.3 plugin CTags.ctagsplugin
reloading python 3.3 plugin CTags.test_ctags
reloading python 3.3 plugin CTags.test_ctagsplugin
reloading python 3.3 plugin DocBlockr.jsdocs
reloading python 3.3 plugin HexViewer.hex_checksum
reloading python 3.3 plugin HexViewer.hex_common
reloading python 3.3 plugin HexViewer.hex_editor
reloading python 3.3 plugin HexViewer.hex_finder
reloading python 3.3 plugin HexViewer.hex_highlighter
reloading python 3.3 plugin HexViewer.hex_inspector
reloading python 3.3 plugin HexViewer.hex_notify
reloading python 3.3 plugin HexViewer.hex_viewer
reloading python 3.3 plugin HexViewer.hex_writer
reloading python 3.3 plugin HexViewer.sum_hashes
reloading python 3.3 plugin HexViewer.support
reloading python 3.3 plugin HexViewer.tiger
reloading python 3.3 plugin HexViewer.whirlpool
reloading python 3.3 plugin Package Control.1_reloader
reloading python 3.3 plugin Package Control.2_bootstrap
reloading python 3.3 plugin Package Control.Package Control
reloading python 3.3 plugin SideBarEnhancements.SideBar
reloading python 3.3 plugin SideBarEnhancements.SideBarAPI
reloading python 3.3 plugin SideBarEnhancements.SideBarDefaultDisable
reloading python 3.3 plugin SublimeLinter.init
reloading python 3.3 plugin SublimeLinter._init
reloading python 3.3 plugin SublimeLinter.active_linters_view
reloading python 3.3 plugin SublimeLinter.busy_indicator_view
reloading python 3.3 plugin SublimeLinter.goto_commands
reloading python 3.3 plugin SublimeLinter.highlight_view
reloading python 3.3 plugin SublimeLinter.log_handler
reloading python 3.3 plugin SublimeLinter.message_view
reloading python 3.3 plugin SublimeLinter.panel_view
reloading python 3.3 plugin SublimeLinter.quick_actions
reloading python 3.3 plugin SublimeLinter.status_bar_view
reloading python 3.3 plugin SublimeLinter.sublime_linter
reloading python 3.3 plugin Terminus.main
reloading python 3.3 plugin Trimmer.Trimmer
reloading python 3.3 plugin SublimeCodeIntel.ordereddict
reloading python 3.3 plugin SublimeCodeIntel.SublimeCodeIntel
C:\Users\ckim\AppData\Roaming\Sublime Text\Packages\SublimeCodeIntel\libs\codeintel2\tree.py:55: UserWarning: Not using codeintel’s patched elementtree: this may cause problems
warnings.warn("Not using codeintel’s patched elementtree: "
plugins loaded
Error rewriting command sublime_linter_remove_panel. Encountered infinite loop
Package Control: No updated packages

1 Like

#4

The issue seems to be that the RebuildTagsCommand is a TextCommand and thus is only enabled when a file is in focus. Right-clicking on the side-bar unfocuses the text file, and thus the command is disabled. I can reproduce this in Sublime Text 3 as well by explicitly focusing the side-bar before right-clicking. As such I don’t think this is a bug on our end.

1 Like

#5

see also:

0 Likes

#6

I tried first to left click on target folder in sidebar and right click the same folder. But, not working either. As I mentioned, Ctags worked before. I have used Sublime Text from 3 and now using 4.
Please check this issue in latest 4 version.

0 Likes

#7

Yes, this is my thought. After updating a version, CTags started not working. Thanks for the share and your effort for CTags!

0 Likes

#8

I found you already fix the issue and downloaded the fix. Works now!
image

0 Likes