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

Use withFramework instead of legacy API #2397

Merged

Conversation

wallymathieu
Copy link
Member

@wallymathieu wallymathieu commented Sep 24, 2019

Description

Use CreateProcess API in order to be able to use withFramework to fix behavior on *nix systems.

Added a String.splitLines in order to split error string into lines.

TODO

Feel free to open the PR and ask for help

  • Does TimeSpan.MaxValue need to be passed along to create process?

  • unit or integration test exists (or short reasoning why it doesn't make sense)

    Note: Consider using the CreateProcess API which can be tested more easily, see https://github.com/fsharp/FAKE/pull/2131/files#diff-4fb4a77e110fbbe8210205dfe022389b for an example (the changes in the DotNet.Testing.NUnit module)

  • boy scout rule: "leave the code behind in a better state than you found it" (fix warnings, obsolete members or code-style in the places you worked in)

  • Fake 5 API guideline is honored

@wallymathieu
Copy link
Member Author

Does this look OK @matthid ?

Copy link
Member

@matthid matthid left a comment

Choose a reason for hiding this comment

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

Generally, the change is OK. I think instead of "fixing" the new public API an alternative would be to "inline" the function as private function into Fake.DotNet.Fsc if you don't want to go down the other way

src/app/Fake.Core.String/String.fs Outdated Show resolved Hide resolved
@matthid
Copy link
Member

matthid commented Oct 7, 2019

Any interest in adding a test for the change? (it will take a bit for me to get everything green again anyway)

@matthid
Copy link
Member

matthid commented Oct 8, 2019

Please also merge release/next in order to get a green build

@wallymathieu
Copy link
Member Author

I'll try to find time to add some tests

@matthid matthid merged commit 3783192 into fsprojects:release/next Oct 10, 2019
@matthid matthid mentioned this pull request Oct 12, 2019
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.

Fsc.compileExternal documentation suggests possible to use with exe
2 participants