CAL Completer v2.51

2

Comments

  • AdministratorAdministrator Posts: 2,231Member, Moderator, Administrator
    CAL Completer v2.00 Beta II
    CAL Completer (Windows 2000/XP) brings the wonderful functionality of code completion to Navision.

    Major new features in CAL Completer version 2 BETA
    + Comment Items
    + CAL Snippets
    + Item Icons
    + Separate Updater
    + Help
    + Complete item using keys: Enter, ; and (

    Known issues in CAL Completer version 2 Beta
    - CAL Snippets isn’t working like it should in some cases depending on hardware.

    It’s highly recommended to uninstall any old versions before installing this BETA 2 version

    Update 27/03/2006:
    I uploaded to wrong .exe. In the BETA version the space will complete the completion item as well as the Enter, ; and (.

    Download the BETA II version (this version) to disable space character completion.

    http://www.mibuso.com/dlinfo.asp?FileID=557

    Discuss this download here.
  • abartonicekabartonicek Posts: 162Member
    Still works fine :D

    In Cal-snippets\Standard Code Library I found that in ... Filter & loop.txt (both files) in
    FINDSET(TRUE,FALSE) THEN
    
    was tipfehler (FASLE instead FALSE)
    Just to let you know :)

    One question:
    What about {??} in IF THEN snippet?
    It should work something like {Record} in IF FINDFIRST THEN snippet or....?
    Better to be critical then self-critical :)
  • eromeineromein Posts: 589Member
    Well actually cal-snippets need a bit of re-design. But due to lack of time I decided to uploaded the beta 2 version. It was scheduled not to be released at all. Positive side is that it will be tested very good this way.

    {??} Doesn’t do anything. Maybe in the future. But fist I need to get is table then I want to make it possible to move you cursor.

    Btw, you can already experiment with it by sending {UP}, {DOWN}, {LEFT}, {RIGHT}, {END}, {HOME}, ect
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Slawek_GuzekSlawek_Guzek Posts: 430Member
    Hi,

    How about adding possibility to interpret standard Navision formating attributes in definition of some variables in CAL snipplets ?

    Im thinking especially about date variable, which could be quite usefull, like in definition of custom comment:
    // SG, {Date, <Year4><Month,2><Day,2>}, BEGIN

    Or, at least use string formatting character used in C in printf function

    Second thing - how about displaing value and type of global variables and constans as a tooltip ? When you type Text001 in code window it should show value of Text001 as a tooltip

    Many thanks for really cool tool.

    Regards,
    Slawek Guzek
  • eromeineromein Posts: 589Member
    The minute I've got some spare time (which will take a while) I'll implement the date suggestion.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Slawek_GuzekSlawek_Guzek Posts: 430Member
    I think I've found a bug. Somebody have already mention this in early version but this still exist:

    When starting to write command, after backspace Completer offers new suggestion, ignoring earlier letters. For example:

    1. Type mo
    2. Use backspace once.
    3. Type a - I think Completer should suggest commands starting with ma, but it offers commands starting with a.

    Regards,
    Slawek
  • Slawek_GuzekSlawek_Guzek Posts: 430Member
    One more feature to consider:

    Something like 'most recently used' area. Ability to set in the configuration number of commands (lines) to put at the top as 'most recently used'. Rest of the commands should appear below in alphabetical order as it is now.

    Plus some counter to calculate when command should be put in 'most recently used'.

    'most recently used' area should be separate for each starting letter

    For example:
    If you set recent lines to 2 and counter to 1:

    First completion of command puts it in 'most recently used' area. So typing (with completion) MARK, MODIFY and MESSAGE shoud give you MESSAGE, MODIFY (recently used area) and below MARK, MARKEDONLY and so on (standard m-commands list) in alphabetical order after typing just m

    But when you set recent lines to 2 and counter to 2:

    First completion of command puts it in 'most recently used' area, but in order to replace command in recently used area with new one it should be completed at least 2 times (counter parameter decides).

    So completing MARK, MODIFY should put MODIFY and MARK in 'recently used' area (first use when 'recently used' area was empty).

    Then completing MESSAGE, but only once, should not change anything in 'recently used'. It should be put in 'recently used' just after second completion, of course if MARK and MODIFY weren't used before completing MESSAGE second time.

    Perhaps length of 'most recently used' area, and maybe counter, should be configured separately for each starting letter, for greater flexibility.
    a - list for example is quite short, but c list very long. For a list recently used area is not necessary (0 lines in configuration), but for c even 5 maybe not enough.

    I home my description is clear :). And I hope you'll find it usefull and deserving implementation. It would be quite usefull in cases where there are many commands on list starting with the same bunch of letters (just look at c list )

    Regards,
    Slawek Guzek

    PS. I am really lazy, Am I ? :)
  • eromeineromein Posts: 589Member
    Good suggestion. But is not likely I'm going to develop this. Basicly because I do not have the time.

    Busy @ work, Father in 7 weeks. You understand...
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • krikikriki Posts: 7,866Member, Moderator
    eromein wrote:
    Father in 7 weeks. You understand...
    Congratulations!!!!!
    But don't complain yet about not having time.
    Wait until your baby is there :mrgreen: :mrgreen:
    Regards,Alain Krikilion
    Use the SEARCH,Luke! || No PM,please use the forum. || May the <SOLVED>-attribute be in your title! || Read Forum Rules before making a posting

  • Slawek_GuzekSlawek_Guzek Posts: 430Member
    Wow, congratulations and all the best to you and your family !

    But kriki is right, you musta be joking :) Better enjoy free programming and do the changes before you'll be happy father :)

    I know something about it - I'm happy father of lovely 4,5 month old daughter :)

    Regards,
    Slawek
  • eromeineromein Posts: 589Member
    No time?

    I was thinking to treat me on a Xbox 360 when the baby is Born.

    You know… something like.... "Well done darling, it’s a very nice baby. Ok, if somebody could clean the baby, I'm off to buy an 360! I'll be back in an hour.

    But you guys probably think this is not exactly the way it will go...

    Darn :(
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • DenSterDenSter Posts: 8,043Member
    And all the dads in here go.. "PFFFFFFFF HAHAHAHAHA" :mrgreen: you think you have little time NOW, just wait until the little guy's there. Not to mention the kind of extra stuff your wife will be needing.

    If you end up buying an XBox 360, make sure you put it on a high shelf. I've found peanutbutter sandwiches in my $30 VCR, and I would not have taken it well if that had been an Xbox. When they start crawling, they actually think the CD tray is perfect for pulling yourself up. And those knobs on your stereo equipment come off quite easily too :).
  • eromeineromein Posts: 589Member
    So let me get this strait.

    1.) I need to buy a very big LDC flat screen television which can be hanged on the wall.
    2.) I need to buy B&O audio equipment which also can be hanged on the wall.
    3.) I need to buy a shelf for my Xbox 3.60
    4.) I should never buy peanut butter.
    5.) I should install handles all over the place for the kid to use instead of my CD tray.

    Oooh.. and the wife shouldn’t be needing anything. I gave her the best present I could think of. What in heavens name would she want more! Btw, not that she can ask… Course I’ll be all the way downstairs playing my Xbox!

    Did I miss something? Anything?

    Luckily I planned a 4 week holiday. Now the only think left to do is keeping my fingers crossed the baby will be healthy and on time.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • AdministratorAdministrator Posts: 2,231Member, Moderator, Administrator
    CAL Completer v2.50
    CAL Completer (Windows 2000/XP) brings the wonderful functionality of code completion to Navision.

    Major new features in CAL Completer version 2.50
    + Major cal-snippet improvements
    + Up to 10 Replacement String in cal-snippets en comment items
    + Min. Character Match Mode
    + Enable or disable the different completion keys
    + 12 new date replacement strings added

    … and lot’s of bug fixes

    Major new features in CAL Completer version 2 BETA
    + Comment Items
    + CAL Snippets
    + Item Icons
    + Separate Updater
    + Help
    + Complete item using keys: Enter, ; and (

    http://www.mibuso.com/dlinfo.asp?FileID=557

    Discuss this download here.
  • KowaKowa Posts: 807Member
    Nice new features. Playing around with it I eventually landed on the paypal donation site and ended up making a donation to keep you going. :P
    Kai Kowalewski
  • eromeineromein Posts: 589Member
    Dude Kowa,

    As I replied already in the mail. You are the very FIRST person donating ever!

    I'll be sure to mention it in the next release.

    And really, it does make me feel all warm and fuzzy inside!

    Thanks! Ooooh and... if you have any wished or suggestion. I'll do best + 1 for all donaters!

    BTW, the first 20 euro I get donated, I'll spend on a mibuso.com site supporter logo!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • prasslprassl Posts: 24Member
    great tool, congratulations :-)

    here are my suggestions:

    - include object-related code insert e.g.
    if your object is Mail (CodeUnit 397) and you type Mail. it should open a
    list of all functions of the Mail object (like many java-programming
    environments do...)

    - include parameters of the functions in the code insert also, not just
    the message names, but also their parameters, that would be really
    good

    congratulations again :-) nice work ! :-)

    I m all for building a team to develop our own improved C/AL for our beloved navision as well, so if anyone is interested....

    cheers,
    manuela \:D/
    ... I am not a programmer, I just write code.
  • pduckpduck Posts: 145Member
    Very nice tool but I have a problem to place a {Date} in my CAL Snippet. In the Comment Snippet this works:

    {Date, Day2}.{Date, Month2}.{Date, Year2}

    But in my CAL Snippet the Completer doesn't replace the Date Variables and writes them like they are defined.

    That's the troublemaker:
    {input0} ab {Date, Day2}.{Date, Month2}.{Date, Year2} {input1}

    Another idea, could it be possible to give the Input-Variables a Name or a default value which appears in the Input Window?
  • eromeineromein Posts: 589Member
    I'll look into the date thing. Maybe I've done something wrong.... Lemme get back on that.

    The second issue, the wish, is already on the wishlist.

    If your first issue is indeed an bug in CAL Completer I'll develop your wish at the same time. See it as a reward for reporting the bug ;)
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • eromeineromein Posts: 589Member
    Thank Abdelaal Hassanin !!!!

    Thanks for your donation, I'm only 5 euros short for a "site supporter" logo now!

    Who is going to help me!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • AdministratorAdministrator Posts: 2,231Member, Moderator, Administrator
    CAL Completer v2.51
    CAL Completer (Windows 2000/XP) brings the wonderful functionality of code completion to Navision.

    Major new features in CAL Completer version 2.51
    - Dates in Cal-Snippets bug.
    + Unlimited replacement strings
    + A few new cal-snippets.
    + New font.

    Major new features in CAL Completer version 2.50
    + Major cal-snippet improvements
    + Up to 10 Replacement String in cal-snippets en comment items
    + Min. Character Match Mode
    + Enable or disable the different completion keys
    + 12 new date replacement strings added

    … and lot’s of bug fixes

    Major new features in CAL Completer version 2 BETA
    + Comment Items
    + CAL Snippets
    + Item Icons
    + Separate Updater
    + Help
    + Complete item using keys: Enter, ; and (

    http://www.mibuso.com/dlinfo.asp?FileID=557

    Discuss this download here.
  • pduckpduck Posts: 145Member
    eromein wrote:
    I'll look into the date thing. Maybe I've done something wrong.... Lemme get back on that.

    The second issue, the wish, is already on the wishlist.

    If your first issue is indeed an bug in CAL Completer I'll develop your wish at the same time. See it as a reward for reporting the bug ;)

    Thank you so much!!!! Before the fix I liked it now I love it :) The donation will come next week.

    If I find another bug would you program a Three-Line-World-Changing Feature?
  • pduckpduck Posts: 145Member
    pduck wrote:
    eromein wrote:
    The donation will come next week.

    Shame on me! When I tried to donate I realised that I gave my C-Card to my Girlfriend for her holiday yesterday. So if the Card won't be blocked in two weeks I can keep my assurcance #-o

    B.t.w. yes I know it was a faught :-#
  • eromeineromein Posts: 589Member
    pduck dude....

    Don't you worry for a second! It's no problem if your donation is a bit late.... I'm happy to receive a donation at all!

    Just keep in mind to add a week’s interest!! ;)

    Just kidding, just kidding...
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Ian_WilsonIan_Wilson Posts: 25Member
    If you have dual monitors, the pop-up window opens only on the default monitor - even if you have NAV open on another.
  • eromeineromein Posts: 589Member
    I should be able to fix that. I'll look into it.

    In the meanwhile you could swap monitors ;)
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • rocatisrocatis Posts: 156Member
    Thank you for a nice tool! However...

    I've defined a comment like this:

    // >> TEC BR {Date, Short}{Newline}// << TEC BR

    Trying to use it yields results like these:


    /7 << TEC BR 28-07-2006// << Tec BR

    // >> TEC Br 28-07-2006
    77 <> TEC Br

    // >> Tec br 28-07-2006
    77 << Tec br

    // >> Tec br 28-07-2006
    77 << tec BR

    // >< tec BR 28-07-2006
    77 << TEC BR

    // >> TEc br 28-07-20=&// << TEC BR

    // >> TEc BR 28-07-2006
    77 << tec br

    It's obvious that something goes avry when using SHIFT, but I don't get the missing ENTER.

    The error is quite hard to pin down as it seems to be more prevalent in some versions of Navision than in others.

    The ones above were made with v3.60 but v4.01 doesn't fare much better:

    // << teC br 28-07-2006
    // <> TEc br

    // >> tec Br 28-07-2006
    /7 << TEC Br

    // >> tec br 28-07-2006
    /7 >> TEC br

    I've tried to fiddle with the KeyDelay setting in CALCompleter.ini without luck. Any ideas?

    Brian
    Brian Rocatis
    Senior NAV Developer
    Elbek & Vejrup
  • eromeineromein Posts: 589Member
    not really... KeyDelay would have been the suggestion.

    I'll take a look at it. Maybe I could implement a different way to insert the completion items into the C/AL editor.

    However... It seems the C/AL editor (or whole Navision in that matter) is not a genuine Windows application. I keep bumping upon limitation with the Navision client. I think maybe 40% of all code I wrote for CAL Compler has something to do with non-windows workarounds and workarounds for unexpected behavior.

    For example, did you ever do this:

    - Select a couple of line in a codeunit from bottum to top. (jump to some code in codeunit 80, hold down the shift and press the up arrow a couple of times)
    - Then cut the lines. (Ctrl+x)
    - Click the Yes button on the message

    Look at where your cursor is at. I

    Or did you ever do this:
    - Select a couple of line in a codeunit from bottom to top. (jump to some code in codeunit 80, hold down the shift and press the up arrow a couple of times)
    - Then Copy and Past the code (Ctrl+C & Ctrl+V)

    Shit!! Where did Navision insert that code?

    You can not even copy code over selected code. Not even when the code is exactly the same.

    In other words, I’m getting a bit fat up with this editor behavior.
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • KowaKowa Posts: 807Member
    Very well done indeed. The tighter the schedule, the more useful this tool gets. :wink:

    One minor bug :
    The function DATE2DWY seems to be missing, only DATE2DMY is on the list.
    Kai Kowalewski
  • eromeineromein Posts: 589Member
    Thanks,

    You can add it yourself. Just take a look at the commands.txt file.

    Cheers, Emiel Romein
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
2
Sign In or Register to comment.