8000 suggest no-config by ptarjan · Pull Request #994 · sorbet/sorbet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

suggest no-config #994

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

Merged
merged 1 commit into from
Jun 21, 2019
Merged

suggest no-config #994

merged 1 commit into from
Jun 21, 2019

Conversation

ptarjan
Copy link
Contributor
@ptarjan ptarjan commented Jun 21, 2019

Motivation

Test plan

See included automated tests.

@ptarjan ptarjan requested review from jez and a team June 21, 2019 21:50
@ghost ghost removed their request for review June 21, 2019 21:50
@@ -114,7 +114,7 @@ def write_constants
)
File.write(SOURCE_CONSTANTS, io.read)
io.close
raise "Your source can't be read by Sorbet.\nYou can try `rm sorbet/config; find . -type f | xargs -L 1 -t srb tc --error-white-list 1000` and hopefully the last file it is processing before it dies is the culprit.\nIf not, maybe the errors in this file will help: #{SOURCE_CONSTANTS_ERR}" if File.read(SOURCE_CONSTANTS).empty?
raise "Your source can't be read by Sorbet.\nYou can try `find . -type f | xargs -L 1 -t srb tc --no-config --error-white-list 1000` and hopefully the last file it is processing before it dies is the culprit.\nIf not, maybe the errors in this file will help: #{SOURCE_CONSTANTS_ERR}" if File.read(SOURCE_CONSTANTS).empty?

puts "Printing #{TMP_RBI}'s symbol table into #{RBI_CONSTANTS}"
# Change dir to deal with you having a sorbet/config in your cwd
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ptarjan What do you think about taking @XrXr's suggestion about removing this chdir and adding the --no-config flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, PRs welcome!

@jez jez mentioned this pull request Jun 21, 2019
@ptarjan ptarjan merged commit 63ce441 into master Jun 21, 2019
@ptarjan ptarjan deleted the pt-noconfig branch June 21, 2019 22:22
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.

3 participants
0