discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

external editors and IDEs?

JB
Jordan Brown
Wed, Nov 6, 2024 4:15 AM

On 11/5/2024 2:02 PM, Todd Allen via Discuss wrote:

Of these options
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD
any thoughts for what I should try first or ones to be avoided?  Any
good options not in that list?

Somewhat OT, but in looking at that page I see that it says that an
external editor allows you to better use a multi-monitor configuration,
putting the 3D view on one monitor while putting the editor and whatnot
on the other monitor.  That advice is at best dated; undocking the
editor and other panes to separate windows lets you do the same with the
built-in editor.  I removed those bits from the page.

On 11/5/2024 2:02 PM, Todd Allen via Discuss wrote: > Of these options > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD > any thoughts for what I should try first or ones to be avoided?  Any > good options not in that list? Somewhat OT, but in looking at that page I see that it says that an external editor allows you to better use a multi-monitor configuration, putting the 3D view on one monitor while putting the editor and whatnot on the other monitor.  That advice is at best dated; undocking the editor and other panes to separate windows lets you do the same with the built-in editor.  I removed those bits from the page.
MH
Matthieu Hendriks
Wed, Nov 6, 2024 5:05 AM

I'm using VIM since I'm used to edit all my programs and text files with
this editor. I adapted the openscad code a little so when opening a file
from openscad it automatically opens the file in VIM. VIM has syntax
coloring code for openscad. Works pretty good.

Met vriendelijke groet,

Matthieu Hendriks


David Phillip Oster via Discuss schreef op 2024-11-05 23:09:

I use Xcode as my external editor for OpenSCAD, since I am already
using it for most of my other work.

On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss
discuss@lists.openscad.org wrote:

Of these options
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD
any thoughts for what I should try first or ones to be avoided?  Any
good options not in that list?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I'm using VIM since I'm used to edit all my programs and text files with this editor. I adapted the openscad code a little so when opening a file from openscad it automatically opens the file in VIM. VIM has syntax coloring code for openscad. Works pretty good. Met vriendelijke groet, Matthieu Hendriks ------------------------- David Phillip Oster via Discuss schreef op 2024-11-05 23:09: > I use Xcode as my external editor for OpenSCAD, since I am already > using it for most of my other work. > > On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss > <discuss@lists.openscad.org> wrote: > >> Of these options >> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD >> any thoughts for what I should try first or ones to be avoided? Any >> good options not in that list? >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org
RW
Rogier Wolff
Wed, Nov 6, 2024 10:02 AM

On Tue, Nov 05, 2024 at 04:28:09PM -0600, Todd Allen via Discuss wrote:

I'm most interested in hearing about the integration and workflow with
OpenSCAD when using these external tools.  For instance if one maintains
projects or sessions in an external editor with a large number of .scad
files what are the processes for preview, rendering, jumping to errors,
etc.?

I use Emacs for that. For each .scad I open a new instance of
openscad. I've set openscad to auto-preview. So I get error messages
in the openscad window the moment I hit "save". I then use goto-line
to find the offending error line. Yes I have to type the line number
manually.

This "works-for-me".

Roger. 

On Tue, Nov 5, 2024 at 4:09 PM David Phillip Oster <
davidphilliposter@gmail.com> wrote:

I use Xcode as my external editor for OpenSCAD, since I am already using
it for most of my other work.

On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

Of these options
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD
any thoughts for what I should try first or ones to be avoided?  Any good
options not in that list?


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233    **
f equals m times a. When your f is steady, and your m is going down
your a** is going up.  -- Chris Hadfield about flying up the space shuttle.
**  'a' for accelleration.

