Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizer doesn't report Less compile errors (but does report syntax errors) #15296

Closed
tomillo opened this issue Dec 4, 2014 · 15 comments
Closed
Milestone

Comments

@tomillo
Copy link

tomillo commented Dec 4, 2014

I'm customizing the framework with my customs config.json, but when y click to the button "Compile and Download" it appears an alert with the url of my configuration and the download doesn't start. Is my problem or is it a bug?

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 4, 2014

Are you using Firefox by chance? See #15016.

@tomillo
Copy link
Author

tomillo commented Dec 4, 2014

Nope, i'm using Chrome

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 4, 2014

Can you post a link to the Gist of the configuration that you're using?

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

The Chrome inspector says this "Uncaught Error: error evaluating function darken: undefined is not a function"

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 5, 2014

Your customized values make use of a nonexistent @font-size-base-bold variable.

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

Thanks cvrebert. I fix that, but now the problem are the darken functions..

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 5, 2014

Well, it looks like we're not properly displaying the undefined variable error, so that's a bug in and of itself.

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

I'm sory, i don't understand you... What do you suggest?

@marfilag
Copy link

marfilag commented Dec 5, 2014

Hi!
I have the same problem since yesterday. I'm new to Bootstrap and I almost went crazy thinking I was doing something wrong. I tried with "all" browsers with old and new versions and nothing! What can we do?

cvrebert added a commit that referenced this issue Dec 5, 2014
…oCSS() can throw.

Currently these errors are only reported in the JavaScript console, not in the Customizer UI.
Refs #15296

[skip sauce]
[skip validator]
@cvrebert
Copy link
Collaborator

cvrebert commented Dec 5, 2014

@marfilag Try it again now. You should at least get an error message this time (unless it's the mysterious Firefox bug).

@cvrebert
Copy link
Collaborator

cvrebert commented Dec 5, 2014

@tomillo Your subsequent problem is due to setting @btn-danger-border (and similar) to none instead of a color.
Less doesn't communicate the error very well, but the summary is that those variables must be colors, since they're used in color calculations elsewhere (in particular, they are used in some darken() invocations).

@cvrebert cvrebert closed this as completed Dec 5, 2014
@cvrebert cvrebert changed the title Customizer: impossible to download Customizer doesn't report Less compile errors (but does report syntax errors) Dec 5, 2014
@marfilag
Copy link

marfilag commented Dec 5, 2014

Oh yeah, I could already download it from Firefox ... I love you guys, thanks!

Note: I also had to correct a mistake: I did not understand very well the error message, but when I made some changes was solved.

@tomillo
Copy link
Author

tomillo commented Dec 5, 2014

Thankyou @marfilag. Now i can download!

@cvrebert cvrebert added this to the v3.3.2 milestone Jan 8, 2015
@twbs twbs locked and limited conversation to collaborators Jan 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants