Editing code in external editors (VSCode, Atom, BBEdit etc)?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Would you like to be able to edit code in a 3rd party professional code editor?

i do this regularly
5
36%
Yes, but find it too cumbersome to do this regularly
2
14%
Yes, but not sure how that would work
3
21%
Not sure, LiveCode IDE is probably OK
1
7%
No definitely not, integrated LiveCode IDE all the way
3
21%
 
Total votes: 14

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by stam » Fri Sep 16, 2022 1:37 pm

Hi all,
I'm curious what proportion of people here use external code editors to edit longer scripts (probably not many I suspect), how many would like to be able to do this and how many think this is a waste of time...

As you know there are some options allowing use of external code editors such as Atom, BBEdit and VSCode (the latter is my preference) for editing of LiveCode scripts.

Other than vastly superior performance speedwise, these offer many other advantages such as high performance split screen editing (same or multiple files, horizontal or vertical), direct/automatic integration with GitHub, snippet manager integration etc, and a huge variety of code colouring schemes created for any number of languages.

Almost all options for this are free and with freely available addons, you get LiveCode syntax formatting, syntax colouring, syntax error checks/linting. The only thing you can't do is step through running code to debug.

I really like the idea of this, but wondered what others thought...

Stam

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by richmond62 » Fri Sep 16, 2022 2:03 pm

superior performance speedwise
Quite possibly: the 'only' problem is that my brain does not work 'superior performance speedwise'. 8)

SparkOut
Posts: 2852
Joined: Sun Sep 23, 2007 4:58 pm

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by SparkOut » Fri Sep 16, 2022 4:02 pm

I do use VSCode - most specifically for server scripts, where debugging is a horse of a different colour to IDE development.

Without live debugging I am loathe to leave the IDE for computer app development.

I haven't really done anything for Android for ages, and never on iOS so not sure how I would view scripting for mobile. Overall I do feel most comfortable doing LiveCode work "in" LiveCode. Definitely there are dome advantages in VSCode for server work though.

(I voted option 2 "cumbersome")

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by stam » Fri Sep 16, 2022 5:39 pm

SparkOut wrote:
Fri Sep 16, 2022 4:02 pm
Without live debugging I am loathe to leave the IDE for computer app development.
Hey SparkOut,

Without formal integration there is no way to do live debugging outside the IDE (several IDEs for other languages do provide this type of integration, would be nice if LC would consider this with the new IDE).
But then that's not really what i had in mind anyway. I was thinking more of when writing multiple and long scripts and when working with multiple libraries.

Currently it is quite cumbersome to do outside the IDE - but there is a way around this using script-only stacks for almost everything (obviously code that can't be moved out of IDE objects has to stay in the IDE, but that can be quite short code - for buttons etc)

The reason for the poll is primarily to consider an enhancement request - eg for the new IDE which is in the works. Full integration would be wonderful.

But in the mean time i'm also working a tool (for my own use) to create a system where practically all longer scripts can be edited in for example VSCode, directly uploaded to github etc, while making the changes instantly available to the IDE - and which of course can be edited in either the iDE or externally... If there is interest I'll spruce it up for public consumption...

S.

bwmilby
Posts: 440
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by bwmilby » Sat Sep 17, 2022 3:48 am

I export all of my scripts for GitHub tracking but don’t do much of my editing outside of LC. ScriptTracker makes this easy though. It just watches the folder of scripts and updates the object script when it changes. I could edit in anything and scripts would update when saved.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

matthiasr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 190
Joined: Sat Apr 08, 2006 7:55 am
Location: Lübbecke, Germany
Contact:

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by matthiasr » Sat Sep 17, 2022 9:02 am

I am using an editor for LC Server scripts (Sublime and sometimes Ultraedit) and sometimes i copy very large scripts from LC IDE to an external editor to do some tasks that are done faster with an external editor.
I voted for option 2 (cumbersome) as i really would prefer a much better editor.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9842
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by FourthWorld » Sat Sep 17, 2022 10:05 am

It seems the main driver for external editors is performance with large scripts, is that correct?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by richmond62 » Sat Sep 17, 2022 10:07 am

I suppose the sensible thing to do now is find a common feature-set for a 'much better editor.'

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by richmond62 » Sat Sep 17, 2022 10:35 am

I suspect that 'the main driver for external editors' is the ability to see different
parts of an enormously long script in different windows.

That is my only 'grunt' about the LiveCode script editor.

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by stam » Sat Sep 17, 2022 12:40 pm

FourthWorld wrote:
Sat Sep 17, 2022 10:05 am
It seems the main driver for external editors is performance with large scripts, is that correct?
Not entirely Richard, although it does matter.

For me at least, many other features like code folding, split screen editing, things like clicking on a variable instantly highlights all instances of the variable and many such very well thought out features are as important. Autoindenting, syntax colouring and syntax checking are a given.
These code editors are very mature and feature complete.

To me it makes sense to use these but ideally would be integrated with IDE so you wouldn’t have that back-and-forth, and the best code editors make such integrations very possible…

Stam

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by jacque » Sat Sep 17, 2022 5:41 pm

MetaCard had external editor integration but I don't think it always worked very well. For a while it was retained when LC acquired the company but was eventually discontinued.

I stay in the LC editor, partly because speed isn't an issue on my Mac, and partly because I probably don't know any better. I've turned off most of the auto-entry script options so it runs without any lag.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by richmond62 » Sat Sep 17, 2022 7:12 pm

I am just about to fiddle around with this:

https://codingfriends.github.io/Tincta/

stam
Posts: 2686
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by stam » Sat Sep 17, 2022 11:55 pm

They don’t mention on their site which 65 languages this supports… is LC supported?

rodneyt
Posts: 128
Joined: Wed Oct 17, 2018 7:32 am

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by rodneyt » Sun Sep 18, 2022 11:13 am

I do nearly all my Livecode coding in Sublime text using the Sublime to LC integration provided as part of the Levure framework. I also use Levure framework on nearly all my projects unless they are super-basic. Commit all code to Github repositories and uses Typora to write documentation in Markdown. For other coding I use VS Studio on a daily to weekly basis (NodeJS and frontend javascript mainly)

I appreciate the global search in Sublime allowing me to quickly search across codebase of a project. The script integration in LIvecode having to delare and import behaviour scripts into the stack and assign to objects is a bit of a pain, but more than offset by coding productivity benefits IMO.

Rodney

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9389
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Editing code in external editors (VSCode, Atom, BBEdit etc)?

Post by richmond62 » Sun Sep 18, 2022 2:26 pm

Re: Tincta:

1. Their website is sparse (that's a polite way of stating it contains almost no information at all).

2. I have NO idea what programming languages it, supposedly, supports:
-
SShot 2022-09-18 at 16.22.47.png
-
My response to that, also, being sparse:
-
SShot 2022-09-18 at 16.25.13.png
SShot 2022-09-18 at 16.25.13.png (3.11 KiB) Viewed 5289 times
-
Oops: Silly Richmond should have checked a few things first:
-
SShot 2022-09-18 at 16.26.53.png
-
My machine is an Intel Mac Mini, but it seems the processor type is not the problem.

Post Reply

Return to “Talking LiveCode”