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

Failed to load project 'corlib' #13

Closed
pedromsilvapt opened this issue Jan 10, 2020 · 7 comments
Closed

Failed to load project 'corlib' #13

pedromsilvapt opened this issue Jan 10, 2020 · 7 comments

Comments

@pedromsilvapt
Copy link

Just installed the Beef IDE and created one of the samples, but get the following error message:

ERROR: Failed to load project 'corlib' from 'C:\Utilizadores\Pedro Silva\AppData\Local\BeefLang\BeefLibs\corlib\BeefProj.toml'

The correct folder name would be (without the space in the username PedroSilva):

C:\Utilizadores\PedroSilva\AppData\Local\BeefLang\BeefLibs\corlib\BeefProj.toml
@NewCompte
Copy link

NewCompte commented Jan 11, 2020

I have the same problem but I think it's caused by the localization of the C:\Users\ folder. It shows as C:\Utilisateurs\ on my (French) computer but is really C:\Users\ under the hood. The Beef IDE is looking in C:\Utilisateurs\ when it should be looking in C:\Users.

My username doesn't have any whitespace.

@NewCompte
Copy link

I'm wondering if adding the flag KF_FLAG_SIMPLE_IDLIST in https://github.com/beefytech/Beef/blob/master/BeefySysLib/platform/win/Platform.cpp#L2571 would solve the problem.

@pedromsilvapt
Copy link
Author

I haven't looked at Beef's source code, but I wonder if it would be a good idea to set a custom environment variable to point to that path, either as a short term fix or as a long term one, if people wanted to use a different corlib in the future.

@NewCompte
Copy link

e2799b8 is the fix I suggested. When a new binary gets released I will be able to test it.

@lealcy
Copy link

lealcy commented Apr 25, 2020

Just installed the IDE on Windows 10. It gives some errors at the end of theiInstallation process, ignored that. Opened the sample SpaceGame project, hit Debug and got these errors:

IDE Started. Version 0.42.2 built 4/17/2020 at 12:30 PM.
Workspace closed.
�0|��Created new workspace in 'C:\Usuários\lealcy\AppData\Local\BeefLang\Samples\SpaceGame'�
Use 'File\Save All' to commit to disk.
ERROR: Failed to load project 'corlib' from 'C:\Usuários\lealcy\AppData\Local\BeefLang\BeefLibs\corlib\BeefProj.toml'
Starting target without compiling...
ERROR: Unable to locate working directory 'C:\Usuários\lealcy\AppData\Local\BeefLang\Samples\SpaceGame'
Failed to start debugger

It seens like the compiler is having some trouble with localized versions of Windows. Windows 10 don't localize system folders to avoid this kind of issues, but the compiler is trying to localize anyway.

@merijndk
Copy link

merijndk commented May 3, 2020

Same problem over here, should be looking in 'C:\Users\merij' but trys 'C:\Gebruikers\Merijn De Klerk'? Any quick fix for now?

@bfiete
Copy link
Collaborator

bfiete commented May 3, 2020

Version 0.42.3?

@bfiete bfiete closed this as completed May 31, 2020
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

No branches or pull requests

5 participants