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

Go to definition after updating a source file #130

Closed
adamw opened this issue Nov 28, 2017 · 3 comments
Closed

Go to definition after updating a source file #130

adamw opened this issue Nov 28, 2017 · 3 comments

Comments

@adamw
Copy link
Contributor

adamw commented Nov 28, 2017

I noticed that go to definition stops working after a source file is edited.

Only after doing a pulp build followed by a psc-ide-load-all, the positions are updated and the goto works properly.

The easiest way to reproduce is to introduce two values:

x = 10

y = x

and try to jump to x from the definition of y.

Is there some configuration that I might be missing?

@kritzcreek
Copy link
Collaborator

If you're able to use the newest PureScript release 0.11.7 (released a couple of days ago) you can (setq psc-ide-editor-mode t) which should fix this behaviour. I didn't make it the default, because I don't want to break people's existing setups.

@adamw
Copy link
Contributor Author

adamw commented Nov 29, 2017

Works great, thanks! Do you think it would be worth adding that note to the readme?

@adamw adamw closed this as completed Nov 29, 2017
@kritzcreek
Copy link
Collaborator

Yeah, definitely. I have a documentation issue here #127, but I wouldn't mind a quick note for now.

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