discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

linter for OpenSCAD

K
ken@volksswitch.org
Wed, Oct 30, 2024 4:02 PM

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

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
TP
Torsten Paul
Wed, Oct 30, 2024 4:33 PM

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.

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.
RW
Raymond West
Wed, Oct 30, 2024 5:02 PM

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

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
TP
Torsten Paul
Wed, Oct 30, 2024 5:05 PM

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.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.
RW
Raymond West
Wed, Oct 30, 2024 8:54 PM

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 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.
JB
Jordan Brown
Thu, Oct 31, 2024 4:46 AM

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.

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.
K
ken@volksswitch.org
Thu, Oct 31, 2024 2:48 PM

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.

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.