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

ob run does not reload #707

Closed
srid opened this issue Apr 20, 2020 · 3 comments
Closed

ob run does not reload #707

srid opened this issue Apr 20, 2020 · 3 comments

Comments

@srid
Copy link
Contributor

srid commented Apr 20, 2020

I changed Frontend.hs, but ob run doesn't reload it. Even killing and starting it again uses the old frontend somehow. I did saw this warning:

image

Packages named 'backend' appear in 2 different locations: .attr-cache/skeleton.out/backend/backend.cabal, backend/backend.cabal; Picking .attr-cache/skeleton.out/backend/backend.cabal
Packages named 'common' appear in 2 different locations: common/common.cabal, .attr-cache/skeleton.out/common/common.cabal; Picking common/common.cabal
Packages named 'frontend' appear in 2 different locations: .attr-cache/skeleton.out/frontend/frontend.cabal, frontend/frontend.cabal; Picking .attr-cache/skeleton.out/frontend/frontend.cabal

This was from using develop branch of obelisk at 6df4924 - and a newly created skeleton using it.

@srid
Copy link
Contributor Author

srid commented Apr 20, 2020

Workaround: rm -rf ./.attr-cache.

@tomsmalley
Copy link
Collaborator

Hey Srid, is your project .obelisk/impl also pointing at that commit? I guess you are at some point behind #693 being included. Bear in mind that ob init will point to master by default.

Perhaps that fix needs backporting? cc @3noch
I thought this bug was only on develop.

@3noch
Copy link
Collaborator

3noch commented Apr 20, 2020

This has been fixed in develop. It's possible it was present in older versions though. Thankfully the warning tells you what's going on. Closing since it's fixed in develop. We have a release in the pipeline.

@3noch 3noch closed this as completed Apr 20, 2020
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

3 participants