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

feat(compiler)!: Require extension when including relative file paths #1842

Merged
merged 4 commits into from Mar 3, 2024

Conversation

alex-snezhko
Copy link
Member

Requires local included files to be specified with their file extension.

include "list"
include "list.gr" // error
include "./b.gr"
include "./b.whatever"
include "./b" // error if file is b.gr

Closes #1797

Copy link
Member

@peblair peblair left a comment

Choose a reason for hiding this comment

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

I think this looks good! One small request

compiler/src/typed/module_resolution.re Show resolved Hide resolved
Copy link
Member

@spotandjake spotandjake 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 to me

@ospencer
Copy link
Member

@alex-snezhko Can you resolve the conflicts here?

compiler/src/typed/module_resolution.re Outdated Show resolved Hide resolved
compiler/src/typed/module_resolution.re Outdated Show resolved Hide resolved
@phated
Copy link
Member

phated commented Mar 2, 2024

@alex-snezhko looks like the reason formatter needs to be run

@phated phated changed the title feat(compiler)!: Require extension for included local files feat(compiler)!: Require extension when including relative file paths Mar 2, 2024
@phated phated enabled auto-merge March 2, 2024 22:58
@phated phated added this pull request to the merge queue Mar 2, 2024
Merged via the queue into grain-lang:main with commit dde62d3 Mar 3, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Compiler: Require extensions for local include paths
5 participants