Does anyone know of a Lint tool for OpenSCAD. I'm sure there are lots of
dust bunnies in my code and could use help with their elimination.
Thanks,
Ken
On 30.10.24 17:02, khackbarth via Discuss wrote:
Does anyone know of a Lint tool for OpenSCAD. I’m sure there are lots
of dust bunnies in my code and could use help with their elimination.
Github search finds a couple of projects.
One that's (I belive) is used with the OpenFlexture project is this:
https://pypi.org/project/sca2d/
ciao,
Torsten.
You can also use chatgpt, so it says. It can tidy it up pretty good.
On 30/10/2024 16:33, Torsten Paul via Discuss wrote:
On 30.10.24 17:02, khackbarth via Discuss wrote:
Does anyone know of a Lint tool for OpenSCAD. I’m sure there are lots
of dust bunnies in my code and could use help with their elimination.
Github search finds a couple of projects.
One that's (I belive) is used with the OpenFlexture project is this:
https://pypi.org/project/sca2d/
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
On 30.10.24 18:02, Raymond West via Discuss wrote:
You can also use chatgpt, so it says. It can tidy it up pretty good.
All AI* results for OpenSCAD I've seen so far were just garbage.
It can do python quite well, probably due to the huge amount of
samples. OpenSCAD not so much.
ciao,
Torsten.
On 30/10/2024 17:05, Torsten Paul via Discuss wrote:
On 30.10.24 18:02, Raymond West via Discuss wrote:
You can also use chatgpt, so it says. It can tidy it up pretty good.
All AI* results for OpenSCAD I've seen so far were just garbage.
It can do python quite well, probably due to the huge amount of
samples. OpenSCAD not so much.
ciao,
Torsten.
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
It's getting much better. Folk expect too much, in general. Its an llm,
just a glorified search engine, but very easy to use. BUT at the moment,
you need to more or less know the answer, and test it for yourself. -
and patience is a virtue in getting it to write openscad script. It
tends to reassign variables, and use functions that exist in maybe c++,
but not openscad, you have to remind it to use degrees, not radians, but
it gets pdq to about 80% of the solution. The more it is used the better
it becomes.
I've just asked it about lint, gave it a rough draft of something I was
playing with, it tidied it up, improved some of the code, and created no
problems, and explains in detail what it was doing, responding in
milliseconds.
On 10/30/2024 9:02 AM, khackbarth via Discuss wrote:
Does anyone know of a Lint tool for OpenSCAD. I’m sure there are lots
of dust bunnies in my code and could use help with their elimination.
If you haven't already done it, the first step is to kill off all
OpenSCAD warnings. Then check Preferences / Advanced / OpenSCAD
Language Features / Warnings / Stop on the first warning.
Thanks, but I aways address Warnings immediately. I’m more interested in the dust bunnies under the bed where you can’t see them.
From: Jordan Brown openscad@jordan.maileater.net
Sent: Wednesday, October 30, 2024 10:46 PM
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Cc: ken@volksswitch.org
Subject: Re: [OpenSCAD] linter for OpenSCAD
On 10/30/2024 9:02 AM, khackbarth via Discuss wrote:
Does anyone know of a Lint tool for OpenSCAD. I’m sure there are lots of dust bunnies in my code and could use help with their elimination.
If you haven't already done it, the first step is to kill off all OpenSCAD warnings. Then check Preferences / Advanced / OpenSCAD Language Features / Warnings / Stop on the first warning.