Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jumping to definition in project #20

Open
manveru opened this issue May 22, 2018 · 1 comment
Open

Jumping to definition in project #20

manveru opened this issue May 22, 2018 · 1 comment

Comments

@manveru
Copy link

manveru commented May 22, 2018

So, given two files, for example:

lib/x.cr

class X
end
require "./x/y"

lib/x/y.cr

class Y < X
end

It seems I can't jump to the definition of X I get undefined constant X.

I'm not sure how that could be resolved, how do i tell it what my top level entry file is?

@yxhuvud
Copy link
Contributor

yxhuvud commented May 22, 2018

Currently, you don't.

I did a try to resolve it, but it is hard to get right. See discussion in #18 . And if you have any ideas to resolve it I'd certainly appreciate some help :)

(or well, that is about tool expand, but it is basically the same issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants