These are chat archives for jarves/jarves

17th
May 2016
GusDeCooL
@gusdecool
May 17 2016 01:01
This message was deleted
Hi guys, do jarves.io support multiple site?
Marc J. Schmidt
@marcj
May 17 2016 16:59
@fkubis to be honest, I'm not sure hwo to fix that symlink issue yet
not using symlinks result in not being able to manage bundle assets (bundleName/Resources/public) through the File Manager. However, I guess we could workaround that by internally mapping all paths from web/bundles/$name/ to $pathtoBundle/Resources/public. We'd need to copy changed files then as well to the web/bundles place, otherwise it won't have any effect
alternative is to disable web/bundles/ file editing in the File Manager
@fkubis did you get any other failures when you disable symlink?
Frank
@fkubis
May 17 2016 17:03
not yet
i will try to figure out where this error comes, the symfony3 asset manager does something to tests for symlink support and copy the assets if there is no symlink enabled
guess thats the best way to do it
Marc J. Schmidt
@marcj
May 17 2016 17:05
which concrete error did you get?
Frank
@fkubis
May 17 2016 17:06
mom
Frank
@fkubis
May 17 2016 17:17
@marcj
vagrant@dev:/var/www/jarves.local$ php bin/console cache:clear [Symfony\Component\Debug\Exception\ContextErrorException] Warning: symlink(): File exists
Marc J. Schmidt
@marcj
May 17 2016 17:17
kann you please add -v?
Frank
@fkubis
May 17 2016 17:18
Exception trace: () at /var/www/jarves.local/vendor/jarves/jarves/Jarves.php:173 Symfony\Component\Debug\ErrorHandler->handleError() at n/a:n/a symlink() at /var/www/jarves.local/vendor/jarves/jarves/Jarves.php:173 Jarves\Jarves->prepareWebSymlinks() at /var/www/jarves.local/vendor/jarves/jarves/JarvesBundle.php:139 Jarves\JarvesBundle->configure() at /var/www/jarves.local/vendor/jarves/jarves/JarvesBundle.php:73 Jarves\JarvesBundle->boot() at /var/www/jarves.local/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:121 Symfony\Component\HttpKernel\Kernel->boot() at /var/www/jarves.local/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:68 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/jarves.local/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117 Symfony\Component\Console\Application->run() at /var/www/jarves.local/bin/console:29
Marc J. Schmidt
@marcj
May 17 2016 17:18
seems like a easy fix :)
Frank
@fkubis
May 17 2016 17:18
ok :D let me try
Frank
@fkubis
May 17 2016 18:11
woop finaly i got it .)
Marc J. Schmidt
@marcj
May 17 2016 18:34
yeah
just a file check or was it more complicated?
Frank
@fkubis
May 17 2016 18:35
mhm more complicated, couse copy needs to create a directory. I currently try to figure out where to put the helper function for copy an dir
Marc J. Schmidt
@marcj
May 17 2016 18:35
maybe its the easiest to just remove that prepareWebSymlinks method completely
so the actual symfony command (which is used in the composer.json as well) does the job
Frank
@fkubis
May 17 2016 18:36
ah didnt know that :) looked like jarves does it
Marc J. Schmidt
@marcj
May 17 2016 18:37
yeah additionally, to make it easier, but since its actually only a symfony standard edition maybe its better to let symfony do the job
mh yeah, I believe its better to remove that completely
Frank
@fkubis
May 17 2016 18:41
ok @marcj how to contribute? :)
is there a roadmap or something?
Marc J. Schmidt
@marcj
May 17 2016 18:41
fork, remove that function in JarvesBundle, and create a pull-request :)
roadmap not yet
but we are working on it
Marc J. Schmidt
@marcj
May 17 2016 18:50
have you already made a pull-request in github?
Frank
@fkubis
May 17 2016 18:50
did few seconds ago
Marc J. Schmidt
@marcj
May 17 2016 18:52
yeah nice!
ah describtion is always very valueable, but I just added some : )
Frank
@fkubis
May 17 2016 18:56
ok will keep it in mind for feature :)
Frank
@fkubis
May 17 2016 19:57
oO that frontend assets are real chaotic
Marc J. Schmidt
@marcj
May 17 2016 19:57
what do you mean?
Frank
@fkubis
May 17 2016 19:59
first mix of css and sass ;) then the sass files mostly not using not sass features
Marc J. Schmidt
@marcj
May 17 2016 19:59
almost all files use sass features
Frank
@fkubis
May 17 2016 20:00
ok sure but still a mix of that confuses me, its realy different to the way i use sass :)
ok better, the frameworks like bootstrap or foundation does it
Marc J. Schmidt
@marcj
May 17 2016 20:01
I'm not sure what you mean with chaotic. Using different formats is very legit. If I use sass features I use a sass file, if I use css-only then I use css to jump over compiling processes
Frank
@fkubis
May 17 2016 20:07

what I mean is: if you use sass, the final output is one file. Split the logic (like you did) into files with _ prefix and compare them using @import.

And you do thinks like

.jarves-login-middle .jarves-Button {  }
.jarves-login-middle .jarves-Button:link {  }
}

The "more sass way" would be:

.jarves-login-middle {
     .jarves-Button {
          &:link{}
    }
}

There realy many of this "little" thinks

Marc J. Schmidt
@marcj
May 17 2016 20:08
well I don't see it that strictly. I use sass for its features I don't have in css. Using the nested rules for only one rule doesnt give much value tbh
Frank
@fkubis
May 17 2016 20:17
mhm looks not using the prepareWebSymlinksdoes not compile the sass files