Why is PHPStorm giving me a "a term expected" error on a SASS map? - sass

$ sass -v
Sass 3.4.2 (Selective Steve)
PHPStorm 7.1.3
Open a new .scss file and add:
$objects: (vegetable: carrot, mineral: salt, animal: chicken);
On each colon within the map PHPStorm gives me a red squiggly error stating "a term expected".

Why is PHPStorm giving me a “a term expected” error on a SASS map?
Because this feature was introduced in SASS v3.3 (released on 7th of March 2014) .. and PhpStorm v7.1.3 (at the end February 2014) does not support that version.
Such support was added later and will be available in upcoming PhpStorm v8. You can try latest public EAP build if you wish so now: http://eap.jetbrains.com/phpstorm

Related

Implicit declaration of function is invalid error for Perl module install on macOS Monterey

I'm trying to install the Text::Unaccent module for Perl (5.30.3) using cpan (1.64) on macOS Monterey 12.4 but I'm getting 12 warnings and 1 error:
Unaccent.xs:109:10: error: implicit declaration of function 'unac_debug_callback' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
unac_debug_callback(in, unac_debug_print, NULL);
My understanding is that this is some kind of missing header file? I've installed a few other Perl modules successfully, this is the first problem I've come across. I've installed xcode and the command line tools are installed and up to date.
An example of the warnings is:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.0.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE/perl.h:545:21: note: expanded from macro 'STMT_END'
# define STMT_END )
This is not a custom Perl build, its the default installation. Is there other package/library that I need to install to get passed this?
macOS Monteray 12.4 (Intel)
/usr/bin/cpan version 1.64 calling Getopt::Std::getopts (version 1.12 [paranoid]),
running under Perl version 5.30.3.
xcode-select version 2395

Enum frequencies - error UndefinedFunctionError

I am trying to use Enum function frequencies but it isn't work.
Base on documentation Enum - Elixir v1.10.2
When I try to use that example:
Enum.frequencies(~w{ant buffalo ant ant buffalo dingo})
# OR
Enum.frequencies(["ant", "buffalo", "ant", "ant", "buffalo", "dingo"])
I always revive error:
** (UndefinedFunctionError) function Enum.frequencies/1 is undefined or private
I have already tried to execute that code example at iex shell, .ex file body and online Repl.
My local elixir version Elixir 1.9.4 (compiled with Erlang/OTP 22)
It seems to me that I miss some essential point at documentation, so I am looking for some pro tip ;)
The documentation what you provided is describes Elixir v1.10.2 but you use Elixir 1.9.4. Looks like the function Enum.frequencies/1 is not exist in Elixir 1.9.4 at all and this function was added in version 1.10.0 and higher. By this reason you see error. I suppose, if you need to use Enum.frequencies/1, you need upgrade Elixir to latest version or at least until of version 1.10.0.

libssh2 version 1.2.9 or higher required for set_timeout support

I am trying to use Net::SSH2 in the following the Perl code, but I am getting this error
libssh2 version 1.2.9 or higher required for set_timeout support at test.pl line 8.
1.2.566053SSH-2.0-libssh2_1.2.5
Press any key to continue . . .
use strict;
use Net::SSH2;
#use Net::SSH2::Expect;
my $Hostname = 'xxxxxxxxxx';
my $ssh = Net::SSH2->new();
print $ssh->version();
$ssh->timeout( 10 );
#$ssh->connect( "xxxxxxxx" );
I can see that my libssh2 version is old. Can somebody please help me with how to upgrade the libssh2 version?
I would highly recommend upgrading your version of Perl, using a native Windows application. If you install the most recent version of Strawberry Perl (5.24.1.1 at time of writing), it includes libssh2-1.7.0. It then allows you to successfully build, install and use Net::SSH2.
Here's the output of your code:
c:\>perl ssh.pl
1.7.067328SSH-2.0-libssh2_1.7.0
It appears as though it's been in the builds for a while, but if you're upgrading, I'd go latest and greatest.

linter-ruby atom not working

I just installed the linter-ruby package on atom and restarted the editor, but it doesn't detect any errors on my ruby files nor does it highlight the corresponding "end" to the "def"s. Is there something I'm missing? I have linter 1.11.21 and linter-ruby 1.2.4 installed. Below is a pic of all my packages install -
To get Linter to work for me (windows 7) with atom and ruby I installed these packages: Busy-signal, intentions, linter, linter-ui-default (these 4 by steelbrain), & linter-ruby (AtomLinter)
Hope this helps!

Use Map Data Type with Compass [duplicate]

This question already has answers here:
Is Sass 3.3 compatible with Compass?
(3 answers)
Closed 7 years ago.
I am using Compass with Sass (v 3.3 Maptastic Maple) and I am trying to use the new maps data structure. I am using grunt watch with compass, however when using the new maps syntax, it throws an error everytime I run grunt.
$colors: (
header: #b06,
text: #334,
footer: #666777
);
This is the error:
error sass/main.scss (Line 73 of sass/base/_variables.scss: Invalid CSS after " header": expected ")", was ": #b06,")
How can I use the new sass maps with compass?
I managed to get compass to compile the new syntax by installing the alpha of the latest version.
gem install compass --pre
Should do the trick.
I had the same issue with you, and after few hours of trying and googling, I found 2 solutions:
If you can, use grunt-contrib-sass instead.
But if you need to use grunt-contrib-compass, check the answer at this one Is Sass 3.3 compatible with Compass?

Resources