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

Save concatenated less file on compiling error so we can better debug issues. #15370

Merged
merged 1 commit into from Jan 16, 2020

Conversation

diosmosis
Copy link
Member

No description provided.

@diosmosis diosmosis added the Needs Review PRs that need a code review label Jan 10, 2020
@diosmosis diosmosis added this to the 4.0.0 milestone Jan 10, 2020
@@ -46,6 +47,9 @@ protected function getMergedAssets()
try {
$compiled = $this->lessCompiler->compile($concatenatedAssets);
} catch(\Exception $e) {
// save the concated less files so we can debug the issue
$this->saveConcatenatedAssets($concatenatedAssets);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@diosmosis would that be only something for dev mode? Although I suppose it should be fine and not cause much of an issue.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to help debug a cloud error, so it would ideally be available in a prod setup. Without the concatted less files, debugging the error is basically impossible.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tsteur tsteur changed the base branch from 3.x-dev to 4.x-dev January 14, 2020 04:00
@tsteur tsteur merged commit 6cd3c4e into 4.x-dev Jan 16, 2020
@tsteur tsteur deleted the stylesheet-compile-fail-debug branch January 16, 2020 00:21
@mattab mattab changed the title Save concatted less file on compiling error so we can better debug issues. Save concatenated less file on compiling error so we can better debug issues. Jan 16, 2020
@mattab mattab added the c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants