You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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\
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).
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
The text was updated successfully, but these errors were encountered: