atom / symbols-view

Jump to symbols in Atom
MIT License
164 stars 114 forks source link

Sometimes go-to-symbol doesn't do anything in Fortran #152

Open steabert opened 8 years ago

steabert commented 8 years ago

For some symbols, pressing Ctrl-Alt-Down (go-to-symbol) results in a jump to the correct file and line, but for other symbols nothing happens. This is when browsing Fortran code.

I've logged the tags object returned by ctags by adding a line to tag-reader.coffee at the beginning of findTags callback:

ctags.findTags tagsFile, symbol, (err, tags=[]) ->
          console.log(tags)
          tag.directory = projectPath for tag in tags

For a working tag (a new file is opened), I see:

directory: "/home/stevenv/molcas/trunk"
file: "src/ga_util/gamod.f"
kind: "s"
lineNumber: 0
name: "gamod.f"
pattern: "/^ SubRoutine GASync$/"

For a non-working tag (nothing happens), I see:

directory: "/home/stevenv/molcas/trunk"
file: "src/caspt2/grdctl.f"
kind: "s"
lineNumber: 0
name: "GRDCTL"
pattern: "/^ SUBROUTINE GRDCTL(/"

The only differences I can see are in "name" and "pattern". However, both seem to return the correct file. Any help in further debugging this is appreciated, I have absolutely zero javascript/coffeescript experience.