Skip to content

Compiler tries to parse files that dont exist #211

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

Closed
thebirk opened this issue Apr 4, 2018 · 0 comments
Closed

Compiler tries to parse files that dont exist #211

thebirk opened this issue Apr 4, 2018 · 0 comments
Labels

Comments

@thebirk
Copy link
Contributor

thebirk commented Apr 4, 2018

If you try to include a file that doesn't exist or doesn't have a .odin extension the compiler asserts with the following error:

C:\Users\Bruker\Downloads\bughunt\c.odin(1:1) Failed to parse file: not-real-file.odin                                                                                  
        File cannot be found ('C:\Users\Bruker\Downloads\bughunt\not-real-file.odin')                                                                                   
C:\Users\Bruker\Dropbox\bin\odin\core\_preload.odin                                 
C:\Users\Bruker\Dropbox\bin\odin\core\_soft_numbers.odin                            
C:\Users\Bruker\Downloads\bughunt\c.odin                                            
C:\Users\Bruker\Dropbox\bin\odin\core\os.odin                                       
C:\Users\Bruker\Dropbox\bin\odin\core\raw.odin                                      
C:\Users\Bruker\Dropbox\bin\odin\core\utf8.odin                                     
C:\Users\Bruker\Dropbox\bin\odin\core\os\windows.odin                               
C:\Users\Bruker\Dropbox\bin\odin\core\os\osx.odin                                   
C:\Users\Bruker\Dropbox\bin\odin\core\os\linux.odin                                 
C:\Users\Bruker\Dropbox\bin\odin\core\os\essence.odin                               
C:\Users\Bruker\Dropbox\bin\odin\core\strings.odin                                  
C:\Users\Bruker\Dropbox\bin\odin\core\mem.odin                                      
C:\Users\Bruker\Dropbox\bin\odin\core\sys\windows.odin                              
C:\Users\Bruker\Downloads\bughunt\c.odin(1:1)                                       
c:\users\bruker\dropbox\bin\odin\src\checker.cpp(2149): Assert Failure: `0` Unable to find scope for file: C:\Users\Bruker\Downloads\bughunt\not-real-file.odin         

On some runs the assert does not fire.

Minimal repro:

import "not-real-file.odin"
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