Whist getting ready for iMoot I noticed that the source mapping of the LESS files in Shoelace for M2.9 (now using the core PHP LESS compiler) in Chrome was not getting the correct URI for the source file, i.e:
Thus if you clicked on this then the file would not be found = annoying!
So after trawling through the code I found that in '/lib/lessphp/SourceMap/Generator.php' (line 206) changing from:
$this->sources[$fileInfo['currentUri']] = $fileInfo['filename'];
$this->sources[$fileInfo['currentUri']] = $fileInfo['currentUri'];
rectified this to:
which means that now clicking on the file will take you to that file and line number = useful debugging of the theme.
So, before I create a tracker etc. Could you verify that what I've done is correct and ok please? Or is there another solution where it is as it was but because the way the library has been set-up for 'inline' source maps that setting it otherwise would cause breakage? But as this cannot be normally done except by editing core code that this is a good fix for Moodle.
To replicate, use Chrome with its web developer tools (F12), turn on theme designer mode and use the More theme.