-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[crystal-lang] Various fixes for Crystal client #21011
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
Conversation
… template 1. `class << self` doesn't exist in Crystal, you must prefix class methods with `self.` 2. use double quotes for String litterals (simple quotes are for Char litterals) 3. global `private` keyword doesn't exist in Crystal, you must prefix private methods with `private` 4. you must specify types when using `each_with_object({})`
…not available in Crystal std lib)
thanks for the PR cc @cyangle (2021/01) |
please follow step 3 to update the samples (if you're using windows, you may need to use WSL to run the command) |
in the description, can you please list out the bug fixes, enhancements in point form? |
i got errors running the tests locally (while these tests are running fine in the master)
does it work for you locally with your own tests? |
you need to run |
I did (it's run as part of pom.xml) |
--without-development Does not install development dependencies. |
ah ok can you please remove that line in the pom as part of this PR? |
ran the tests again and most passed except the following:
i think you will need to update the tests accordingly after switching to spectator |
It's already fixed :) run a |
all tests passed
Thanks for the contribution 👍 |
Thank you! |
Hi there!
described_class
is not available in Crystal std lib)rescue
in abegin
PR checklist
Commit all changed files.
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*
.IMPORTANT: Do NOT purge/delete any folders/files (e.g. tests) when regenerating the samples as manually written tests may be removed.
master
(upcoming7.x.0
minor release - breaking changes with fallbacks),8.0.x
(breaking changes without fallbacks)