You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ghcjs: app does not get built unless i --force-dirty #1797
the main app is at the root, and I have an install.sh to set things up. The ghcjs part is under src/WebGui.
The problem that I have is that once the ghcjs app is build, if I go in src/WebGui, modify for instance Config.hs, in a way to make absolutely sure that the source shouldn't build anymore, then I run stack build, the code is not rebuilt. Stack simply outputs some warnings about ignoring some different package versions (as it does when it builds the app) and then does nothing.
If I use --force-dirty it does rebuild it, but it's a major pain because it also rebuilds (or at least reinstalls) many dependencies of the app and the build time is very slow.
The dirtiness checking probably isn't working because other-modules: isn't specified in the cabal file. When things do compile properly, it should warn you that the modules aren't listed.
so I think there's such a warning for the root project, but not for the ghcjs project, which is under src/WebGui/web-gui.cabal (and that's the problematic one with the dirty check).
no warning output, but it really seems that adding:
Are you sure there are no warnings? They look like this:
...
Preprocessing executable 'exe' for pkg-0.1.1.0...
Warning: module not listed in pkg.cabal for 'exe' component (add to other-modules): Modu
pkg-0.1.1.0: copy/register
...
They're kinda jammed in the middle of output, so it's hard to notice them. This is discussed a little here
Activity
mgsloan commentedon Feb 17, 2016
The dirtiness checking probably isn't working because
other-modules:isn't specified in the cabal file. When things do compile properly, it should warn you that the modules aren't listed.emmanueltouzery commentedon Feb 17, 2016
Thank you for the answer! I'll check tonight and update the bug.
emmanueltouzery commentedon Feb 17, 2016
so I think there's such a warning for the root project, but not for the ghcjs project, which is under src/WebGui/web-gui.cabal (and that's the problematic one with the dirty check).
no warning output, but it really seems that adding:
other-modules:
Config,
Common,
EventsView,
FilePicker
to the cabal does fix the issue. I thought other-modules was needed only for libraries :-(
not sure whether to close the issue or leave it open due to the non-warning about 'other-modules'.
don't need --force-dirty anymore for the client build. it was due to …
emmanueltouzery commentedon Feb 17, 2016
(i commited the fix to my app, the version with the issue was https://github.com/emmanueltouzery/cigale-timesheet/tree/65a468e52c70f95fd3996d74da2eaae5dd9f5369 )
mgsloan commentedon Feb 18, 2016
Are you sure there are no warnings? They look like this:
They're kinda jammed in the middle of output, so it's hard to notice them. This is discussed a little here
mgsloan commentedon Feb 18, 2016
Closing since the main issue is resolved.