Forums

compiler bug with label

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

compiler bug with label

Postby oravard » Wed Apr 02, 2008 12:38 am

Hi,
I think there is a compiler bug. When I use this part of code :

Code: Select all
class SpecialLabel
   inherits Label
   def init
      base.init


There is a compiler error :

error: Cannot locate nested CLR type "System.Windows.Forms.Layout.LayoutUtils+MeasureTextCache" (simple name is "MeasureTextCache").
Compilation failed - 1 error, 0 warnings

Is it wright ?
oravard
 
Posts: 7

Re: compiler bug with label

Postby Charles » Wed Apr 02, 2008 12:49 am

Can you give more information?
-- the command line you're using to compile/run
-- the version of Cobra
-- the platform you're running on

Thanks.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: compiler bug with label

Postby oravard » Wed Apr 02, 2008 1:11 am

- cobra -r:System.Windows.Forms -r:System.Drawing mymodule.cobra
- cobra 0.7.4
- windows Vista, .NET
oravard
 
Posts: 7

Re: compiler bug with label

Postby Charles » Wed Apr 02, 2008 2:25 am

Works for me under the latest source version which has several fixes.

We're overdue for a release. When I finish up the "extend" feature this week, I'll cut a new release. In the mean time, try running out of source. It's pretty easy to build.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: compiler bug with label

Postby oravard » Wed Apr 02, 2008 2:34 am

Ok. Thanks.
oravard
 
Posts: 7


Return to Discussion

Who is online

Users browsing this forum: No registered users and 38 guests