-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
Print errors that arise when parsing the manifest #1125
Conversation
@kwridan while debugging this issue I noticed that when |
Codecov Report
@@ Coverage Diff @@
## master #1125 +/- ##
==========================================
+ Coverage 77.11% 77.24% +0.13%
==========================================
Files 270 269 -1
Lines 9429 9484 +55
==========================================
+ Hits 7271 7326 +55
Misses 2158 2158
Continue to review full report at Codecov.
|
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.
thanks for looking into this @pepibumur
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 ran this locally and it appears the issue @kwridan found is still present:
~/Development/Tuist/fixtures/ios_app_with_tests [print-errors !?] $ swift run tuist generate
/Users/oliver/Development/Tuist/fixtures/ios_app_with_tests/Project.swift:14:91: error: expected ',' separator
"CODE_SIGNING_REQUIRED": "NO"])),
Unexpected output trying to parse the manifest at path /Users/oliver/Development/Tuist/fixtures/ios_app_with_tests/Project.swift
~/Development/Tuist/fixtures/ios_app_with_tests [print-errors !?] $ swift run tuist generate
/Users/oliver/Development/Tuist/fixtures/ios_app_with_tests/Project.swift:14
Unexpected output trying to parse the manifest at path /Users/oliver/Development/Tuist/fixtures/ios_app_with_tests/Project.swift
Notice the second run has trimmed the error
e8a50cf
to
2433250
Compare
@ollieatkinson would you mind trying again with the latest commits? I can't reproduce the issue anymore. |
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 was able to run this several times and the output was consistent 👍
I added an acceptance test to detect regressions here. |
Fixes #1120
Short description 📝
This PR fixes the issue reported by @kwridan here. I changed the logic in the
ManifestLoader
class to use the new observable APIs and print all the events that are sent through the standard error.Moreover, I changed the way
tuistenv
passes the environment variable by setting it to the environment dictionary instead (look at the CommandRunner.swift) class.