On Tue, Nov 05, 2024 at 04:28:09PM -0600, Todd Allen via Discuss wrote: > I'm most interested in hearing about the integration and workflow with > OpenSCAD when using these external tools. For instance if one maintains > projects or sessions in an external editor with a large number of .scad > files what are the processes for preview, rendering, jumping to errors, > etc.? I use Emacs for that. For each .scad I open a new instance of openscad. I've set openscad to auto-preview. So I get error messages in the openscad window the moment I hit "save". I then use goto-line to find the offending error line. Yes I have to type the line number manually. This "works-for-me". Roger. > On Tue, Nov 5, 2024 at 4:09 PM David Phillip Oster < > davidphilliposter@gmail.com> wrote: > > > I use Xcode as my external editor for OpenSCAD, since I am already using > > it for most of my other work. > > > > On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss < > > discuss@lists.openscad.org> wrote: > > > >> Of these options > >> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD > >> any thoughts for what I should try first or ones to be avoided? Any good > >> options not in that list? > >> _______________________________________________ > >> OpenSCAD mailing list > >> To unsubscribe send an email to discuss-leave@lists.openscad.org > >> > > > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org -- ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 ** ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 ** f equals m times a. When your f is steady, and your m is going down your a** is going up. -- Chris Hadfield about flying up the space shuttle. ** 'a' for accelleration.
TA
Todd Allen
Thu, Jan 2, 2025 5:14 PM

I, also, would suggest trying Visual Studio Code with the Leathong

extension.  It's not perfect, but it is quite helpful to me.

I tried and have continued using Kate which also supports LSP capabilities
via the Leathong server.  I haven't yet tried VSCode and went with Kate
first because it has an .appimage distribution which is my preferred choice
for applications as I like to keep my work and work environment on a server
and access it from multiple computers without needing to install
applications on every computer.  I have been satisfied with Kate providing
the main features I was looking for, especially named sessions which
maintain groups of opened files and the current position in each file with
split window editing of two or more files simultaneously.  Kate has an
external commands plugin which allows me to define commands for multiple
versions of OpenSCAD such as the latest daily and stable versions each
bound to a single keystroke shortcut.  I make a separate file to produce a
view of each part and assembly I might repeatedly look at within a project
and while editing I can open a preview or produce a rendering of any of
them with a keystroke or two.  Less important to me but now nice to have
are features such as configurable formatting and color syntax highlighting
schemes/themes and the LSP features to chase definitions, references,
documentation, etc.  In summary I'm glad I took a bit of time to look at
external editors and pleased to find integration with OpenSCAD exceeding my
expectations.

On Tue, Nov 5, 2024 at 5:45 PM Leonard Martin Struttmann via Discuss <
discuss@lists.openscad.org> wrote:

I, also, would suggest trying Visual Studio Code with the Leathong
extension.  It's not perfect, but it is quite helpful to me.

Len

On Tue, Nov 5, 2024 at 5:26 PM Todd Allen via Discuss <
discuss@lists.openscad.org> wrote:

Do any external tools communicate with OpenSCAD to open files, start a
render or interpret console output?

On Tue, Nov 5, 2024, 5:03 PM nop head via Discuss <
discuss@lists.openscad.org> wrote:

If you have a project that includes lots of other SCAD files then it
will generate a new preview if any of them change. If you want a render you
have to hit F6 in OpenSCAD.

On Tue, 5 Nov 2024 at 22:56, Harvey white via Discuss <
discuss@lists.openscad.org> wrote:

With Notepad++ you get no error feedback, but do get syntax recognition.

Typical workflow is to start the project (establish the file) in
OpenSCAD, then open that file in Notepad++.  Make changes to the source
file in Notepad++, then save.  That updates the screen.  If you have
the
OpenSCAD editor open at the same time, it should show you syntax errors
and debugging information.

The advantage of Notepad++ is that you get color syntax highlighting,
and a wider selection of completion options, although they are not
linked to OpenSCAD but rather what you've typed already.

If you want, you can link one version of OpenSCAD to each source file.

Harvey

On 11/5/2024 5:28 PM, Todd Allen via Discuss wrote:

I'm most interested in hearing about the integration and workflow

with

OpenSCAD when using these external tools.  For instance if one
maintains projects or sessions in an external editor with a large
number of .scad files what are the processes for preview, rendering,
jumping to errors, etc.?

On Tue, Nov 5, 2024 at 4:09 PM David Phillip Oster
davidphilliposter@gmail.com wrote:

 I use Xcode as my external editor for OpenSCAD, since I am already
 using it for most of my other work.

 On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss
 <discuss@lists.openscad.org> wrote:

     Of these options
     any thoughts for what I should try first or ones to be
     avoided?  Any good options not in that list?
     _______________________________________________
     OpenSCAD mailing list
     To unsubscribe send an email to

OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

> I, also, would suggest trying Visual Studio Code with the Leathong extension. It's not perfect, but it is quite helpful to me. I tried and have continued using Kate which also supports LSP capabilities via the Leathong server. I haven't yet tried VSCode and went with Kate first because it has an .appimage distribution which is my preferred choice for applications as I like to keep my work and work environment on a server and access it from multiple computers without needing to install applications on every computer. I have been satisfied with Kate providing the main features I was looking for, especially named sessions which maintain groups of opened files and the current position in each file with split window editing of two or more files simultaneously. Kate has an external commands plugin which allows me to define commands for multiple versions of OpenSCAD such as the latest daily and stable versions each bound to a single keystroke shortcut. I make a separate file to produce a view of each part and assembly I might repeatedly look at within a project and while editing I can open a preview or produce a rendering of any of them with a keystroke or two. Less important to me but now nice to have are features such as configurable formatting and color syntax highlighting schemes/themes and the LSP features to chase definitions, references, documentation, etc. In summary I'm glad I took a bit of time to look at external editors and pleased to find integration with OpenSCAD exceeding my expectations. On Tue, Nov 5, 2024 at 5:45 PM Leonard Martin Struttmann via Discuss < discuss@lists.openscad.org> wrote: > I, also, would suggest trying Visual Studio Code with the Leathong > extension. It's not perfect, but it is quite helpful to me. > > Len > > On Tue, Nov 5, 2024 at 5:26 PM Todd Allen via Discuss < > discuss@lists.openscad.org> wrote: > >> Do any external tools communicate with OpenSCAD to open files, start a >> render or interpret console output? >> >> On Tue, Nov 5, 2024, 5:03 PM nop head via Discuss < >> discuss@lists.openscad.org> wrote: >> >>> If you have a project that includes lots of other SCAD files then it >>> will generate a new preview if any of them change. If you want a render you >>> have to hit F6 in OpenSCAD. >>> >>> >>> >>> On Tue, 5 Nov 2024 at 22:56, Harvey white via Discuss < >>> discuss@lists.openscad.org> wrote: >>> >>>> With Notepad++ you get no error feedback, but do get syntax recognition. >>>> >>>> Typical workflow is to start the project (establish the file) in >>>> OpenSCAD, then open that file in Notepad++. Make changes to the source >>>> file in Notepad++, then save. That updates the screen. If you have >>>> the >>>> OpenSCAD editor open at the same time, it should show you syntax errors >>>> and debugging information. >>>> >>>> The advantage of Notepad++ is that you get color syntax highlighting, >>>> and a wider selection of completion options, although they are not >>>> linked to OpenSCAD but rather what you've typed already. >>>> >>>> If you want, you can link one version of OpenSCAD to each source file. >>>> >>>> Harvey >>>> >>>> >>>> >>>> On 11/5/2024 5:28 PM, Todd Allen via Discuss wrote: >>>> > I'm most interested in hearing about the integration and workflow >>>> with >>>> > OpenSCAD when using these external tools. For instance if one >>>> > maintains projects or sessions in an external editor with a large >>>> > number of .scad files what are the processes for preview, rendering, >>>> > jumping to errors, etc.? >>>> > >>>> > On Tue, Nov 5, 2024 at 4:09 PM David Phillip Oster >>>> > <davidphilliposter@gmail.com> wrote: >>>> > >>>> > I use Xcode as my external editor for OpenSCAD, since I am already >>>> > using it for most of my other work. >>>> > >>>> > On Tue, Nov 5, 2024 at 2:02 PM Todd Allen via Discuss >>>> > <discuss@lists.openscad.org> wrote: >>>> > >>>> > Of these options >>>> > >>>> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD >>>> > any thoughts for what I should try first or ones to be >>>> > avoided? Any good options not in that list? >>>> > _______________________________________________ >>>> > OpenSCAD mailing list >>>> > To unsubscribe send an email to >>>> discuss-leave@lists.openscad.org >>>> > >>>> > >>>> > _______________________________________________ >>>> > OpenSCAD mailing list >>>> > To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> _______________________________________________ >>>> OpenSCAD mailing list >>>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> To unsubscribe send an email to discuss-leave@lists.openscad.org >>> >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >