Comments (15)
use php composer.phar install dev
not update
..
from cmf-sandbox.
I have the same problem:
My sequence of commands are:
git clone git://github.com/symfony-cmf/cmf-sandbox.git
cd cmf-sandbox
cp app/config/parameters.yml.dist app/config/parameters.yml
cp app/config/phpcr_doctrine_dbal.yml.dist app/config/phpcr.yml
curl -s http://getcomposer.org/installer | php --
php composer.phar require jackalope/jackalope-doctrine-dbal:dev-master
from cmf-sandbox.
did you revert the composer.lock
that was updated?
from cmf-sandbox.
ah i see we are actually suggesting to use update
in the README .. i will fix that. but when i do that i don't get the issue you are noting. however i am seeing couple issues when loading the fixtures:
- "General error: 1364 Field 'sort_order' doesn't have a default value"
- "Item / not found in workspace default"
from cmf-sandbox.
btw the issue you are noted above is now tracked here schmittjoh/JMSDiExtraBundle#28
hopefully we can figure out what is going wrong with the fixture loading tomorrow.
from cmf-sandbox.
Strange. Ive just done a fresh install of the sandbox with doctrine dbal, but I'm not getting either of those errors. Fixtures appear to be loading ok for me and sandbox appears to be functional.
Also tested the fixtures on our own project and they seem fine.
The jackalope repo in the composer.lock is one commit behind where it should be for the sandbox, but that commit doesn't seem to make any difference for me on whether the fixtures load.
from cmf-sandbox.
I am getting the feeling that this approach of using "require" to add the dependency is too flaky because it ends up doing an "update" afterwards since the new dependency isn't in the "composer.lock" file.
from cmf-sandbox.
Id not come across "require" until now. If its only purpose is to avoid users downloading libs they may not use, even if it wasn't flakey Id say for the sandbox better to simplify the install instructions for the dbal version by just including it by default.
Could always put a note at the end to suggest users can remove the implementation they're not using if they're worried about having the redundant code.
from cmf-sandbox.
yeah .. i will switch to using "require-dev"
from cmf-sandbox.
argh .. now i see again why i used the "require" command .. since the midgard dependency requires a php extension. so i am switching things for doctrine dbal only for now. we could of course provide multiple composer.lock files.
maybe @Seldaek has an idea for now to best do this ..
from cmf-sandbox.
@lsmith77 I'm not sure what this is about, but the require command is a bit buggy. It takes the current versions from what's installed instead of the lock file, so when it updates the newly required package, it can rollback stuff (compared to the lock) which isn't too good.
from cmf-sandbox.
Also that means if you have nothing installed, it's basically ignoring the lock file I think.
from cmf-sandbox.
@jordillonch i fixed some issues in the Doctrine DBAL to address the fixture loading issues I saw. i have also updated the docs to use php composer.phar install --dev
instead of the require.
so please revert any local changes you might have, ensure that the tables are deleted again from your database (optionally use app/console doctrine:phpcr:init:dbal --drop
) and then try again.
hope all will work then.
from cmf-sandbox.
please reopen if the issue isn't fixed yet
from cmf-sandbox.
Thank you Lukas! Now it's working :)
from cmf-sandbox.
Related Issues (20)
- PHPCRException: The Id is immutable HOT 3
- Breadcrumb stopped working HOT 1
- Sandbox offline HOT 3
- CMF Sandbox host: "No space left on device" HOT 1
- Session-Error on live sandbox HOT 1
- Interface language vs content language switch is confusing HOT 2
- Segmentation fault on jackrabit build
- Some missing translations HOT 3
- Problem loading fixtures HOT 3
- Adjust Directory Structure HOT 1
- Use Enviroment Variables instead of parameters.yml HOT 2
- Introduce Unified Web Controller
- Introduce Make File
- Remove current vagrant box and replace by nix environment HOT 1
- Live Demo not working HOT 2
- Can't access admin backend on sandbox demo
- Exception on admin list pages HOT 1
- Admin panel content edit fails (FatalErrorException) HOT 3
- CMF Sandbox v 2.1: Load doctrine fixtures cause Exception HOT 1
- Doesn't work HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmf-sandbox.