I'm getting this syntax-error.
I enabled the button-radius in settings.scss in foundation and got returned with this error.
Syntax error: Undefined variable: "$global-radius".
on line 348 of scss/_settings.scss
from line 1 of scss/app.scss
Use --trace for backtrace.
checked both of the files and can't seem to see the problem.
// We use this to set the default radius used throughout the core.
$button-radius: $global-radius;
// $button-round: $global-rounded;
Thanks in advance!
$global-radius is either not defined, or is commented out. Try adding:
$global-radius = 3px;
at the top of your _settings.scss file and see if that fixes the problem. Or do a search for the $global-radius variable to make sure it's not commented out.
Related
I'm relatively new to Ember development, but keen to do things the right way.
For logging, I used to use Ember.Logger.log('blah'); but that now throws warnings in the console that it's deprecated. There's a link in the warning to https://emberjs.com/deprecations/v3.x#toc_use-console-rather-than-ember-logger, which recommends using console instead.
So I switch to console.info('blah');, but now when I do ember serve there's a bunch of "problems" like:
/Users/mick/Projects/Pop Up Eats/Vendor Website/app/routes/application.js
22:3 error Unexpected console statement no-console
27:3 error Unexpected console statement no-console
✖ 2 problems (2 errors, 0 warnings)
What am I supposed to do? Am I missing something?
This is just an Eslint error.
You can change it to be a warning/not an error anymore by going to your .eslintrc.js file and by adding this to your rules:
rules: {
"no-console": 0 //which turns the rule off
}
OR
rules: {
"no-console": 1 //which will just warn you about the console logs
}
I hope it helps.
I have read this blogpost http://www.ics.com/blog/qt-tips-and-tricks-part-1 and tried to enable plugin debugging as described.
I've put this line in my main.cpp:
qputenv(QT_DEBUG_PLUGINS, 1);
But if I try to compile I'm getting this error:
.../src/main.cpp:14: error: 'QT_DEBUG_PLUGINS' was not declared in this scope
qputenv(QT_DEBUG_PLUGINS, -1);
What is the problem here and how do I have to do it right?
qputenv("QT_DEBUG_PLUGINS", QByteArray("1"));
But I don't get any additional output.
I'm using Qt5.5.1 with QtCreator 3.6 under KUbuntu 15.10.
You're supposed to set env variable from outside your program, not from inside! It's very likely the plugin loading you're interested into already happened by the time you reach that line. Try putting it before creating a Q*Application object.
– peppe
That's it. It was definitely set before plugin loading, but it seems to be important to set it before creating Q*Application as you wrote. Thank you.
– avb
Specifying $include-html-classes to false and then importing Foundation 5 to your Sass file still generates a bunch of CSS. Looks like some of it is meta stuff for versioning information I suppose, but some of it looks like HTML classes. I thought the whole point of using this variable was to remove HTML classes?
Here's my SCSS file:
#import "../foundation/settings";
$include-html-classes: false;
#import "foundation";
This wasn't a problem in Foundation 4. What are these styles and how can I get rid of 'em?
This looks like it is a bug where new presentational classes have been added above the conditionals. Since you question is how to fix it, here is the process if you don't want to wait until it is fixed officially.
Move your Scss into a different directory or fork the foundation bower repo.
Update your config.rb (line 2) to point to the new files, this is relative to your project directory
# Require any additional compass plugins here.
add_import_path "some_other_directory/foundation/scss"
Then you will need to modify each file that generates presentational classes. Luckily Compass/Sass gives us the exact place to look.
/* line 259, ../bower_components/foundation/scss/foundation/components/_global.scss */
meta.foundation-version {
font-family: "/5.1.0/";
}
On line 296 you will see the conditional line:
#if $include-html-global-classes {
and all of the classes that have been added above it.
You will need to move this line to 260 and it should look like the following.
#include exports("global") {
#if $include-html-global-classes {
meta.foundation-version {
font-family: "/5.1.0/";
}
Since this is Scss you could either leave or correct the indentation to match.
You would need to repeat this for each file that generates CSS with Compass. If you are running compass watch, you can just check or reload your stylesheets/app.css after each correction.
I am having an issue with the following import
#import "../foundation/components/top-bar";
I get Line 342 of _top-bar.scss: Undefined variable: "$row-width"
Unfortunately I can't find much documentation about this variable.
Digging into the source of _top-bar.scss I get to the offnding line 342:
.contain-to-grid .top-bar { max-width: $row-width; margin: 0 auto; }
The documentation says about .contain-to-grid:
If you want your navigation to be set to your grid width, wrap it in div class="contain-to-grid".
This means the class is optional. Therefore shouldn't $row-width be set to some sort of default to prevent the above error appearing (i.e if I decide I don't want to use .contain-to-grid)?
Variables such as the one I encountered are defined either in a templates/project/scss/_settings.scss or my own settings.css. Therefore I created my own copy of the original _settings.scss and imported it (i.e #import "settings";).
In other words it was in the documentation the whole time under the section "Using Sass Standalone".
That's the error I get when I run this code :
if(mysqlpp::UseQueryResult res = conn.query(sql).use())
Whats more interesting is that the next line doesn't have any problems
while(mysqlpp::Row row = res.fetch_row())
Really driving me crazy. I've even manually included result.h
I tried all combos of these
include result.h, mysql++.h, connection.h
Is it possible that you're using an old version of MySQL++? The StoreQueryResult class used to be called Result before version 3.0.0.
Edit: Er... and UseQueryResult used to be called ResUse, which is a bit more relevant to your error message.