-
Notifications
You must be signed in to change notification settings - Fork 158
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
scripts do not seem to be evaluated in isolation #737
Comments
Hmmm yes, this can easily cause a load of issues. The reflective nature of script evaluation is just highly polluting in the |
So i guess this is the problem? FSharp.Formatting/src/FSharp.Formatting.Literate/Evaluator.fs Lines 198 to 203 in 2c93118
I tried to look a bit into Evaluator.fs but i have to admit that i do not understand that much besides the comments - but this seems to come from a time where we did not have |
I think it should be possible to do that, yes. The code is messy and unclear, I've been trying to clean it up. |
I suspect this is an issue that is the root cause of many bugs that we are experiencing currently.
Most of this seems to be caused in conjunction with using
#r "nuget: ..."
references.A few observations that lead me to this conclusion:
no value returned by any evaluator
, while removing it will lead to all those files being rendered correctly.#r "nuget: ..."
references, while documentation for libraries seem to work fine most of the time, because they usually reference a single compiled binary in all doc scripts.This seems to be the underlying issue of almost all problems i have had with fsdocs, but it is very hard to pin down to single lines in scripts. I will update this issue with additional insights.
Here are some issues that i also think are caused by this:
The text was updated successfully, but these errors were encountered: