Skip to content
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

Env vars fix #3293

Merged
merged 2 commits into from
Jul 17, 2018
Merged

Env vars fix #3293

merged 2 commits into from
Jul 17, 2018

Conversation

lexarchik
Copy link
Contributor

fix #3290
plus expand env vars in env vars values to correctly process PATH like %SystemRoot% or %UserProfile%/something

else "")
else ""
with
| _ -> "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we print the exception message and the bad path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe always print something like "Error when searching <file> in <path>" and print exception message only in verbose mode?
Or print everything only in verbose?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd print that as a warning, otherwise people might not even be aware that they have something invalid in their PATH.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be confusing to see warn about some strange path after hit paket restore in random repository.
And in tryFindFile we dont know source of dirs parameter.
So i'm inclined to verbose-only trace.

@forki
Copy link
Member

forki commented Jul 17, 2018

thx

@forki forki merged commit edde814 into fsprojects:master Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception during restore
3 participants