web-starter-kit getting started, a syntax error running gulp for the first time in plugin gulp-ruby-sass - gulp

I'm trying web-starter-kit. I followed installation instructions and I receive a error log that interpretation I'm not really sure about. I'm still in the getting started phase, I get the error running gulp in the web-starter-kit/app folder. I'm totally inexperienced with this technology and I'm working with the default resources included in the starting folder. I couldn't find anything useful on the internet. This is the error log:
[13:26:16] Working directory changed to ~/Desktop/web-starter-kit
[13:26:17] Using gulpfile ~/Desktop/web-starter-kit/gulpfile.js
[13:26:17] Starting 'clean'...
[13:26:17] Finished 'clean' after 4.43 ms
[13:26:17] Starting 'default'...
[13:26:17] Starting 'styles:components'...
[13:26:17] Starting 'styles:scss'...
[13:26:17] Starting 'styles:css'...
[13:26:17] gulp-size: 'styles:css' total 0 B
[13:26:17] Finished 'styles:css' after 94 ms
[13:26:17] gulp-size: 'styles:scss' total 0 B
[13:26:17] Finished 'styles:scss' after 110 ms
[13:26:17] [gulp-ruby-sass]
Syntax error: Mixin "medium" does not accept a content block.
on line 160 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_utils.scss, in `medium'
from line 160 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_utils.scss, in `container'
from line 32 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_global.scss
from line 10 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/components.scss
events.js:72
throw er; // Unhandled 'error' event
^
Error in plugin 'gulp-ruby-sass'
Syntax error: Mixin "medium" does not accept a content block.
on line 160 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_utils.scss, in `medium'
from line 160 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_utils.scss, in `container'
from line 32 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/_global.scss
from line 10 of /home/riccardo/Desktop/web-starter-kit/app/styles/components/components.scss
at ChildProcess.<anonymous> (/home/riccardo/Desktop/web-starter-kit/node_modules/gulp-ruby-sass/index.js:98:25)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)
I mean it sounds really weird I haven't actually written any actual code and there it is a syntax error in code written by someone clever than me, but it's more plausible that I did something wrong.

It looks like you're missing the sass ruby gem. It compiles/converts easy to read code into css for you.
In a terminal/commandline go to the project folder and run gem install sass. (Assuming you have ruby installed). Then try running the gulp stuff again.
Hope that helps!

Related

Class PhpStorm_Codeception_ReportPrinter does not exist

I am attempting to run Codeception functional tests within PhpStorm and keep receiving an error that says a class is missing. I've scoured the internet and found nothing available for this problem except for one post https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000646104-Running-codeCeption-test-runner-causes-excpetion?sort_by=created_at . Other posts talk about how to set the argument.
I have both a phar of Codeception 2.4.1 and a composer install of it. It is using PHP version 7.1 to execute.
Searching the vendor folder returns no such class which makes me think it is supposed to be delivered or included from within PhpStorm. Not really sure, grabbing at straws.
If anyone has any exposure to this and can help with some guidance it would be much appreciated. I can run them a docker/vagrant config or from the CLI, it just cannot integrate with PhpStorm.
C:\php\php-7.1.4-Win32-VC14-x64\php.exe -d-dxdebug.remote_mode=jit C:/Users/Curtis/AppData/Local/Temp/ide-codeception.php run --report -o "reporters: report: PhpStorm_Codeception_ReportPrinter" --no-ansi --no-interaction functional
==== Redirecting to Composer-installed version in vendor/codeception ====
Codeception PHP Testing Framework v2.4.1
Powered by PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
In Runner.php line 174:
Class PhpStorm_Codeception_ReportPrinter does not exist
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [<suite>] [<test>]
PHP Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Subscriber\ErrorHandler.php:101
Stack trace:
#0 [internal function]: Codeception\Subscriber\ErrorHandler->shutdownHandler()
#1 {main}
thrown in C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Subscriber\ErrorHandler.php on line 101
PHP Stack trace:
PHP 1. {main}() C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:0
PHP 2. require_once() C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:21
PHP 3. require() phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
PHP 4. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\package\bin:37
PHP 5. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Application.php:108
Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Subscriber\ErrorHandler.php on line 101
Call Stack:
0.2024 403184 1. {main}() C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:0
0.2208 1243848 2. require_once('phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php') C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:21
0.2862 5654840 3. require('C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\package\bin') phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
0.3338 8056520 4. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\package\bin:37
0.3338 8056520 5. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Application.php:108
RuntimeException: Command Did Not Finish Properly in C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Subscriber\ErrorHandler.php on line 101
Call Stack:
0.2024 403184 1. {main}() C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:0
0.2208 1243848 2. require_once('phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php') C:\Users\Curtis\AppData\Local\Temp\ide-codeception.php:21
0.2862 5654840 3. require('C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\package\bin') phar://C:/Users/Curtis/Projects/tripadvisor-integration/codecept.phar/autoload.php:12
0.3338 8056520 4. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\package\bin:37
0.3338 8056520 5. Codeception\Application->run() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Application.php:108
0.6265 17565136 6. Codeception\Subscriber\ErrorHandler->shutdownHandler() C:\Users\Curtis\Projects\tripadvisor-integration\vendor\codeception\codeception\src\Codeception\Subscriber\ErrorHandler.php:0
Process finished with exit code -1
In my case, I had codeception installed both in composer global and as a project dependency.
I had to remove composer global remove codeception/codeception and go to PHPStorm -> Settings -> Languages & Frameworks -> PHP -> Test Frameworks and change my codeception executable to ~/myprojectpath/vendor/codeception/codeception/codecept

