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

Strip directives by commenting out rather than omitting #85

Merged

Conversation

andersforsgren
Copy link
Contributor

This fixes issue #84 by simply keeping the directive lines in the script source, prefixed with "//", making roslyn Diagnostics point to correct locations.

To get green tests I also did the following small changes in the tests file:

  • Script constant line endings (Unsure if it's my git config causing problems): the test splits by Environment.NewLine, but it's not clear whether the source files will always have newlines that are Environment.NewLine (windows CRLF in my case). A .gitattributes file could maybe help here, but my workaround was simply to split on \n and strip trailing \r (meaning LF and CRLF both work in the tests).

  • Globalization: the tests assume the system, decimal separator is a dot, failing on e.g. French and Swedish locales where the floating point format is "42,00". Added CultureInfo.InvariantCulture.

@giuliov
Copy link
Member

giuliov commented Dec 10, 2019

Have some busy days ahead and need a deeper look at merge. Please be patient.

@giuliov giuliov merged commit 7f1adf6 into tfsaggregator:master Dec 19, 2019
BobSilent added a commit to BobSilent/aggregator-cli that referenced this pull request Dec 20, 2019
BobSilent added a commit to BobSilent/aggregator-cli that referenced this pull request Dec 20, 2019
@andersforsgren andersforsgren deleted the correct-diagnostic-locations branch April 27, 2020 13:38
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.

2 participants