Jeff-Lewis / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Update via Composer error after r4896 #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Today, after r4896, I and others people got error:

"[RuntimeException]                                                             

  Could not scan for classes inside "..../vendor/smarty/smarty/libs/Smarty.class.php" which does not appear to be a file nor a folder"

Please see https://github.com/yiisoft/yii2/issues/5568

Smarty used in the Composer package "yiisoft/yii2-smarty".

Original issue reported on code.google.com by stepan.s...@gmail.com on 15 Oct 2014 at 7:53

GoogleCodeExporter commented 9 years ago
Monte did modify composer.json that the distribution gets intalled from a zip 
file which does not include a lot of Smarty internal stuff. The classmap starts 
there at libs/...

But if you require "smarty/smarty" it seems to be loaded from the SVN where the 
classmap must start at distribution/libs/....

I try to sort it out with Monte. I'm myself on a composer learning curve so any 
helpfull input is welcome.

Original comment by Uwe.Tews@googlemail.com on 15 Oct 2014 at 9:02

GoogleCodeExporter commented 9 years ago
I could not get in touch with Monte

For the time being I switched the classmap back to distribution/libs/....

Original comment by Uwe.Tews@googlemail.com on 16 Oct 2014 at 1:37

GoogleCodeExporter commented 9 years ago
Well it _certainly_ added to the confusion that you wrote on smarty.net that 
3.1.20 was released, but then linked to the 3.1.21-dev / trunk changelog file. 
:-/

Original comment by cbrunnkvist@gmail.com on 16 Oct 2014 at 7:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Seems the error has been fixed. Thanks.

Original comment by stepan.s...@gmail.com on 16 Oct 2014 at 2:05

GoogleCodeExporter commented 9 years ago
Still seeing this error when using composer package smarty/smarty:

[RuntimeException]
  Could not scan for classes inside "...../vendor/smarty/smarty/distribution/libs/Smarty.class.php" which does not appear to be a file nor a folder

there is no distribution folder inside smarty/smarty - only libs and demo 
folder!

Original comment by naabs...@gmail.com on 16 Oct 2014 at 2:40

GoogleCodeExporter commented 9 years ago
Hello,
try to remove package from composer.json, then execute 'composer update' and 
after add package to composer.json, and then again 'composer update'. Or try 
'composer clearcache'.

Original comment by stepan.s...@gmail.com on 16 Oct 2014 at 2:44

GoogleCodeExporter commented 9 years ago
It would be nice to fix the last stable aswell. tags\v3.1.20\distribution 
doesn't exist anymore but composer.json is unchanged:

    "autoload": {
        "classmap": [
            "distribution/libs/Smarty.class.php", 
            "distribution/libs/SmartyBC.class.php",
            "distribution/libs/sysplugins/smarty_security.php"
        ]
    },

Original comment by belka...@gmail.com on 16 Oct 2014 at 6:20

GoogleCodeExporter commented 9 years ago
I'm also having this problem after the latest update.  Uninstall, clear cache, 
none of that fixed it for me.

As a temporary hack I did:
cd vendor/smarty/smarty;ln -s . distribution

Original comment by camerong...@gmail.com on 17 Oct 2014 at 9:12

GoogleCodeExporter commented 9 years ago
Composer is now up running again. It does load the distribution currently from 
github.com/uwetews/smarty-dist. (This will change some time in the future) 

On github v3.1.21 is alread tagged. The SVN gets updated tomorrow.

Use 
    "require": {
        "smarty/smarty": "~3.1"
     }
to get it.

You must run composer clearcache to get it working.

Original comment by Uwe.Tews@googlemail.com on 18 Oct 2014 at 1:06

GoogleCodeExporter commented 9 years ago
And there was much rejoicing. Great job and fast response, Uwe!

Original comment by cbrunnkvist@gmail.com on 21 Oct 2014 at 3:19