node deprecated warning while compiling less - css

When I use lessc to compile a less file, in the output CSS i always get as first line of the file this string:
(node) util.print is deprecated. Use console.log instead.
I googled the error but I don't understand if this is due to a nodejs error or a lessc one.
I tried also to run lessc -s but it didn't solve my issue.
Any idea how to fix it?

Related

Grunt can't find "compass.bat" binary

When I try to execute the command:
grunt build
I get the following warning:
Warning: Couldn't find the `compass.bat` binary. Make sure it's installed and in your $PATH Use --force to continue.
Aborted due to warnings.
I've checked and I have ruby and compass properly installed on my computer and the ruby/bin is correctly indicated on the PATH variable. Both compass and ruby/gem are recognized by my console.
Can someone give me an hand?

Errors running Grunt and Sass

I've been trying to get Sass up and running with Bootstrap. I've followed the tutorial, going so far as to install exact versions of the dependencies listed rather than the default/latest versions. I've done this from scratch at least three times. I've uninstalled and reinstalled different versions of Sass and Compass (mainly according to Sass --compass --watch Error: Cannot load compass), as well as older versions of Ruby (I just installed 2.3.3, down from the latest release).
But whenever I get to running the grunt sass command, something goes wrong. I've gotten errors about not being able to load Compass. If I search and rectify that, I'll go through an error or two more (not on hand sorry, I've closed everything out), but keep ending up on:
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/compass-core-1.1.0.alpha.3/lib/compass/core/caniuse.rb:72: warning: circular argument reference - browsers
NoMethodError:  
Use --trace for backtrace.
Warning: Exited with error code 1 Use --force to continue.
I've looked up this error, and I've tried doing the bundle update listed here, but end up right back where I started with the same problems (since now there are updated versions of dependencies that apparently don't play well together, and compass things don't work again).
I know how to use Sass, I just can't practice since I can't get it running. I'm newer to coding, and I don't know Ruby at all, so I'm stuck now that my search-fu has failed me. My machine is running Windows 10. I am specifically looking to set up Sass to run with Bootstrap 4 (yes, I know it's in alpha, it's what I'm required to use for work) and there doesn't seem to be any good documentation out there about how to actually get it running properly.

TypeScript compiler failing on a mac

Typescript compilation task works fine on linux machines but on a mac fails with the following not particularly useful error message and what looks like a binary dump.
$ grunt
Running "ts:build" (ts) task
Compiling...
Fast compile will not work when --out is specified. Ignoring fast compilation
Using tsc v1.4.1
������������=��AF���=����
>> Error: tsc return code: 3
Warning: Task "ts:build" failed. Use --force to continue.
Aborted due to warnings.
Im using nvm with node v0.11.4 and rvm with ruby v2.2.0.
Any ideas how to fix this, or even debug?
As the question includes debugging, here are some pointers which might help determine where the problem is.
Try compiling from the command line with tsc alone (no grunt), in case the problem is with grunt or the ts:build task (looks like grunt-ts).
Maybe one of your source files is causing the tools to crash (perhaps they can't cope with a file's encoding?). If a single, simple file will compile, then try removing subsets of your source from the build. If some of those files are causing the crash (whether valid TypeScript or not) you may be able to find a temporary workaround.
Try compiling with different versions of tsc. If you need 1.4.1 features you could try using the latest from https://github.com/Microsoft/TypeScript (see here for how to do this with grunt-ts).
The problem was with a malfunctioning node installation. I upgraded to node 0.12 which fixed the problem.
Just to check the problem wasn't node 0.11.4 specific I removed all previous versions of node and reinstalled 0.11.4 and the error no longer occurs.
I took these steps after removing all node modules, clearing the cache and reinstalling with no luck. I also tried using multiple typescript compiler versions.

Error 13 with Foundation when trying to run Grunt

Running "sass:dist" (sass) task
Warning: bower_components/foundation/scss/foundation/functions:13: error: error reading >values after )
Use --force to continue.
Aborted due to warnings.
Look below for solution.
So I found the solution to the error thanks to:
Michael Degli-Angeli
(9/11/2014) - It appears Micheal removed his post from the following link/thread
http://foundation.zurb.com/forum/posts/19063-grunt---error-error-reading-values-after----libsass
Turns out this is a error with Foundation and just started happening today. (9/10/2014)
The Solution:
Just remove !global from line 13 in
bower_components/foundation/scss/foundation/_functions.scss
and run grunt like so:
./node_modules/grunt-cli/bin/grunt
Note: Be careful if your bower.json is compiling with the latest Foundation.
The problem when removing !global is that I have now a very long compiled output file with a lot of dupped stuff. Just use the inspector in Chrome and you'll see... I can't find other solution for now...
Simply updating grunt-sass seems to do the trick, see Paul Angus's reply on Zurb's forum
npm install --save-dev grunt-sass
Afterwards, grunt build should compile with no errors.

autoconf not generating makefile?

I am currently trying to create an installation package, using autoconf to generate the configure file. I have successfully managed to auto generate these, however, when I run ./configure, no makefile is generated from Makefile.in.
My question is : how do I debug this issue in order to narrow down why it is failing?
The following is the error message I get when attempting to generate the Makefile :
configure: error: cannot find install-sh, install.sh, or shtool
I had the same problem when I upgraded autotools version, in my case the configure.ac file was missing the following line:
AM_INIT_AUTOMAKE([1.9 foreign])
(Insert whatever version or options you need)
Then run autoreconf --install.
To answer the question about debugging: I went and looked at similar configure.ac files and worked through the differences until the error went way.
First of all, check that configure.ac contains something like:
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
Otherwise it won't create the makefile for you.
If it's not that, config.log should have clues about what's going wrong.
figured it out, it turns out i needed to get rid of the ac_dirs from the configure file, this fixed the issue
I've had this problem, and found it was due to the following line in configure.ac:
AC_CONFIG_AUX_DIR([build-aux])
The line wasn't bad per se, however it needed to be moved closer to the top of the configure.ac file.

Resources