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

Migrate old named application syntax #2876

Merged
merged 32 commits into from
Jul 12, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Jul 8, 2024

This pr migrates the old named application syntax to the new one. In order to migrate a juvix file to the new syntax it suffices to run the formatter.
After the next release, we should completely remove the support for the old syntax.

Other changes

I've improved Scope negative tests. Previously, when a negative test failed, you could only see the title of the test and the message "Incorrect Error", as well as the Haskell file and line where the test is defined.
This is extremely incovenient because you have to go to the haskell test file, go to the line where the error is defined, look at the name of the file and then visit that file. Moreover, you need to manually run the scoper on that file to see the error that was returned.
I've fixed that and it now shows all relevant information. Example:
image
I've implemented this only using the Generic instance for the ScoperError type, so doing something similar for the rest of negative tests should be straightforward.

@janmasrovira janmasrovira self-assigned this Jul 8, 2024
@janmasrovira janmasrovira linked an issue Jul 8, 2024 that may be closed by this pull request
@janmasrovira janmasrovira force-pushed the 2668-remove-old-named-application-syntax branch 5 times, most recently from d5c3775 to 9615266 Compare July 10, 2024 16:17
@janmasrovira janmasrovira force-pushed the 2668-remove-old-named-application-syntax branch from a42c127 to c24d1df Compare July 10, 2024 16:24
@janmasrovira janmasrovira force-pushed the 2668-remove-old-named-application-syntax branch from 82f7175 to 54a7708 Compare July 10, 2024 16:52
@janmasrovira janmasrovira changed the title Remove old named application syntax Migrate old named application syntax Jul 10, 2024
@janmasrovira janmasrovira force-pushed the 2668-remove-old-named-application-syntax branch from 6dbe5c9 to 125fdcc Compare July 11, 2024 07:56
@janmasrovira janmasrovira force-pushed the 2668-remove-old-named-application-syntax branch from 125fdcc to 9f8fe1f Compare July 11, 2024 07:57
@janmasrovira janmasrovira marked this pull request as ready for review July 11, 2024 17:07
@janmasrovira janmasrovira merged commit 3736ed1 into main Jul 12, 2024
4 checks passed
@janmasrovira janmasrovira deleted the 2668-remove-old-named-application-syntax branch July 12, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate old named application syntax
2 participants