Add namespace to load scripts - #3396
Conversation
|
But this is a breaking change, correct? Should we make that opt-in? Load scripts will contain only |
|
As far as I am aware the load scripts contain both With this change the load scripts will look like this: @matthid ☝️ |
|
Regarding this being a breaking change, it doesn't look like. |
|
I tried but i cannot create a clean repro of the error we get with private packages. if we have a deps like and we load the scripts with #load ".paket/load/Expecto.Hopac.fsx"
#load ".paket/load/Expecto.FsCheck.fsx"
#load ".paket/load/Expecto.fsx"the fsi output is because the packages with this can be an issue because can be created multiple times => error Renaming the file to Adding the namespace , make it like fixing the previous error. Ihmo it's not a breaking change. So i think is just a good bugfix |
|
@forki can you please review this? Thank you! |
|
I'm just a bit confused how a namespace affects '#r' statements, should we report this to visualfsharp, it definitely feels like a bug to me? |
|
Can someone show how exactly this can be reproduced and report it over there? |
|
@matthid it looks like you are right but can we add this for the moment to paket as a workaround until it gets fixed on visualfsharp? |
|
I'd prefer first opening the visualfsharp issue before merging this ;) |
|
I'll try repro the error another time in https://github.com/enricosada/load_issue_repro. and i'll open a bug in visualfsharp about it, let's see |
|
@matthid can we merge this while @enricosada works on that? I am currently blocked by this and would be great to continue using this repo instead of forking it for the sake of this small fix. Thank you! |
|
@andre-correia please feel free to reproduce and report yourself, you are definitely not blocked. Historically, people don't care once stuff is merged... |
|
I think he meant he is blocked as in his project does not work as long as
we don't merge and release the fix
Matthias Dittrich <notifications@github.com> schrieb am Di., 30. Okt. 2018,
13:10:
… @andre-correia <https://github.com/andre-correia> please feel free to
reproduce and report yourself, you are definitely not blocked.
Historically, people don't care once stuff is merged...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3396 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNO7krw95mHPLyauEnn3E94fguKBLks5uqEHEgaJpZM4XzXPQ>
.
|
|
Exactly @forki . Unfortunately until mid of next week I don't have time to try to reproduce it with public packages but @enricosada offered to help with that. If we could go ahead witht the merge it would be much appreciated 👍 |
|
@forki I know, just saying how I see it ;) |
|
No luck yet with repro, but i am trying doing it. Afaik it's not a breaking change, because while we add a namespace, the code inside load script is only |
The generated load scripts don't have a namespace and this causes issues while importing assemblies that have modules defined with the same name as the assembly as that will be the default namespace.
Example:
Assembly
A.dlldefines moduleA. When this is imported via load script, I get the following error:This PR fixes this issue by adding the namespace
PaketLoadScriptsto all the generated load scripts.