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

Place 'built-in' Slice files at the front of the 'references' list. #55

Merged

Conversation

InsertCreativityHere
Copy link
Member

Now that slicec parses files in the order you provide them (see icerpc/slicec#694)... this PR fixes #49.

Previously, slicec parsed files in a non-deterministic order, making it impossible to control which files get parsed first.
Now that this is no longer the case, this PR changes our logic so that we always parse the built-in-Slice-files first.

This way, if a user does have a conflict with these Slice definitions, the redefinition error will appear in their files.
(slicec will first parse the built-in-files, and unless we really screwed up, there will be no redefinitions in them)

Copy link
Contributor

@ReeceHumphreys ReeceHumphreys left a comment

Choose a reason for hiding this comment

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

Looks good!

@InsertCreativityHere InsertCreativityHere merged commit 7c1fecd into zeroc-ice:main Jul 22, 2024
7 checks passed
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.

Avoid Reporting Errors for Built-in Slice Files?
3 participants