Skip to content

Commit 7801149

Browse files
committed
Re #6711 Update online documentation for problem
1 parent 0fe0103 commit 7801149

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/commands/script_command.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ Windows) while others do not.
149149
This can cause GHC to pick the wrong installed package and to report that it
150150
cannot load a module because it is a member of a hidden package.
151151

152+
!!! warning
153+
154+
On Windows only, `stack script` can fail if building a required package or
155+
a dependency of a required package requires the registration in the relevant
156+
package database of a pre-compiled package in another package database.
157+
158+
A work around is to build the required package with the same configuration
159+
as will be used by `stack script`, causing the compiled package to then be
160+
present in the relevant package database, before invoking `stack script`.
161+
152162
## Compilation
153163

154164
The source file can be compiled by passing either the `--compile` flag (no

0 commit comments

Comments
 (0)