Gulp Task Error: 'Checksum error in glyf'

I am attempting to run a Gulp task and I get an error that I have no idea how to fix or even debug. The Gulp file and tasks have been created by NetSuite and haven't been editted by myself (they should work out of the box).
Any idea what node package could be causing the following error and how I can fix the error? Maybe I need to use a different version of SASS or Font-Awesome?
C:\Users\MyUser\SuiteCommerce Advanced Mont Blanc>gulp local
[08:48:45] Warning: gulp version mismatch:
[08:48:45] Global gulp is 3.9.1
[08:48:45] Local gulp is 3.8.7
[08:48:53] Using gulpfile ~\SuiteCommerce Advanced Mont Blanc\gulpfile.js
(node:1372) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
[08:48:53] Starting 'local-install'...
[08:48:53] Finished 'local-install' after 79 μs
[08:48:53] Starting 'templates'...
[08:48:53] Starting 'macros-jst'...
[08:48:53] Finished 'macros-jst' after 242 μs
[08:48:53] Starting 'macros'...
[08:48:53] Starting 'javascript-entrypoints'...
[08:48:53] Finished 'javascript-entrypoints' after 13 ms
[08:48:53] Starting 'javascript-move'...
[08:48:53] Starting 'copy'...
[08:48:53] Starting 'less'...
[08:48:53] Finished 'less' after 364 μs
[08:48:53] Starting 'sass-prepare'...
[08:48:53] Starting 'languages'...
[08:48:53] Starting 'images'...
[08:48:53] Starting 'fonts'...
[08:48:53] Finished 'fonts' after 386 μs
[08:48:53] Starting 'watch-templates'...
[08:48:53] Finished 'watch-templates' after 335 ms
[08:48:53] Starting 'watch-macros'...
[08:48:53] Finished 'watch-macros' after 610 μs
[08:48:53] Starting 'watch-javascript'...
[08:48:54] Finished 'watch-javascript' after 580 ms
[08:48:54] Starting 'watch-less'...
[08:48:54] Finished 'watch-less' after 459 μs
[08:48:54] Starting 'watch-sass'...
[08:48:55] Finished 'watch-sass' after 1.5 s
[08:48:55] Starting 'watch-languages'...
[08:48:55] Finished 'watch-languages' after 88 ms
[08:48:55] Starting 'watch-fonts'...
[08:48:56] Finished 'watch-fonts' after 365 μs
[08:48:56] Starting 'watch-images'...
[08:48:56] Finished 'watch-images' after 41 ms
[08:48:56] Finished 'copy' after 2.63 s
[08:48:56] Finished 'macros' after 2.71 s
[08:48:57] Finished 'javascript-move' after 4.15 s
[08:49:02] Finished 'images' after 9.11 s
[08:49:06] Finished 'languages' after 13 s
[08:49:07] Finished 'templates' after 14 s
[08:49:07] Starting 'javascript'...
[08:49:12] Finished 'sass-prepare' after 19 s
[08:49:12] Starting 'generate-sass-index'...
[08:49:12] Finished 'generate-sass-index' after 118 ms
[08:49:12] Starting 'sass'...
[08:49:12] Finished 'javascript' after 4.99 s
[08:49:12] Starting 'clean-templates'...
[08:49:12] Finished 'clean-templates' after 12 μs
[08:49:13] SOURCE CODE ERROR
[08:49:13] status 1
[08:49:13] file C:/Users/MyUser/SuiteCommerce Advanced Mont Blanc/LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
[08:49:13] line 11
[08:49:13] column 245
[08:49:13] message LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not #extend an outer selector from within #media.
You may only #extend selectors within the same directive.
From "#extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[08:49:13] formatted Error: You may not #extend an outer selector from within #media.
You may only #extend selectors within the same directive.
From "#extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[08:49:13] messageFormatted LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not #extend an outer selector from within #media.
You may only #extend selectors within the same directive.
From "#extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
[08:49:13] name Error
[08:49:13] stack Error: LocalDistribution\sass\twitter-bootstrap-sass\mixins\_grid-framework.scss
Error: You may not #extend an outer selector from within #media.
You may only #extend selectors within the same directive.
From "#extend .col-md-6" on line 134 of LocalDistribution/sass/ItemDetails/_item-details.scss
on line 11 of LocalDistribution/sass/twitter-bootstrap-sass/mixins/_grid-framework.scss
>>
at options.error (C:\Users\MyUser\SuiteCommerce Advanced Mont Blanc\node_modules\node-sass\lib\index.js:286:26)
[08:49:13] showStack false
[08:49:13] showProperties true
[08:49:13] plugin gulp-sass
[08:49:13] Finished 'sass' after 954 ms
[08:49:13] Starting 'font-awesome'...
[08:49:13] Starting 'clean-sass-tmp'...
[08:49:13] Finished 'clean-sass-tmp' after 5.57 μs
events.js:160
throw er; // Unhandled 'error' event
^
Error: Checksum error in glyf
It looks like you have node > v4 installed.
If you haven't run npm install since updating node you'll need to do that so SASS get's a new executable.
Running npm install may fix your issue
then gulp clean and gulp local.
Due to how often I see errors just running gulp local I generally run these as a single command:
gulp clean && gulp local
However I also go through and fix all those issues in the Netsuite's SASS files. Almost all of them are due to overspecification and I haven't seen any issues caused by fixing them.
e.g. From NS
.item-details-main {
#media (min-width: $screen-md-min) {
#extend .col-md-4;
}
}
behaves pretty much the same as:
.item-details-main {
#extend .col-md-4;
}
This error happens because SCA uses gulp-sass for compiling SCSS files. After Mont Blanc was released, node-sass, which is a dependency of gulp-sass was updated causing errors with SCSS files that were previously compiled.
There is no a fix for this issue without modifying SCSS files which throw fatal errors, but there is a workaround:
Uninstalling the gulp-sass package
Installing node-sass at 3.4.1 as a first-level dependency of the dev tools.
Reinstalling gulp-sass
In order to do this, run the following commands:
npm cache clear
npm uninstall gulp-sass node-sass
npm config set save-exact true
npm install --save node-sass#3.4.1 gulp-sass#2.1.0

