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

Automatically update data on build #2085

Closed
Trebor-Huang opened this issue Aug 7, 2021 · 4 comments
Closed

Automatically update data on build #2085

Trebor-Huang opened this issue Aug 7, 2021 · 4 comments
Labels
build tool: stack type: support User support tickets, questions, help with setup etc.

Comments

@Trebor-Huang
Copy link

I'm using stack version 2.7.3, vscode-haskell version 1.5.1.

When I update something in one file, e.g. change a type signature or add a function, the change is not reflected when I edit another file, until I build the project and reload. So when I'm jumping back and forth between two files, I need to reload the plugin a lot.

Is it possible to automatically update when I compile the project? Or even better, is it possible without even recompiling?

@Trebor-Huang
Copy link
Author

It seems that changes in the src folder only, as in the default template of stack projects, can be detected in real-time, but not in the test folder. Is there some difference between these folders?

@jneira
Copy link
Member

jneira commented Aug 7, 2021

hi, thanks for the bug report, stack does not build test components by default, so maybe add test: true in the stack.yaml might help.

@jneira jneira transferred this issue from haskell/vscode-haskell Aug 7, 2021
@jneira jneira added build tool: stack type: support User support tickets, questions, help with setup etc. type: setup labels Aug 7, 2021
@Ailrun
Copy link
Member

Ailrun commented Aug 7, 2021

I think the issue here is the same as #1822: cross-section definition. New definitions or type signature changes in library section are not reflected immediately (before rebuild) to other sections, like executable or test-suite

@jneira
Copy link
Member

jneira commented Aug 8, 2021

@Trebor-Huang hi, I think it is a duplicate too, so i closed this, feel free to reopen if you think your issue differs in any way the mentioned one. There you could track its eventual resolution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build tool: stack type: support User support tickets, questions, help with setup etc.
Projects
None yet
Development

No branches or pull requests

3 participants