Version 1.14.0 crashes when used in Spectacle
See original GitHub issueVersion 1.14.0 appears to have introduced a breaking change to spectacle, which I initially reported to them but probably really belongs here.
The prism portion of the stacktrace:
Uncaught TypeError: Cannot read property 'buildPlaceholders' of undefined
at prism-handlebars.js:30
at Object.run (prism-core.js:451)
at highlight (prism-core.js:280)
Apparently introduced in this commit.
Please let me know if I can provide any more information. Many thanks for the time and effort.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
Second Life 1.14.0 Viewer Released
Followed the prompt to download new version, and since then it crashes immediately without even getting me to the log-in stage!! Now, normally...
Read more >Immediate Crash - TeamViewer Community
New install. MacBook Pro. High Sierra, 10.13.3 Crashes right after install. What should I try next? Process: TeamViewer [925]
Read more >1.14 Crashing in every match I join - General Error Reporting
Hello,. Ever since the update I've crashed in 5 out of the 6 matches I have joined. I have tried restarting my computer,...
Read more >Changelog - Docs - Snap Inc.
Fixed a bug that caused a crash when running on the simulator. Removed support for Bitcode. It's recommended to set the ENABLE_BITCODE flag...
Read more >Cyber Engine Tweaks at Cyberpunk 2077 Nexus - Nexus Mods
Version. 1.21.1. Download: Manual. 5 items. Set keybind when CET first launches + settings. Make sure to use ... Virus scan. Safe to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am sorry if I’m being slow, I just really do not understand how this isn’t a breaking change. We upgrade a minor version of prism and suddenly our code doesn’t work anymore.
Hi.
I’ve took the time to wonder about this since you posted this issue.
Prism provides no insurance that the dependencies between the components won’t change. It does provide the insurance that the files
components.json
(andcomponents.js
) will contain the required information regarding those dependencies.Furthermore, we usually assume that users using Prism in the browser will get a bundle from the Download page. If they were to upgrade to 1.14 using the “redownload URL” on this page, there would be no problem. The ones who don’t can still use the Autoloader plugin if they don’t want to handle the dependencies themselves. Users using Prism with Node are encouraged to use the
loadLanguages()
helper function, introduced in 1.13, if they want the dependencies to be automatically handled.For the rest of the users, the ones who decided, on their own, to manually handle those dependencies, yes 1.14 will break their code, regarding the ERB, Handlebars, PHP and Smarty components.
Taking all of this into account, I don’t consider 1.14 a BC-breaking release.
I’m really sorry this introduced an issue on Spectacle’s side, yet the way they handle the dependencies is not really realiable. I don’t know their use case, but they should probably have come to us (and maybe they still should) so we could discuss to find a better solution.