Creating LiveCode applications that play well with git

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 06, 2017 6:05 pm

I will need to test the stack on Windows and get back to you. That error message isn't very helpful.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Fri Apr 07, 2017 6:35 pm

OK, thanks Trevor. Look forward to hearing your findings. I'm keen to get started with Levure!

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Wed Apr 12, 2017 6:16 pm

@jim1001 - I just tried creating a Levure project on Windows 10 with LC Business 8.1.3 and it worked. I tried with and without the git checkbox checked (after having installed git using the installer provided on the git website). The error you are seeing occurs when the project creation stack tries to download the zip file from http://github.com/trevordevore/levure/a ... master.zip. I don't know what a [1] error is. Which version of LiveCode are you testing with?
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu Apr 13, 2017 3:37 pm

Hi Trevor,

I'm using LC Community 8.1.3. I've just tried it a couple more times, once as an Administrator and once with a non-Administrator account. Deleted the folder then recreated it. Always get the same error.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 13, 2017 3:55 pm

I'm using Business. I'll download and install Community to test it.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 13, 2017 4:59 pm

It fails for me as well using Community. The error occurs when trying to initialize the git repository (the error message wasn't being captured and reported properly but I've fixed that). The error occurs when calling "git init". The error message is the following:

Code: Select all

'git' is not recognized as an internal or external command, operable program or batch file.
I was able to successfully run the Levure stack by doing the following:
  1. Click on Windows icon
  2. Search for "Edit the system environment variables".
  3. Open the control panel
  4. Click on "Environment Variables" button.
  5. Double-click on "Path" in the system variables list.
  6. Click on "Edit Text" button.
  7. Copy the "Variable value" text.
  8. In the message box execute "put the clipboarddata into $Path".
  9. Try running the Levure stack again.
I tried to create a bug report but now I can't get Community to fail. I'm not exactly sure what is going on with the $Path variable.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu Apr 13, 2017 5:45 pm

Trevor - thank you. I now see the git error. Since I'm using Portable Git I don't have git in my path. Of course I could install the fixed version. Alternatively, is it possible to leave Use Git blank & set up git to track the project manually following the steps in the wiki section If you checked the Use Git checkbox (https://github.com/trevordevore/levure/ ... t-checkbox) ?

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 13, 2017 5:54 pm

Yes, you could set up git manually after the fact. You would need to delete the "levure" folder and manually add Levure as a submodule.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Wed May 17, 2017 7:17 pm

I haven't managed to spend the time I need on this though I did manage to set up the project folder and run the starter app on Windows 7. I couldn't manage the project with Portable Git but was able to do so with a local Git install following Trevor's workaround.

Trevor - wonder if there any some simple examples of the framework in action? It is a great idea but for me at the moment it feels like a steep learning curve. It all starts to mist over when reading the page https://github.com/trevordevore/levure/ ... tarter-App. I'm not really sure where / how to start or what are the important / essential things that need to be done. Maybe looking at a real application that does a simple but practical task would help to grasp some of the descriptions.

Hope this may be possible. Thank you.

ps: What are conditions for using stub executables for testing? I guess it's not possible to be developing on Windows PC and instantly test as a standalone on a connected Android device?

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Wed May 17, 2017 8:48 pm

Jim,

There is a learning curve. This is very different than the traditional way of building LC projects. I really, really like it.

Maybe the videos are a good place to start just so you get some visuals before you try to work on a project.
https://www.youtube.com/channel/UCluXVD ... JmCMssc0fw

Also, I taught myself Levure using the wiki, so I think everything you want to know is in there.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu May 18, 2017 1:16 am

Jim,

I don't have any example apps available yet. The FAQ answers a couple of questions and may be useful:

https://github.com/trevordevore/levure/wiki/Levure-FAQ

What I would be interested in knowing is what you think the first thing is that you would like to do? The app generator provides a mostly blank canvas. Do you want to convert an existing app? Add a new ui stack and experiment? Ideally you could write your questions up under the Issues tab on the Github page. That helps us track what needs to be done.

As for the stub executables, they are only for macOS, Windows, and Linux. You should be able to use the Test feature in the IDE like you normally would.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu May 18, 2017 11:23 am

Mikey,

Thanks for your thoughts. I did have a look at some videos when I first saw Levure. But you have prompted me to go back and look again. There's a good chance they'll make more sense on repeat visits.
Thanks also for the reassurance that everything is in the wiki. No doubt it's hard to pitch it at a level suitable for all. I'm a relative rookie so have a lot to learn.

Trevor,

Thanks for your suggestions. I have an immediate task to create a new app for a mental health research project. I would consider converting an existing app if it would help me to create new Levure apps. Perhaps that could be a useful example - take an app that does a simple task (taken from an online lesson?). In one case convert it to Levure and in another, design it from scratch with Levure.

I wonder if you now use Levure for all your apps or only more complex ones? Maybe you use it for apps you are developing for someone else. I guess that the overheads mean using it for all apps would be overkill. Then again once you are in the swing I'm sure it would get quicker and easier and you can be assured that if you ever come back to an app it will be easier to understand, change, learn from and re-use.

For me, any example apps would help bring the user guide to life and perhaps highlight what is essential and what is not so important.

All the best,
Jim

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Thu May 18, 2017 11:52 am

Getting started was the hard part. This is not a setup I would recommend for the beginner. The pieces aren't all connected. SublimeText doesn't indent perfectly all the time. It does not show you all the mistakes that the script editor shows.

However, everything new that I have done has been using Levure, and most of those have been simple projects. The value of having git available can't be overstated. In one case, I made multiple changes to a script. When I did that I screwed something up. Because I had a version committed, all the changes were laid out, side-by-side, and I was able to undo certain changes and leave others.

I also like the way that I can submodule my various libraries. Before this, I had to keep track of every library, where it was used, which project used which version, etc. Now git does that for me.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Mon May 29, 2017 10:57 pm

jim1001 wrote: I wonder if you now use Levure for all your apps or only more complex ones? Maybe you use it for apps you are developing for someone else. I guess that the overheads mean using it for all apps would be overkill. Then again once you are in the swing I'm sure it would get quicker and easier and you can be assured that if you ever come back to an app it will be easier to understand, change, learn from and re-use.
Jim,

I will use Levure for all apps I work on going forward. I have converted the primary app my company develops already. I've also converted a simple iOS app I created a while ago. I will be converting the other app my company develops after I get version 1.0 of Levure released.

I recently updated the wiki home page with a list of reasons why I like using Levure. I think the reasons are valid regardless of the complexity of the app.

https://github.com/trevordevore/levure/wiki
jim1001 wrote:For me, any example apps would help bring the user guide to life and perhaps highlight what is essential and what is not so important.
While an example app is a definite bonus, if someone isn't able to figure out how to work on a Levure App using the existing docs then those need to be fixed first. I just pushed some significant updates to the framework in preparation for a 1.0 release. During the process I also made some adjustments to the Getting Started section of the wiki. I added a page that tells you how to add code and ui stacks to an app. Here is a link to the wiki. It would be very helpful it you could go through the wiki instructions again and let me know if you are able to get any farther.

https://github.com/trevordevore/levure/wiki/Get-Started
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

jim1001
Posts: 143
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Tue Jun 06, 2017 5:30 pm

Trevor,

Thanks for your updates. I've just returned to work after a break but will try & go through them asap then post any findings.

All the best,
Jim

Post Reply

Return to “Talking LiveCode”