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

Internal compiler error BCE0055 and incorrect warning when compiling a "Hello, World" with MonoGame #158

Open
dnewhall opened this issue Jan 28, 2017 · 0 comments

Comments

@dnewhall
Copy link

Here's a "Hello, world" for testing Boo with MonoGame, but I can't get it to compile due to an internal bug in the Boo compiler. There is also an unrelated incorrect warning message being shown.

Bug #1 :

Line 28 of Game.boo in the attached code simply says:
spriteBatch.Begin()

Compiling this with Program.boo gives this error:

Boo Compiler version 0.9.7.0 (CLR 4.0.30319.42000)
Source\Game.boo(28,26): BCE0055: Internal compiler error: Index was outside the
bounds of the array..
1 error(s).

This line and this line alone is the problem. Commenting it out allows the program to compile (but obviously not work).

The version of the Boo compiler I used was compiled from the master branch on January 27, 2017 with Mono 4.6.0 on Windows 7 32-bit. The version of the MonoGame Assemblies used was 3.5.

build.bat is a trivial build script to compile this example but the paths inside of it need to be changed to your location for the MonoGame Assemblies on your local computer.

Program.boo contains code to load the Assemblies at runtime from the program's directory, so the application program that there's a folder bug\Assemblies\Windows that is equivalent to the folder provided by the MonoGame package in C:\Program Files\MonoGame\v3.0\Assemblies\Windows\

Bug #2 :

Boo gives a warning that import Microsoft.Xna.Framework is never used, but removing it then makes the GameTime type not be available.

C:\Users\Derek\Documents\BooGame>build
Boo Compiler version 0.9.7.0 (CLR 4.0.30319.42000)
Source\Program.boo(6,8): BCW0016: WARNING: Namespace 'Microsoft.Xna.Framework' i
s never used.
1 warning(s).

C:\Users\Derek\Documents\BooGame>build
Boo Compiler version 0.9.7.0 (CLR 4.0.30319.42000)
Source\Game.boo(22,47): BCE0018: The name 'GameTime' does not denote a valid typ
e ('not found'). Did you mean 'Microsoft.Xna.Framework.GameTime'?
Source\Game.boo(25,45): BCE0018: The name 'GameTime' does not denote a valid typ
e ('not found'). Did you mean 'Microsoft.Xna.Framework.GameTime'?
2 error(s).

bug.zip

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

1 participant