Compiler checks wrong output path when project folder name ends in .odin
#3473
Labels
replicated
We were able to replicate the bug.
.odin
#3473
Context
Expected Behavior
When running
odin build .
, I expect the resulting executable to be created inside the current project folder without the compiler unnecessarily concerning itself with the parent folder.Current Behavior
When the project folders name contains a dot and the parent folder contains a directory with the same basename (i.e. without the extension) as the resulting executable, the compiler will complain about the name conflict.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
The compiler thinks the
Projects/test
folder collides with the output file even if (once that folder is moved away) the resulting executable is placed inProjects/test.odiin/test.odiin
as expected, i.e. different folder and file names. This still works ifProjects/test
is not actually a directory at all.A different output path specified using
-out
(as suggested by the error message) is completely ignored by this check, too.As an added bonus the versions later than 2024-03 do not even print any errors and just fail silently:
The text was updated successfully, but these errors were encountered: