-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Extracted record accessor have an extra .
#34
Comments
@ceddlyburge when you have time to check this one can you have a look? |
This happens at this line of code, so I think it must be a problem with elm-syntax.
I'll create an issue / check if it has been fixed. I think there is a new version either out now or coming soon as well, so we might want to wait for that .. |
I think this bug was fixed in this commit: |
@jiegillet : can you add this to your currently open pull request and see if it works? |
First of all: nice, this version solves the issue! Second: OMG, this lead me to find a huge issue! @mpizenberg @ceddlyburge In my PR, I changed the code to group merge the tests and the code snippets. However, whenever there are duplicate names, the
What do you think? We can't merge my PR before we fix that. |
Oh damn, I remember we discussed with @ceddlyburge about the fact that we didn't need the This also means that when there are task groups we will have a leading number in the description like |
I checked quickly: There are some duplicate names in:
No issues with in concept exercises. Not too hard to fix by hand quickly if we need to. |
We could also trim the names after we merge the files if we want. |
We could, though better have the names being guaranteed unique even for exercism |
This means I'll need another version of elm-test-rs. There are ongoing things with elm-test-rs, so I have to check and it might take me a week. I suppose we are not in any hurry here and can wait a week. |
Hum maybe this can go faster. I'll let you guys know. |
I think waiting a week is ok ... |
Hum, all tests are already required to have unique names. Otherwise the
test runner crashes
…On Tue, Apr 5, 2022, 08:32 Jie ***@***.***> wrote:
First of all: nice, this version solves the issue!
Second: OMG, this lead me to find a huge issue! @mpizenberg
<https://github.com/mpizenberg> @ceddlyburge
<https://github.com/ceddlyburge>
In my PR, I changed the code to group merge the tests and the code
snippets. However, whenever there are duplicate names, the jq script
merges those. robot-simulator has 20 tests, but the final result only has
4 because most of the tests are named "bearing" or "coordinates".
This can't be fixed by a better jq script since there is no way to know
which test goes with which snippet. I can think of 2 things to do:
1. Require all tests to have unique names in the Elm repo
2. Change both elm-test-rs and extract-test-code so that the name
becomes "description 1 > Description 2 > ... > Name" or something like
that. These should be unique too of course.
What do you think? We can't merge my PR before we fix that.
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWFOCKNY5C6BXLPVVH2NWDVDPNAZANCNFSM5RW54KWA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Here is an snippet of the
test_code.json
running onrobot-simulator
(but I see this everywhere)For some reason there is an extra dot in
..coordinates
. No idea where it's from.The text was updated successfully, but these errors were encountered: