atom / symbols-view

Jump to symbols in Atom
MIT License
165 stars 115 forks source link

can't use puppet ctags #244

Open droopy4096 opened 5 years ago

droopy4096 commented 5 years ago

Prerequisites

Description

symbols-view does not work well with Puppet code

Steps to Reproduce

  1. create a puppet module with sub-modules
  2. reference sub-module someplace: include my_module::submodule
  3. move cursor to be within my_module
  4. try to jump to definition of the symbol

Expected behavior: [What you expect to happen]

one would expect to get reference to my_module::submodule

Actual behavior: [What actually happens]

atom suggests "my_module" as a reference (and not the my_module::submodule)

Reproduces how often: [What percentage of the time does it reproduce?]

always

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

Atom : 1.34.0 Electron: 2.0.16 Chrome : 61.0.3163.100 Node : 8.9.3

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

rsese commented 5 years ago

Thanks for the report @droopy4096 - can you share a minimal example so we can reproduce?

droopy4096 commented 5 years ago

https://gist.github.com/droopy4096/cf5ed9254d9ac76cdee4f395528ad06c is a sample. I've ran ctags -R --language-force=puppet . to generate "tags" file. After which using either keyboard shortcuts or commands from palette does virtually nothing when cursor is over "foo::bar" in foo.pp . When cursor is over the "foo" portion of it - editor jumps back to the "foo.pp" file it seems. but that is it.