-
Notifications
You must be signed in to change notification settings - Fork 149
Update and simplify NaN-safe mode instructions #747
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
Open
devmotion
wants to merge
3
commits into
master
Choose a base branch
from
devmotion-patch-1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also necessary for it to work, I believe:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only if you don't have installed ForwardDiff yet. I (and the previous authors I suppose) assume that that's already case - given that this is the documentation of ForwardDiff, installation of ForwardDiff is the first thing you have to do if you want to follow or apply anything from the docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not enough to have ForwardDiff installed. It has to be specifically installed in this environment. Not just visible from a lower-level one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that's what I assumed. Does anyone actually install ForwardDiff in e.g. the global environment? I assumed everyone working with the docs would have ForwardDiff installed in their current environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do. But also, the obvious way to try out this thing is
] activate --temp
, so that you can compare to your other session & not mess anything up. (Especially since there's no way to reverse this change clearly described.)Why make instructions for which this fails? Why not make instructions which work when copy-pasted 100% of the time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly, and in that case everyone who wants to try something ForwardDiff-docs-related surely has installed ForwardDiff already in that temporary environment? That's at least my typical use case...
In any case, my intention was mostly to not clutter the docs with redundant information. We surely do not want to add
Pkg.add("ForwardDiff")
to every code block?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they made this environment 5 seconds ago, just before pasting in the presumably complete doc example. Which fails with a mysterious error, even though ForwardDiff can load just fine. You are really assuming everyone will be on your golden path here. And I am telling you experimentally that someone who knows a fair bit about these things was completely baffled by this not just working.
Right. Normally you type in
using ForwardDiff
, and it either just works, or prompts you to install. It "just works" even if ForwardDiff is not in this specific environment, it only has to be visible from it.