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

Fix importing from "../../" #526

Merged
merged 21 commits into from
Dec 8, 2024
Merged

Fix importing from "../../" #526

merged 21 commits into from
Dec 8, 2024

Conversation

Akuli
Copy link
Owner

@Akuli Akuli commented Dec 8, 2024

When refactoring AoC files in #522, I ran into a weird error:

akuli@akuli-desktop:~/jou/examples/aoc2024/day04$ jou part1.jou
compiler error in file "part1.jou", line 1: cannot import from "aoc2023/grid.jou": No such file or directory

The first line of part1.jou was:

import "../../aoc2023/grid.jou"

This file exists, in the directory ../../aoc2023 (that is, ~/jou/examples/aoc2023), but the Jou compiler was ignoring the ../../ prefix entirely. This PR fixes that.

@Akuli Akuli merged commit 2ba2fdd into main Dec 8, 2024
23 checks passed
@Akuli Akuli deleted the path-fix branch December 8, 2024 21:10
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.

1 participant