-
Notifications
You must be signed in to change notification settings - Fork 15
Fable project fails to compile when started in parallel with a project that it shares references with. #30
Comments
As a followup: when I do not reference the To sum up it breaks when: it does not break when: |
Not sure if it's exactly the same issue, but it's true Fable can get confused if the same daemon is compiling two or more projects in parallel by using a Webpack file with multiple configurations. To avoid this, you can pass the If this doesn't work, the best option is to use something like concurrently and the |
Hey @alfonsogarciacaro, thanks for answering. |
Ah, sorry, I misread the description 😅 Yes, this seems to be a different issue, but I don't know what the problem is 😕 I would need more Fable-specific info (for example, what the error message is). Please also be sure there are no port conflicts. By default Fable uses 61225 but you can specify another one with the |
This seems to be solved with current dotnetcore. Thanks @enricosada 😄 |
A Fable project fails to compile when started in parallel with a project that it shares references with.
Example from this repo: (branch is
ParallelBuildProblems
):Fable Project: https://github.com/rommsen/ConfPlanner/blob/d4176d81035c9c7d87954783b1e046cf74db2464/src/Client/Client.fsproj#L6
Dotnetcore project:
https://github.com/rommsen/ConfPlanner/blob/d4176d81035c9c7d87954783b1e046cf74db2464/src/Server/Server.fsproj#L8
Before I referenced single files from my
Domain
project in myClient
project,Now I am referencing the whole project in both
Server
andClient
The directory structure is
app/src/Client
andapp/src/Domain
.When I call
dotnet fable yarn-start
fromapp/src/Client
everything works as expectedbut when I run
Client
andServer
in parallel via FAKE I get all kind of errors:The FAKE script (
build run
) looks like this:It works when I change the line
Async.Parallel [| fablewatch; suave |]
toAsync.Parallel [| fablewatch|]
i.e. it works when fable and suave are not started in parallel.
It only breaks when suave and fable are started in parallel.
When I start them in different consoles everything works fine.
I am completely out of ideas.
Pinging @enricosada as discussed and @alfonsogarciacaro for completeness
The text was updated successfully, but these errors were encountered: