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

[BUG] Generate file doesn't work in workspace with disabled runtime #1989

Closed
Fusioon opened this issue Jun 5, 2024 · 1 comment
Closed

Comments

@Fusioon
Copy link
Contributor

Fusioon commented Jun 5, 2024

Setting workspace Runtime to Disabled on currenty active config/platform will result in Generate File option fail with following error

ERROR: Unable to comptime System.Compiler.Generator.InitUI<System.Compiler.NewClassGenerator>(System.String args)
  while compiling 'System.Compiler.NewClassGenerator'
  while specializing method 'System.Compiler.Generator.InitUI<System.Compiler.NewClassGenerator>(System.String args)'
  > Access violation in comptime System.Internal.Crash() at line 213:4 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Internal.bf
  > in comptime System.Internal.FatalError(System.String error, int stackOffset = 0) at line 231:4 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Internal.bf
  > in comptime System.Runtime.NotImplemented(System.String filePath = Compiler.CallerFilePath, int line = Compiler.CallerLineNum) at line 433:4 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Runtime.bf
  > in comptime System.Platform.BfpDirectory_SetCurrent(char8* path, System.Platform.BfpFileResult* outResult) at line 481:88 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Platform.bf
  > in comptime System.IO.Directory.SetCurrentDirectory(System.StringView path) at line 104:4 in c:\Program Files\BeefLang\BeefLibs\corlib\src\IO\Directory.bf
  > in comptime System.Compiler.Generator.HandleArgs(System.String args) at line 158:7 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Compiler.bf
  > in comptime System.Compiler.Generator.InitUI<System.Compiler.NewClassGenerator>(System.String args) at line 171:5 in c:\Program Files\BeefLang\BeefLibs\corlib\src\Compiler.bf

Tested with:

Beef IDE Version 0.43.5 (Nightly 06/04/2024) Build 677dc9e

@bfiete
Copy link
Collaborator

bfiete commented Jun 30, 2024

Fixed at 91ec99e

@bfiete bfiete closed this as completed Jun 30, 2024
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

2 participants