Developer's Quickstart guide

For discussions about the source code and how to get involved in the development of muCommander.

Postby maxence » Sun Sep 30, 2007 1:31 pm

samopal> many thanks for the link to the article and for writing it in the first place. I'm no Slovak speaker but it looks good! :)

kozmoz> your question completely slipped through my attention. I'm also using the awesome IntelliJ and I have no issue connecting to muCommander CVS. I'm currently using 7.0M1b but also didn't have any issue with 6.0.

That being said, I remember running into some issues previsouly with the internal SSH implementation which I then disabled.

So right now in the muCommander CVS Root properties, I have the Use internal ssh implementation checkbox unchecked, and the Ext Protocol Settings section has the Path to external rsh textfield set to ssh and the other two textfields are empty.

You may have either solved your problem already or given up entirely. In the latter case, I hope this will help :)

Cheers,
Maxence
User avatar
maxence
Site Admin
 
Posts: 433
Joined: Wed Aug 21, 2002 8:18 pm

Postby hritcu » Sun Sep 30, 2007 1:43 pm

kozmoz wrote:I can provide you with english translation if you are interested

I'm curious :)
hritcu
 
Posts: 111
Joined: Wed Nov 29, 2006 10:33 pm
Location: Saarbrucken, Germany

Postby samopal » Sun Sep 30, 2007 5:39 pm

english translation>

caption to picture -
File manager muCommander is just reviewing file content in text mode.

text -
It is fresh and ambitious project. Though its current version (v0.8 beta3) is a proof that it is under development. It is being developed in Java programming language and thus is aviable to many OS platforms. On project webpage you can find its 'webstart' edition, which is capable to start directly from web browser. This is surely smat step, because it will help users to try it without downloading and installing it on hard drive. Application is fully portable and regarding its early development stage it sounds very promising and we are sure we will be hearing about it also in future. Worth notice is its localization to many languages including Slovak.

hmm, that's not very smooth translation ... but I hope you've got the point :wink:

edit> as I said, this .pdf is freely aviable now, so feel free to do with it whatever you want
samopal
 
Posts: 16
Joined: Mon Jul 30, 2007 2:39 am
Location: Vancouver, BC

Postby igor » Sat Oct 06, 2007 3:58 pm

maxence wrote:That being said, I remember running into some issues previsouly with the internal SSH implementation which I then disabled.

So right now in the muCommander CVS Root properties, I have the Use internal ssh implementation checkbox unchecked, and the Ext Protocol Settings section has the Path to external rsh textfield set to ssh and the other two textfields are empty.

maxence, does it mean that you have to enter password through terminal? I tried to checkout with IDEA 7.0M2 (on Linux) and password request (Password:) was displayed on terminal that I have used to start IDEA. I don't think that it was acceptable for you, so most likely I'm doing something wrong... Have I missed method for saving password somewhere?
igor
 
Posts: 4
Joined: Sat Oct 06, 2007 3:14 pm
Location: Ukraine

Postby maxence » Tue Oct 09, 2007 9:31 am

maxence, does it mean that you have to enter password through terminal? I tried to checkout with IDEA 7.0M2 (on Linux) and password request (Password:) was displayed on terminal that I have used to start IDEA. I don't think that it was acceptable for you, so most likely I'm doing something wrong... Have I missed method for saving password somewhere?


Igor: I forgot something important: my setup is actually very different from the anonymous one since I have password-less SSH login on cvs.mucommander.com (I have shell access to the box). I don't have to enter any password, that is why the external 'ssh' command works.
So I guess you don't have a choice but to use IntelliJ's internal SSH implementation, sorry for the confusion.
Have you managed to get it working since?
User avatar
maxence
Site Admin
 
Posts: 433
Joined: Wed Aug 21, 2002 8:18 pm

Postby igor » Tue Oct 09, 2007 10:19 am

maxence wrote:Have you managed to get it working since?

No, for now it's not working with internal SSH at all (have you succeeded in making it work on your configuration?) :( I will try again when back from work, I don't have IDEA here.
igor
 
Posts: 4
Joined: Sat Oct 06, 2007 3:14 pm
Location: Ukraine

Postby alejandroscandroli » Tue Oct 09, 2007 11:20 am

I'm using IntelliJ too. Internal SSH doesn't work for me. I'm using external ssh and since I'm using ubuntu (7.04) the password request is displayed in a separate window dialog. So if your linux doesn't have this functionality it makes sense to ask for the password on the terminal.

BTW, The dialog asking for the passwords shows up so often that it's annoying, I couldn't figure out how to setup a ssh-agent. Sometimes it shows up so often that I have to turn off the version control management in Idea.
alejandroscandroli
 
Posts: 26
Joined: Sat Feb 25, 2006 8:54 pm

Postby igor » Tue Oct 09, 2007 2:08 pm

alejandroscandroli wrote:So if your linux doesn't have this functionality it makes sense to ask for the password on the terminal.

I'm using Fedora Core 7. I think password is being asked by external ssh tool (does anybody have other thoughts?) so I searched for ssh options/configuration that could bind password once for all access attempts. No luck for now, and most disappointing that I'm not sure this is ssh request. May be we could wrap ssh somehow to intercept and automatically answer such requests, but this looks like a dirty hack thoughts instead of clean solution :)

