Comments (8)
I have found the same issue:
Environment
re-frame-10x: 1.5.0
Linux Ubuntu: 22.04.x
Chrome: 105.0.5195.125 (Official Build) (64-bit)
re-frame: 1.3.0
devtools: 1.0.6
highlight.js: 11.6.0
from re-frame-10x.
Update: confirmed that downgrading 10x to 1.3.0 solves the problem; I'll just go with that for now on our project (but happy to test other solutions if/when that would be helpful).
from re-frame-10x.
Update 2: created a minimal-ish repro by creating a project with
lein new luminus crash10x +shadow-cljs +cljs +re-frame
and removing re-frisk from the project, adding preloads etc for 10x, and changing the event fn
s to fn-traced
so there'd be something present in the Events tab. Should have made an initial commit after the creation with luminus but didn't think to at the time, apologies.
That's here: https://github.com/eggsyntax/crash10x
from re-frame-10x.
The root cause is incorrect usage of Highlight.js
- in highlightjs/highlight.js#3057 they effectively removed undocumented ability to highlight children elements by calling highlightElement
in their common parent. And it seems that that ability have never really been there in the first place - I tried rolling back to multiple versions of Highlight.js
, all the way to 10.7 (apparently the smallest version where the API required by re-frame-10x
is supported), to no avail.
It seems to me that a proper fix would be to:
- Incorporate
re-highlight
intore-frame-10x
because IMO changes required for a fix go beyond the scope ofre-highlight
(and seems that that library was created specifically forre-frame-10x
in the first place - not sure why those trivial 15 lines weren't written withinre-frame-10x
in the first place; I'm also not sure why it sets the non-publiccalled
property - it doesn't seem like it should do anything at all in the versions ofHighlight.js
that have the required API) - Rewrite this block in such a way so that it's still in the same
[:pre [:code ...]]
buthighlightElement
is called on each child separately (of course, each child will have to be wrapped in aspan
)
Alternatively, the scope of re-highlight
could be expanded so it supports highlighting within highlighting, and then hljs-compatible?
could be removed - it should be completely opaque to re-frame-10x
whether the right version is used or not.
from re-frame-10x.
Related Issues (20)
- [Enhancement]: 1.2.0 "copy object" should allow non object elements to be copied HOT 3
- [Bug]: 1.2.0 app-db inspector major performance slowdown HOT 10
- [Bug]: <tr> cannot appear as a child of <table> HOT 19
- [Bug]: Clicking collapse / expand arrow icons always expands / collapses the whole app state HOT 4
- [Enhancement]: Add toggle option to turn on/off path annotations for app-db
- [Bug]: Viewing events tab causes panel to crash when using `figwheel.main`'s `:target :bundle` option. HOT 2
- [Bug]: Path inspector left and right-click issues HOT 12
- [Enhancement]: Path inspector left and right-click suggestions HOT 7
- [Bug]: UI doesn't update as you scroll through epochs in Event History panel HOT 4
- [Bug]: Cannot upgrade to Clojure(Script) 1.11 due to inlined garden dependency
- [Enhancement]: Show whether subs are a cache-hit or miss? HOT 1
- [Bug]: ReactJS 18 compatibility "ReactDOM.render is no longer supported in React 18" HOT 2
- [Bug]: app-db path input too narrow in non-webkit browsers
- [Bug]: event history (epoch) arg expansion faulty HOT 2
- [Enhancement]: Pass in (some) default settings to init!. HOT 2
- [Bug]: Panel does not update when dereferencing a React ref in reagent atom HOT 1
- [Bug]: react-highlight.js prevents me from updating to React 17 HOT 3
- [Bug]: goog.ui usage incompatible with shadow-cljs 2.22.0 and google-closure-library v20230227 HOT 4
- [Bug]: highlight.js/lib/languages/gml.js error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-frame-10x.