Skip to content

Folder name build bug or error message fix #3114

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

Open
glennwiz opened this issue Jan 18, 2024 · 1 comment
Open

Folder name build bug or error message fix #3114

glennwiz opened this issue Jan 18, 2024 · 1 comment
Labels

Comments

@glennwiz
Copy link

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Operating System & Odin Version:
  • Please paste odin report output:
    Odin: dev-2024-01:ef05e085
    OS: Windows 11 Professional (version: 22H2), build 22621.3007
    CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    RAM: 16344 MiB

Expected Behavior

Please describe the behavior you are expecting.

Im expected that it wold compile a gnipahellir.odin.exe file when folder name is gnipahellir.odin, works fine when i use Gnipahellir.Odin uppercase.
And expected better error message, kinda hard to understand its the folder that brakes it.

Current Behavior

What is the current behavior?
it breaks with
Syntax Error: Failed to parse file: C:/dev/OdinFolderBug/gnipahellir; file permissions problem.
image

if i change the folder name to Gnipahellir.Odin it works fine
image
image

Failure Information (for bugs)

Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. cd dev
  2. mkdir gnipahellir.odin
  3. cd gnipahellir.odin
  4. touch master.odin
  5. vim master.odin | make minimal build content inside file
  6. wq
  7. odin run .

Failure Logs

Please include any relevant log snippets or files here.

@mustardfrog
Copy link

I am guessing the compiler think the .odin directory is a file, thus producing errors.

This is much more obvious on Linux because the error is literally syntax error.

hey_odin

@github-actions github-actions bot added the stale label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants