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

TernError: No type found at the given position. #138

Open
max-mykhailenko opened this issue Sep 22, 2016 · 5 comments
Open

TernError: No type found at the given position. #138

max-mykhailenko opened this issue Sep 22, 2016 · 5 comments

Comments

@max-mykhailenko
Copy link

max-mykhailenko commented Sep 22, 2016

Trying goto definition, but got this alert. Error happens when open definition already on definition

@marijnh
Copy link
Member

marijnh commented Sep 22, 2016

Without context, there is no way I'm going to be able to say anything useful about this. What code were you on when you tried to go to definition?

@max-mykhailenko
Copy link
Author

@marijnh
Copy link
Member

marijnh commented Sep 23, 2016

What did you expect to happen? That is its own definition, not an expression for which Tern can look up a definition. Try on .close two lines down, that should give more useful results.

@max-mykhailenko
Copy link
Author

Plugin should just ignore pressing without alert if I'm already on definition. Maybe only with notification in status or message to console, but it's not necessary.

@marijnh
Copy link
Member

marijnh commented Sep 24, 2016

Agreed -- that's what the Emacs plugin does. Want to write a patch to that effect?

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

No branches or pull requests

2 participants