WapplerSystems / ws_scss

SASS Compiler for TYPO3
12 stars 24 forks source link

Bug: showing typo error in clear form (file, line, etc.) #64

Closed AlbertGiss closed 4 months ago

AlbertGiss commented 2 years ago

It is currently the case that if there is a typo, only a getApplicationContext error is displayed. Unfortunately, this does not help with troubleshooting, especially if you take over a project from someone else and are not really familiar with the files.

Is a feature possible that shows a clearer representation of the error

Bildschirmfoto 2022-06-29 um 11 46 23 ?

The problem seems to be related to: https://docs.typo3.org/c/typo3/cms-core/11.1/en-us/Changelog/10.2/Deprecation-89631-UseEnvironmentAPIToFetchApplicationContext.html

used in: RenderPreProcessorHook.php Line 194

Using the new Call:

if(!Environment::getContext()->isProduction()) { DebugUtility::debug($ex->getMessage()); }

has fixed the bug