Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 40

Thread: eclipse setup, tricks, etc

  1. #11
    Developer roippi's Avatar
    Join Date
    Aug 2010
    Posts
    2,663

    Default

    Decent "short" tutorial you've written, Roippi
    Originally Posted by Catch-22 View Post
    >.>

    Well, really the first post is the tutorial, and everything after that is tips/tricks... that's what I'll tell myself.

    Ctrl+Left/Right is a good one too, useful after you have pressed F3 to jump to a declaration, you can press Ctrl+Left to jump back. Maybe I should try Eclipse again...
    Cool, I'll try that. I use ctrl+Q to jump back to my last edit sometimes, that's a pretty useful one.

  2. #12
    Developer Grotfang's Avatar
    Join Date
    Jun 2009
    Location
    United Kingdom
    Posts
    588

    Default

    This is a really useful guide, roippi. I wish I had had something like this available when I started.

    Would you mind if I included parts of this in other projects I'm involved in? If that's okay, how would you like to be acknowledged?

  3. #13
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,650

    Default

    ctrl+T

    Open type. You know you want to open up UseItemRequest, you're tired of opening package explorer and browsing to it. There ya go.
    Originally Posted by roippi View Post
    Also ctrl+R to open "resource" (any file in the workspace) by name.
    Both ctrl+T and ctrl+R support wildcards (*, ?) and ctrl+T also some sort of fuzzy matching (for example, you can skip over most lowercase letters .. in mafia's workspace, RuLi will find RuntimeLibrary). Useful when you only know *part* of the type's name.

  4. #14
    Developer roippi's Avatar
    Join Date
    Aug 2010
    Posts
    2,663

    Default

    This is a really useful guide, roippi. I wish I had had something like this available when I started.

    Would you mind if I included parts of this in other projects I'm involved in? If that's okay, how would you like to be acknowledged?
    Originally Posted by Grotfang View Post
    Steal at will, I don't mind. You can mention my name if you like. You'll have to pull out the mafia-specific stuff

  5. #15
    Junior Member
    Join Date
    Aug 2009
    Posts
    22

    Default

    This is really helpful thanks Roippi

  6. #16

    Default

    The repository you use in your guide ( https://kolmafia.svn.sourceforge.net/svnroot/kolmafia ) seems to be stuck in February.

    My best guess as to what the repository should be is

    svn://svn.code.sf.net/p/kolmafia/code

    since that one seems to be current.

    Is that the correct one? (Or am I just entirely confused.)

  7. #17
    Developer roippi's Avatar
    Join Date
    Aug 2010
    Posts
    2,663

    Default

    Yes, the kolmafia project migrated to the "new" (read: buggy) sourceforge system back in February, which included migrating to a new svn url. I'll update the OP when I get a chance.

  8. #18

    Default

    Hey guys, KoLmafia needs an update to its code formatting rules. Namely, the option in the code formatting settings to enable block comment formatting should be disabled - this prevents Eclipse from horribly mangling block comments, which are used a lot in the KoLmafia source code.

  9. #19
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,831

    Default

    I wasn't aware that I'd finished writing the document describing our code formatting rules; that was intended to go into the "devdoc" directory, but it is not there.

    Perhaps Eclipse and NetBeans and such allow you to define formatting conventions which they will use for newly entered code. Again, I am not aware of where in our code tree we might have checked in such configuration.

    In any case, surely the IDEs don't reformat existing code to follow such configuration unless you explicitly tell it to do so, right? If you have it configured to automatically reformat a whole file when you make a change in the file and save it, or something like that, you need to disable that. If you want to submit a patch which changes an existing method or adds a new one, it is not acceptable for the rest of the file to get reformatted. Doing so is likely to have the patch be discarded unexamined, since it is way too much work to wade through irrelevant formatting changes in order to find what was really changed.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  10. #20
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    D.C. suburbs of Virginia, USA
    Posts
    3,666

    Default

    FWIW I use NetBeans for mafia and Intellij professionally. Both have an explicit option to reformat code according to some set of formatting rules and those rules are defined in configuration files. However both also have some editor rules such as replacing tabs with spaces, or not, that are not voluntary. If you edit the code in the IDE and then check it in then those rules are unconditionally applied. Granted those are less obtrusive than reformatting block comments but they are nevertheless not practically optional. One has to set them correctly for KoLmafia. The whole formatting thing was also complicated in Ye Olden Days because SVN would not deal with the various CR LF options automatically and the Windows based devs were constantly screwing things up for the Mac devs.

    All that said, I am not aware of a set of KoLmafia approved formatting rules for code that are implemented in such a way that an IDE user would have to import a file and thus be compliant. It would be wonderful if someone felt like taking that on. I'd even consider switching to Eclipse.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post
    There are 69 players more powerful than you.
    Originally Posted by Statistics Leaderboards

Similar Threads

  1. New Content - Implemented Manuel got some new tricks.
    By Erich in forum Bug Reports
    Replies: 38
    Last Post: 05-07-2013, 08:34 AM
  2. KoLmafia code formatting rules file for Eclipse request
    By wrldwzrd89 in forum Community Support
    Replies: 1
    Last Post: 09-14-2012, 06:17 PM
  3. 9102: Ignore Eclipse project-specific settings
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 02-24-2011, 08:02 AM
  4. Mood Setup?
    By tyilo in forum Scripting Discussion
    Replies: 5
    Last Post: 02-27-2008, 06:38 PM
  5. eclipse
    By bollwyvl in forum Scripting Discussion
    Replies: 4
    Last Post: 04-21-2006, 04:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •