GNOME Bugzilla – Bug 601149
Can't create project from existing git repository
Last modified: 2009-11-16 17:55:12 UTC
I get this message while trying to import: "Could not find a valid project backend for the directory given (scst). Please select a different directory, or try upgrading to a newer version of Anjuta."
Anjuta supports autotools project and partially makefile project. A valid autotools project needs to have in the project directory a file named configure.ac or configure.in and Makefile.am. A makefile project needs to have in the project directory a file named Makefile. Is your project use autotools or makefile ?
*** Bug 601567 has been marked as a duplicate of this bug. ***
So is this even a git bug? It seems like a project manager issue to me...
I get this bug here too. I haven't done any investigation but I think it is not in the project manager. I have been able to checkout the project from git and import it from the local directory without any troubles. I think it is a problem in the project import dialog, not using the right argument to get the project from git or something like this.
(In reply to comment #1) > Anjuta supports autotools project and partially makefile project. > > A valid autotools project needs to have in the project directory a file named > configure.ac or configure.in and Makefile.am. > > A makefile project needs to have in the project directory a file named > Makefile. > > Is your project use autotools or makefile ? A makefile project.
(In reply to comment #5) > A makefile project. Thanks. I get this bug too and I don't think it's related to your project. It is probably a bug in the import from git dialog. In the meantime, you should be able to open your project by getting it from git using the command line and then importing the local directory in Anjuta.
I will try to look at this tomorrow. It seems that the problem appears only if you change the destination directory. It could be a problem in the ianjuta_vcs_checkout function in git plugin. The working directoy looks strange when running the clone command.
Created attachment 147758 [details] Screenshot of the error
(In reply to comment #6) > (In reply to comment #5) > > A makefile project. > > Thanks. I get this bug too and I don't think it's related to your project. It > is probably a bug in the import from git dialog. > > In the meantime, you should be able to open your project by getting it from git > using the command line and then importing the local directory in Anjuta. This does not work as well. I cloned the repository into a local directory, and still while trying to create project from existing source, I get the same problem.
> This does not work as well. I cloned the repository into a local directory, and > still while trying to create project from existing source, I get the same > problem. In this case, the problem is more complex. This is probably the anjuta makefile project backend which is not able to load your project. I'm currently working on this backend, but it will take time before it can replace the current code. Anyway, I will be interested to check that the new code can load your project or at least understand why it doesn't work. Do you have a link where I could get your project or could you send it to me ?
I have fixed the problem in the git plugin, so closing bug #601567 which is not a duplicate of this one in this case. The project manager issue is still here but then I need more information (the project itself or a simplified project which cannot be imported).
Created attachment 147763 [details] A tar file of my test repository
(In reply to comment #12) > Created an attachment (id=147763) [details] > A tar file of my test repository It's quite easy, there is no makefile in your project directory. Perhaps you have forgotten to commit it in git repository.
(In reply to comment #13) > (In reply to comment #12) > > Created an attachment (id=147763) [details] [details] > > A tar file of my test repository > > It's quite easy, there is no makefile in your project directory. Perhaps you > have forgotten to commit it in git repository. So if I have git repository with couple of makefile files but not in the parent directory, what should I do ?
OK, I guess that I can clone the repository with command line, then when creating the Anjuta project give the path of the Makefile in my repository. Am I right ?
(In reply to comment #15) > OK, I guess that I can clone the repository with command line, then when > creating the Anjuta project give the path of the Makefile in my repository. > Am I right ? Well, you could probably create several anjuta projects, one for each makefile, this way. The makefile support in Anjuta is rather basic. Currently, Anjuta makefile backend needs a makefile in the project directory. It reads this makefile in order to find all source files of the project. This could be improved but it will be very very difficult to support any structure using makefiles and I don't really see the interest.
So I guess that you can close this BUG.