contao-community-alliance / composer-client

This is the Contao Composer Client
http://de.contaowiki.org/Composer
27 stars 18 forks source link

Installation failed #227

Closed xApep closed 10 years ago

xApep commented 10 years ago

Hi. I'm trying to install composer but it fails almost everytime. Two times (out of 10 worked) but when I've installed metamodels via composer no file was installed / downloaded to system/modules folder, which is more stranger.

I've tried on 3.3.5, 3.3.4 and 3.2.14. I have wampserver (execute time 3000s), win 7.

I've made a video so you can see the first issue. http://www.screencast.com/users/EDsolution/folders/Default/media/451e01fe-2493-4b9c-b5f7-be93de683561

tristanlins commented 10 years ago

Try to skip the migration, go to the system settings and change the execution mode to "detached mode". It may necessary to change the php executable path now. Then try to run the package update. If it fails, go into TL_ROOT/composer and have a look into the composer.out file. This is the output file from running composer.

xApep commented 10 years ago

Hm..just can't figure out the path. I've tried this: \C:\wamp\bin\php\php5.4.16 \C:\wamp\www\edsolutionCMS\composer

but i always get The filename, directory name, or volume label syntax is incorrect. Any idea which would be?

Tnx

p.s. Do i need to install composer, https://getcomposer.org ?

tristanlins commented 10 years ago

but i always get The filename, directory name, or volume label syntax is incorrect.

Sry, but I don't know the right syntax for non-unix machines, I have no windows dev machine. Maybe @backbone87 can help here?!

p.s. Do i need to install composer

Composer get installed automatically, when you press the "Install Composer" button. You have done this in your screencast at 0:30.

xApep commented 10 years ago

OK I've figure out the Contao setting, php executable path. Now the composer was installed successfuly but when I try than to install metamodels I get this.

fireshot screen capture 137 - - localhost_edsolution_contao_main_php_do composer update database

I suggest that author of composer or anybody of developer install composer and some extension on windows OS and you will see that it simply doesn't work. I've read the forum on de/community and everyone on WIN OS has the same issue.

tristanlins commented 10 years ago

I suggest that author of composer or anybody of developer install composer and some extension on windows OS

Give me a windows system and I will give it a try. I have no windows system that is ready for development, no one of the "composer developers" use or have a windows system for testing... :-\

xApep commented 10 years ago

No offence but I don't get it. You have develope something that has big impact in working with Contao and you just ignore half or more Contao users (WIN) which are stuck now with new version, features?

Ah well, strange world.

tristanlins commented 10 years ago

you just ignore half or more Contao users (WIN) which are stuck now with new version

99% of all Contao installations run on Linux/Unix servers. We "ignore" only the 1% windows users, in fact we the "composer developers" are linux or mac users without windows systems... If you find a windows developer (like @backbone87) please ask him to have a look and help us make composer run on windows :-)

Ah well, strange world.

This is not only our problem, the composer project itself had the same problem. Only windows users, but no windows developers. I suppose that most developers are "sick" of windows ;-D

tristanlins commented 10 years ago

Afaik @stefanheimes also use windows, I hope he can help here?! :-)

tristanlins commented 10 years ago

@EDsolution have you checked if the file C:\wamp\www\edsolution\system\modules\!composer\ContaoCommunityAlliance\Contao\Composer\ClassLoader.php still exists?

xApep commented 10 years ago

Hi. I will make video and you will see what happens, because the files are missing and in C:\wamp\www\edsolution\system\modules!composer\ContaoCommunityAlliance\Contao\Composer I have only folder Controller and no files in Composer. As it on git there is no such files or it get's deleted by "update".

I'ts not just that folder, also there is no "factory" folder in dc...(as I remember).

tristanlins commented 10 years ago

If the file exist, please try to replace line 14-18 in file system/modules/!composer/config/autoload.php with:

/**
 * Register classloader
 */
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
    include(TL_ROOT . '\\system\\modules\\!composer\\ContaoCommunityAlliance\\Contao\\Composer\\ClassLoader.php');
} else {
    include(TL_ROOT . '/system/modules/!composer/ContaoCommunityAlliance/Contao/Composer/ClassLoader.php');
}
\ContaoCommunityAlliance\Contao\Composer\ClassLoader::register();
xApep commented 10 years ago

p.s. @tristanlins we can go teamviewer, and you will get windows system :)

tristanlins commented 10 years ago

I have only folder Controller and no files in Composer

Eeek, that is not good ;-D Do you even know which version was checked out by git? Maybe it is just a problem that we switched the repository from contao-community-alliance/composer to contao-community-alliance/composer-client?! The tags should still exists in contao-community-alliance/composer. But if you are on the master or develop branch this could explain why the files are missing?! :-\

tristanlins commented 10 years ago

@EDsolution you can contact me on Mumble (mumble://mumble.c-c-a.org:62492) or phone / email :-)

tristanlins commented 10 years ago

Seems to be related to https://github.com/contao-community-alliance/composer-plugin/issues/10