Tag Archives: Eclipse plugin

Eclipse, SSH and PuTTY

Yesterday was a great day for me: been accepted as a commiter to AspectWerkz project (thanks again Alex and Jonas, you are just great! – I will write more about this some other time).
And now the short story: I got to set up my environment to access CVS using SSH with keys. I think every developer has successfully done this once – this is why I’ve been a little pissed off. I have generated the keys using ssh-keygen and than another pair with PuTTY. By looking at them I have noticed that they are very differnt. Why this?
But let’s continue. Finally the PuTTY generated public key was placed on the server and now the long series of tries begun: ssh client (from cygwin) was refusing to connect. Turning verbose mode on (you place up to 3 -v options in the command line) I have found out that indeed the private key was not recognized. I have gone back to using PuTTY and I have successfully logged in.
Next step would be having WinCVS and Eclipse connected. In order to shorten the story, I made WinCVS work with Pageant and ssh protocol (i didn’t know about it, and I don’t think this is correct – as I should use ext or extssh protocol). With Eclipse, I have successfully connected using plink and ext protocol but not with Eclipse SSH support and extssh protocol (probably because of the keys incompatibility, it was failing to connect with an unpleasant/non-explicative message: Auth fail).

I would like to find out what I was doing wrong and how I can do the following:

  • make WinCVS work with ext or extssh protocol (probably using plink)
  • make Eclipse extssh connection work (so not using plink)

A very nice solution for CVS is also TortoiseCVS (thanks Alex for the suggestion. It works nice with pageant).

Update: Euxx has posted more hints on Eclipse and CVS usage.

Advertisement

3 Comments

Filed under Uncategorized

Eclipse trick: Custom getter-setter [UPDATED]

The trick I have found for custom getters/setters in Eclipse seemed very nice.
I would like to add more on this: the prefix and suffix accepts a comma separated list of strings that will be ignored by the generator. Wow … very very neat.

Leave a comment

Filed under Uncategorized

Eclipse trick: Custom getter-setter

I don’t want to challenge R.J. but I feel this trick is quite interesting.
During the last weeks I have found quite annoying to use the conventions of the projects I am contributing to, because they impose the usage of m_ and s_ notations and for a long time I have considered that this is a killer for the getter/setter generation in Eclipse.
But no, it is not: you can configure Eclipse to consider some prefixes and suffixes and these will be removed from the generated getters and setters.
Step by step:
– Window -> Preferences -> Java -> Code Style
– Variable type: Fields and add the m_ prefix
– Variable type: Static fields and add the s_ prefix (if you really use getters/setters for static fields [blink/].
Congrats again to the guys developing Eclipse!

1 Comment

Filed under Uncategorized

Error recovery parsing

The last weeks I have spent some time working (in fact, to be realistic, I was just scratching some problems) on the code folding plugin Coffee-Bytes for Eclipse. (I start loving the code folding idea a long time ago, since the first usage of JEdit – if I remember well, and for a long time I was wondering why so many editors do not use this feature. But about this maybe other time).
The current investigations are for an error recovering parser. What I mean by this? A parser that is able to continue parsing (and maybe even return the broken nodes skeletons) after a failure (an unrecognized structure, a structure not according to the grammar).
I have some backgrounds on writting parsers (using JavaCC and ANTLR), but till now I have written only parsers that abort the operation on the first error. Moreover, this time I have to rely the parsing on Eclipse support. This job seems pretty interesting, but as you probably know all the documentation I have is the javadocs. So I would like to hear from you any ideas how such a parsing must work.

1 Comment

Filed under Uncategorized

My beloved Eclipse 3.0M9 plugins

I saw that there is some kind of trendy movement to publish the piece of software you like best and use on daily basis, so here there are the Eclipse plugins I use (in fact I’m writing them here to have the links to access them directly 🙂 ). – AspectJ and AJDT: I am a newbie in the aop but these tools help me a lot, and from their community I already learn very valuable ideas – SQLExplorer (former known as JFaceDbc 2.2.1) branched from original JFaceDbc (which got now to version 3.x) – XMLBuddy: no comment (the best in XML). I saw also but this one is not free [sigh/] – ImplementorsJava2HTML: i use it mainly for code reviewing in conjunction with Jupiter – Jagzilla: the plugin I have just patched (now is running really smooth – there can be done more improvement, so I hope I’ll have some more hours to put into it) – Profiler: use it from time to time (still I haven’t got the opportunity to test it under 3.0M9) – Jupiter: the best tool for code reviewing (I patched the last available version to work with 3.0M9, and from time to time I put some little time on fixing bugs) – Eclipse Wiki: I like very much the idea of Wiki, and a personal one is the best to keep my thoughts all together – CodeSugar: old buddy CodeSugar that gives you a nice and clean equals, hashCode, and some other methods implementation. – Colorer-take5 library a little more color in your Eclipse [smile/] – AT-Project: just got broken on my installation. Hope it will be back soon, as I put inside it a lot of my and my team stuff. If you have another you love please let me know.

Leave a comment

Filed under Uncategorized