Symbol lookup error on Fedora 22 while trying to run Quartus II

I've been trying to start Quartus II on my system (which is a DELL running Fedora 22 64-bit). Now I try to run the binary file in command line and I get hit with this weird error as follow:
[kuma0629#eecad47 bin]$ ./quartus
quartus: symbol lookup error: /lib/libXext.so.6: undefined symbol: _XGetRequest
Now, I googled this problem and seems like libX11 needs to be upgraded. But I'm not sure how to do this for Fedora in particular because there's not much support online.
How do I go about fixing this problem?

VS2012: xcopy error with cocos2dx

I have a solution on VS 2012 that has been building without errors, then out of no where the build started failing with the following error :
Error 106 error MSB3073: The command "if not exist "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\" mkdir "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\"
xcopy /Y /Q "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\..\..\..\external\libwebsockets\win32\lib\*.*" "C:\Workspace\cocos2d-x-2.2.2\tools\project-creator\undefined\proj.win32\Debug.win32\"
:VCEnd" exited with code 4. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 129 5 undeifned
This solution is created by Cocos2d-x tool.
How to fix bug ?
The encrypted message mean the folder/files are in use.
I just have the same error a few minutes ago.
Close all the program and reopen.
Reboot if the above failed.

Too many initializers for symbol

I am trying to run the MIT project CryptoDB. I have downloaded it and I have followed the instructions to compile as it is explained in the included instructions, for mysql-proxy and mysql version 5.5.14. I am using a RedHat Enterprise 6 server.
When I get to the point of running the make command i get this error:
Building CXX object sql/CMakeFiles/sql.dir/sql_lex.cc.o
In file included from /soft/mysql-5.5.14/build/sql/lex_hash.h:25,
from /soft/mysql-5.5.14/sql/sql_lex.cc:113:
/soft/mysql-5.5.14/sql/lex.h:193: error: ‘ENC_SYM’ was not declared in this scope
/soft/mysql-5.5.14/sql/lex.h:623: error: too many initializers for ‘SYMBOL’
make[2]: *** [sql/CMakeFiles/sql.dir/sql_lex.cc.o] Error 1
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2
I am quite lost as I cannot find if there is a missing library or any kind of incompatbility on what I am using. Any ideas?
Even i have not finished installation now I now that the problem comes from not having the last version of the code. By getting it with the following command:
git clone -b public git://g.csail.mit.edu/cryptdb
I get to execute an instalation script in ruby that performs the work.
The script is not writen especifically for Redhat, so I am having some work adapting some commands (apt-get => yum).