This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
Go To Declaration doesn't work when the line contains \ #256
Copy link
Copy link
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When the definition I want to go has a \, it can't navigate there using symbols-view:go-to-declaration.
So when the tagfile looks like this:
< MyClass test/class_one.rb /^class MyClass # rubocop:disable Metrics\/ClassLength$/;" c
It doesn't work, but when it looks like this:
> MyClass test/class_one.rb /^class MyClass$/;" c
It does. Here you can find a more detailed explanation.
Steps to Reproduce
- Have a class declaration (in this case in Ruby) that also has a comment with a
/so it gets escaped:
class Foo # rubocop:disable Metrics/ClassLength
def foo
1
end
end- Create another class that uses the first one, and generate a tagfile using universal ctags
class Bar
def bar
obj = Foo.new # <- go to declaration doesn't work for `Foo`
obj.foo # <- go to declaration works for `foo`
end
endExpected behavior:
When stepping on Foo and trigering go-to-declaration, it should navigate to it's declaration
Actual behavior:
When stepping on Foo and trigering go-to-declaration, nothing happens
Reproduces how often:
Always
Versions
Atom 1.50.0
Symbols View 0.118.4
Additional Information
Here is the related original issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels