Install notes don't mention Java runtime dependency

Former Member
Former Member
The monkeyc compiler (and Eclipse) requires a Java runtime environment to be installed, but there is no mention of this in the Programmers Guide PDF or the README.txt. Worth adding a couple of lines of text + a link?
  • Former Member
    Former Member over 10 years ago
    The README.txt uses the .mb file extension for Money C source files, but the sample projects and Programmers Guide PDF uses the .mc extension.

    Also might be worth mentioning that you can add a device when running one of the samples from the command line. e.g.,

    > monkeydo sample.prg fr920xt
  • Former Member
    Former Member over 10 years ago
    Other issues with the Programmers Guide PDF:

    It uses sexed quotes in some of the code examples, so they won't compile if pasted. Namely: p.17, 18, 21, 23, 30 & 49.

    The Connect IQ Eclipse plugin URL is split over 2 lines, so when pasted into Eclipse it is truncated and doesn't work. i.e.,
    Use add button to add a new update site: http://developer.garmin.com/downloads/connect-
    iq/eclipse/
  • Former Member
    Former Member over 10 years ago
    Another issue is the Menu XML example on p.44:
    <menu name="MainMenu">

    is missing an id="something", so gives the following compile error:
    ERROR:Rez:9: extraneous input 'extends' expecting Id
  • Former Member
    Former Member over 10 years ago
    Another issue is the example code on p.48:
    Position.enableLocationEvents(
    Position.GPS_CONTINUOUS,
    method( : onPosition));


    has the wrong constant, should be LOCATION_CONTINUOUS instead of GPS_CONTINUOUS
  • Former Member
    Former Member over 10 years ago
    On p.23 of the Programmers Guide PDF it says dictionaries can be used like:

    var x = new {}; // Empty dictionary

    but this gives the compiler error "no viable alternative at input 'new{'". It seems that dictionaries can't use the 'new' keyword ?
  • Page 56 on the PDF has :
    return info.calories / 150; // Calories in average bottle of beer

    Come on! There is no way any bottle of beer has only 150 calories! ;)

    Ian
  • Former Member
    Former Member over 10 years ago
    In the API docs for Graphics :: Dc several functions specify the coordinates as "location of upper corner" which isn't clear. It would be better to say "location of top left corner".

    drawRectangle(), drawRoundedRectangle(), fillRectangle(), fillRoundedRectangle()

    However drawText() isn't consistent - it uses bottom left/center/right as the origin point, depending on which TEXT_JUSTIFY constants is used. The documentation should mention this.