BTW different password requests 'methods' (terminal on my box versus dialog that appeared on alejandroscandroli's box) make me think that PAM could help us too. Have anybody played with SSH + PAM? Personally I didn't. Or this is only applicable to sshd on cvs.mucommander.com?

Update: Seems that we are not alone, bug is known and... still open.
http://www.jetbrains.net/jira/browse/IDEADEV-10546
There are exceptions like this one in my log:
2007-10-09 22:55:44,396 [ 449899] INFO - ellij.openapi.vcs.VcsException -
org.netbeans.lib.cvsclient.ValidRequestsExpectedException: Valid requests expected!
at org.netbeans.lib.cvsclient.RequestProcessor.updateValidRequests(RequestProcessor.java:192)
at org.netbeans.lib.cvsclient.RequestProcessor.openConnection(RequestProcessor.java:102)
at org.netbeans.lib.cvsclient.RequestProcessor.processRequests(RequestProcessor.java:79)
at org.netbeans.lib.cvsclient.command.checkout.ListModulesCommand.execute(ListModulesCommand.java:52)
at com.intellij.cvsSupport2.cvsoperations.common.CvsCommandOperation.execute(CvsCommandOperation.java:256)
at com.intellij.cvsSupport2.config.CvsRootConfiguration$1.run(CvsRootConfiguration.java:155)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:73)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:32)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:13)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java)

Error message that appear as described in bug report has exactly same text as exception message in my log, description is very similar to our situation. So, I think that could be the same issue.

Also I've found old document http://www.intellij.org/twiki/bin/view/Main/CVSWithSSH that describes using PuTTY on Windows to access CVS via SSH from IDEA. As far as I can understand it's just adding Perl script to wrap PuTTY's plink executable and pass some additional parameters to it (most notable password :) ) along with parameters that came to wrapper script from IDEA. May be we should try to find suitable SSH client that can take password as command-line parameter and wrap it into simple script (Perl / shell script / whatever else). If there no other solutions I'll try to find suitable SSH. May be that would be enough.
igor
 
Posts: 4
Joined: Sat Oct 06, 2007 3:14 pm
Location: Ukraine

now we've got one semi-working solution :)

Postby igor » Wed Oct 10, 2007 9:26 pm

I have tried PuTTY on Fedora Core 7 (just invoked yum install putty). With such simple script used as external SSH in IDEA it should work (e.g. make mu_ssh.sh from it, invoke chmod +x mu_ssh.sh, use it as external SSH specified as /full/path/to/mu_ssh.sh in CVS configuration of IDEA)

#!/bin/sh
plink -ssh -pw mucommander $*

NOTE: password is stored as plain text in the script!

For those who want to compile PuTTY from sources there is http://the.earth.li/~sgtatham/putty/latest/putty-0.60.tar.gz (or look here http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html).

I consider this as dirty hack but haven't found better solution so far. Now there is no more asking for password, but I'm still unable to checkout with IDEA: "Test Connection" reports successfull connection in CVS configuration dialog, but when it comes to selection of CVS Elements to checkout there is no elements. May be just I have forgot how to use IDEA, but still this looks not quite good :)
igor
 
Posts: 4
Joined: Sat Oct 06, 2007 3:14 pm
Location: Ukraine

Postby Thinkpositiv » Sun Dec 16, 2007 6:55 pm

Ah yeah, well - writing these words (I wrote on my post for ~20 mins), I found it out:
To get Eclipse to translate all these fields into the right cvs command, I had to put in 'cvsread' as the username :o

So here's how I got Eclipse 3.3 on Win XP to check out mucommander from cvs:
  • Get putty (with plink!). I got the whole putty.zip. Extract it somewhere.
    All following in Eclipse:
  • Goto Window > Preferences... > Team > CVS > Ext Connection Method
  • Enter the following data:
    • CVS_RSH: <path to your plink.exe from extracted putty folder>
    • Parameters: -l {user} -pw {password} {host}
    • CVS_SERVER: cvs
  • Click OK
  • Choose File > Import... > CVS > Projects from CVS > Next
  • Enter the following data into the fields:
  • Click Next
  • Use specified module name: mucommander (browsing modules gives an error)
  • Click Next
  • Adjust your project settings as necessary
  • Clicking Finish will start the downloading...


Now to build and run mucommander, simply:
Rightclick build.xml > Run As > Ant Build
Thinkpositiv
 
Posts: 9
Joined: Thu Nov 29, 2007 8:10 am

Re: Developer's Quickstart guide

Postby aus » Fri Jun 06, 2008 7:09 am

How I can checkout SVN in NetBeans 6.0.1?
aus
 
Posts: 2
Joined: Tue Mar 04, 2008 3:02 pm

Re: Developer's Quickstart guide

Postby kowy » Fri Jun 06, 2008 8:15 am

Hi aus,
here is the procedure how to add new SVN driven project to NetBeans (maybe not the best, but it works):
    1) create directory (ie. musvn)
    2) checkout muCommander to "musvn" dir using any common svn tool
      ie. TortoiseSVN on windows, RapidSVN on Linux or using following command:
      Code: Select all
      svn checkout https://svn.mucommander.com/mucommander/trunk mucommander

    3) run NetBeans
    4) File -> New Project... -> Java -> Java Project with Existing Ant Script
    5) Next
    6) To field Location select "musvn" dir - other fields should automatically fill
    7) Finish
So good luck and good hacking.

Kowy
Kowy
kowy
 
Posts: 20
Joined: Thu May 29, 2008 6:34 pm
Location: Czech Republic

Previous

Return to Developer's corner

Who is online

Users browsing this forum: Google [Bot] and 1 guest