Recent V update concerning modules broke this one
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- backend
Research direction
Start by compiling a project that imports sdl.callbacks with V 0.5.1 on Windows, then inspect the errors in on.v and compare them with the module and include paths described in the issue. Check whether the same failure occurs with the reported SDL 3.4.8 setup. Done means identifying and reporting a reproducible cause for the compile errors and confirming whether the attempted workarounds change the result.
Written by the indexing model from the issue text.
Description
V version: 0.5.1 3ac2c46
OS: Win11 x64
SDL: 3.4.8.0
sdl.callbacks cannot compile in any project due to these errors in the on.v file:
I don't know what exactly was changed in V but plenty of things broke with a recent patch, for example now files in a "src" folder in a v module cannot be used.
I was not able to fix it myself. Here are a few things that I tried to do:
- Removing C. before the variable makes the error "undefined ident" instead
- Declaring the variables using __global (and enabling it using the flag "-enable-globals") shuts down the display of the error, but it still happens during compilation, removing the C. on top of that makes compilation simply hang forever when these errors would happen
- Using the complete paths in the #include, #postinclude and #preinclude does not change anything (the .h files do exist)
- Dominant language
- V
- Stars
- 106
- Forks
- 16
- Avg merge
- 7h 3m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vlang/sdl
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
bot-triaged module: correctness (silent) module: fft triage review
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 10 days
-
area: content refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
nplhse/collaborative-ivena-statistics#1530 ·
Maintainers usually reply within 1 day
-
bug done
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
neavo/LinguaGacha#1124 ·
Maintainers usually reply within 1 day
-
module/http Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ballerina-platform/ballerina-library#9868 ·
Maintainers usually reply within 1 day