<pca006132>
I just looked at the QsciScintilla highlighting issue, it is definitely doing some heavy lifting in setStyling, but for some reason I cannot break on that with gdb...
<InPhase>
Inlined maybe?
<InPhase>
If so, a debug build should fix that.
<pca006132>
maybe
<pca006132>
but anyway, I just guess that it is doing something crazy with that API and changed to the batch API and it works
<pca006132>
the batch API is not exposed with QsciScintilla for some reason
<pca006132>
need to use their raw event API
kintel has joined #openscad
<kintel>
pca006132 I was also unable to break in a debugger. Had to hunt a bit to find the issue..
<pca006132>
well the batch API works
<pca006132>
just a bit annoying when you worked around the issue but have no idea what the root cause is...
<kintel>
That's a nice find! I'm a bit swamped so I'll leave it open for a while until someone else (or myself) has time to clean this up.
<pca006132>
not sure if it is something in QsciScintilla or openscad's use of it, the CustomLexer API is not used for the builtin lexers, so it is kind of normal to have performance issues there
<kintel>
I'm secretly hoping to adopt a different editor components at some point, as we're building too much custom stuff here I feel
<teepee>
we have to, but right now I'm not seeing much options
<pca006132>
idk with Qt
<teepee>
the obvious one would be core scintilla - which would mean totally different lexer stuff though
<pca006132>
probably not that different, we are already kind of skipping the Qt API and directly sending events to it
<kintel>
I'm almost thinking webview :) as there's where most work in this domain seems to happen these days. ..but that's not cool material to wade through
<teepee>
zed is not a library by any chance?
<pca006132>
vscode's base editor is a library
<pca006132>
we use it in manifoldcad.org
<pca006132>
snappy, with support for lsp
<pca006132>
I think if there is big refactoring to openscad, ideally we should split the rendering and execution into its own library, so python packages for example can directly link to that
<pca006132>
but probably too radical
<kintel>
full web UI is of course and interesting direction, but a lot of work
<kintel>
zed did its own GPU-based UI framework. In rust. + and editor on top
<pca006132>
iirc their framework is intended for internal use only, with unstable APIs
<kintel>
yeah, looks like it
<kintel>
I just don't really want to start a OpenSCAD-ng"
<kintel>
..i.e. a project with a 10-year timeline and no release...
<dTal>
with embedded AI blockchain
<pca006132>
lmao
<pca006132>
but true, too much work
<pca006132>
probably more useful to spend time optimizing things people really care
<kintel>
Heh, let's wait until some AI can vibe-port OpenSCAD to the web and let it maintain that ;)
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kehet has joined #openscad
Kehet has quit [Changing host]
Kehet has joined #openscad
bitbasher has quit [Ping timeout: 276 seconds]
drfff has joined #openscad
sculptor has quit [Ping timeout: 268 seconds]
sculptor has joined #openscad
sculptor has quit [Changing host]
sculptor has joined #openscad
sculptor has quit [Ping timeout: 252 seconds]
bitbasher has joined #openscad
ccox_ has joined #openscad
ccox has quit [Ping timeout: 252 seconds]
snaked has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
biscornu has joined #openscad
teepee_ has joined #openscad
Guest6 has joined #openscad
teepee has quit [Ping timeout: 244 seconds]
teepee_ is now known as teepee
<Guest6>
Hey All, just looking for some help with some openscad code I have, I'm trying to put 4 holes in a torus evenly spaced along the centerline, perpendicular to the tube of the torus itself, all the way through the body of the torus. Where should I provide the code that I have?
<InPhase>
Comment out "torus();" on the third last line.
<InPhase>
Then you will see your holes.
<Guest6>
InPhase copy that.
<InPhase>
Or you can comment out the difference to see both at once.
<InPhase>
You will find the placement unsatisfying. :)
<InPhase>
Guest6: Note that if you split your rotate, it will fit your imagination of what it should do better. rotate([0,0,angle]) translate(...) rotate([0,90,0])
biscornu has quit [Quit: Client closed]
<InPhase>
But make sure you understand why.
<Guest6>
Yeah, I saw the placement, looks like a cross in the middle. Needless to say, I had Github Copilot write it from instructions. :-/