Closed webdevian closed 7 years ago
Hi, I'm so sorry, this check was in the wrong order. Can you update to ci-pug 1.3.1 and re-try?
That seems to work. I do now get another error when I run phpunit but I imagine it's unrelated:
An uncaught Exception was encountered
Type: Error
Message: Call to undefined method Jade\Compiler::getEscapedValue()
Filename: /Users/iegner/Code/apc-called/application/cache/jade/wwC7G3mAqA90Umd5tV69Raql4-A-iEJ5PQ4azkraoo4.php
Line Number: 5767
Backtrace:
File: /Users/iegner/Code/apc-called/application/cache/jade/wwC7G3mAqA90Umd5tV69Raql4-A-iEJ5PQ4azkraoo4.php
Line: 5802
Function: {closure}
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer/Adapter/FileAdapter.php
Line: 70
Function: include
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer/Adapter/FileAdapter.php
Line: 71
Function: call_user_func
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer.php
Line: 280
Function: displayCached
File: /Users/iegner/Code/apc-called/vendor/phug/util/src/Phug/Util/SandBox.php
Line: 38
Function: Phug\{closure}
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer/AbstractAdapter.php
Line: 30
Function: __construct
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer.php
Line: 285
Function: captureBuffer
File: /Users/iegner/Code/apc-called/vendor/phug/util/src/Phug/Util/SandBox.php
Line: 38
Function: Phug\{closure}
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer.php
Line: 294
Function: __construct
File: /Users/iegner/Code/apc-called/vendor/phug/renderer/src/Phug/Renderer.php
Line: 397
Function: callAdapter
File: /Users/iegner/Code/apc-called/vendor/pug-php/pug/src/Pug/Pug.php
Line: 140
Function: renderFile
File: /Users/iegner/Code/apc-called/vendor/pug-php/pug/src/Pug/Pug.php
Line: 204
Function: renderFileWithPhp
File: /Users/iegner/Code/apc-called/vendor/pug-php/pug/src/Pug/Pug.php
Line: 211
Function: call_user_func
File: /Users/iegner/Code/apc-called/vendor/ci-pug/ci-pug/src/Jade.php
Line: 70
Function: renderFile
File: /Users/iegner/Code/apc-called/application/controllers/Delivery.php
Line: 43
Function: view
File: /Users/iegner/Code/apc-called/application/tests/Bootstrap.php
Line: 332
Function: require_once
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/Util/Fileloader.php
Line: 56
Function: include_once
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/Util/Fileloader.php
Line: 38
Function: load
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/TextUI/Command.php
Line: 913
Function: checkAndLoad
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/TextUI/Command.php
Line: 738
Function: handleBootstrap
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/TextUI/Command.php
Line: 129
Function: handleArguments
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/src/TextUI/Command.php
Line: 118
Function: run
File: /Users/iegner/Code/apc-called/vendor/phpunit/phpunit/phpunit
Line: 52
Function: main
Clearing the cache seems to fix this. I'll re-open if I get any more problems
Indeed, Jade namespace should no longer appear in your cached templates. I recommend you to always clean the cache before running tests (use the bootstrap option of phpunit to call a PHP file before tests).
I get the following error thrown from pug-php because
class_exists('Jade\Jade')
returns true:In my composer file :
"ci-pug/ci-pug": "1.3.0"
I can't find any reference to Jade in my own source. I have
use Pug;
in my controller and the line that throws the error is$view = $this->view('start', $data, true);
composer show
outputs:composer --version
outputs: