Old 04-03-2019, 11:20 AM   #761
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,671
Default

It needs to be separate commits because the download URLs must have the commit that last changed the script to allow downloading any indexed version. Then the index must also be committed to be released. The index can be hosted outside of the repository, in another repository or a secondary branch though.
cfillion is offline   Reply With Quote
Old 04-03-2019, 11:42 AM   #762
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,795
Default

Got it, thanks.
nofish is online now   Reply With Quote
Old 04-30-2019, 11:51 PM   #763
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 7,125
Default CSI

Hi cfillion,
Maybe you might want to comment on and help with this -> https://forum.cockos.com/showthread....3&page=72#2850
Thanks,
-Michael
__________________
www.boa-sorte.de
mschnell is online now   Reply With Quote
Old 05-08-2019, 04:36 AM   #764
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,584
Default

I got this strange error message after uploading new versions of a few scripts to ReaTeam GitHub:
Quote:
Done: Job Cancelled

This job was cancelled because the "Auto Cancellation" feature is currently enabled, and a more recent build (#2105) for branch master came in while this job was waiting to be processed.
juliansader is offline   Reply With Quote
Old 05-08-2019, 05:29 AM   #765
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,671
Default

I highly recommend using https://reapack.com/upload instead of writing the metadata and pushing commits directly on GitHub now.

"Auto Cancellation" aborts pending jobs when a newer commit is pushed before they're done to save time. The build for the latest commit failed because of:

Code:
1) MIDI Editor/js_Mouse editing - Arch and Tilt.lua failed:
  file not found 'js_Mouse editing - Arch and tilt.cur'
2) MIDI Editor/js_Panic - Stop all keystroke intercepts by scripts.lua failed:
  missing tag 'version'

Last edited by cfillion; 05-08-2019 at 06:03 AM.
cfillion is offline   Reply With Quote
Old 05-08-2019, 06:15 AM   #766
juliansader
Human being with feelings
 
Join Date: Jul 2009
Posts: 2,584
Default

Quote:
Originally Posted by cfillion View Post
2) MIDI Editor/js_Panic - Stop all keystroke intercepts by scripts.lua failed:
missing tag 'version'
Ugh, how stupid of me. Everything's now fine.
juliansader is offline   Reply With Quote
Old 05-14-2019, 06:46 AM   #767
romeo_despres
Human being with feelings
 
Join Date: Jan 2019
Posts: 23
Default

Hi,

Since I installed ReaPack, the auto-generated ReaScript API documentation says some new functions are available (e.g. ReaPack_AboutInstalledPackage), including for Python.

Yet I can't find how to import those functions and use them in actual Python ReaScripts. The only way I've found so far is to write myself a CFUNCTYPE wrapper around the C function available in reaper_python._ft['ReaPack_AboutInstalledPackage']... Am I missing something?

(Note: I have asked this question on a dedicated thread, but I copy it here to draw attention from competent people Maybe it's better to reply there for anyone having the same problem in the future)
romeo_despres is offline   Reply With Quote
Old 05-16-2019, 11:24 AM   #768
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,671
Default

Quote:
Originally Posted by romeo_despres View Post
The only way I've found so far is to write myself a CFUNCTYPE wrapper around the C function available in reaper_python._ft['ReaPack_AboutInstalledPackage']...
That's the correct way to use extension-provided API functions in Python ReaScripts.
cfillion is offline   Reply With Quote
Old 05-17-2019, 12:31 AM   #769
romeo_despres
Human being with feelings
 
Join Date: Jan 2019
Posts: 23
Default

Ok thanks! I guess I was looking for something pre-made like sws did with their "sws_python.py".
romeo_despres is offline   Reply With Quote
Old 05-17-2019, 07:31 AM   #770
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,223
Default

Under which license does ReaPack live?
And is it ok, if I add it to the installation-package of our Ultraschall-Podcast extension?
I want to integrate ReaPack in a way, that new users can download updates of Ultraschall without having to install ReaPack first by hand, as many of our users are not familiar enough with that.

And some other things, how difficult would it be to add an action, that allows automatic-closing of the dialogs? I would love to build an installer for our updater, and would love to put e.g. the "new extension installed"-dialog into it so the UI stays consistent.
I could do this via a hack using Julian's extension, but would want to avoid that.

And, is there a way to get somehow the errors happening, the last time ReaPack has synchronized? Would love to be able to deal with errors happening.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 05-24-2019, 09:26 AM   #771
DaveKeehl
Human being with feelings
 
DaveKeehl's Avatar
 
Join Date: Nov 2015
Location: Switzerland
Posts: 1,766
Default

Hi, I just started doing some scripts in lua for reaper and I wanted to know how I can add my own github repo to be used inside ReaPack. Can someone help me?

This is my repo: https://github.com/DaveKeehl/ReaScripts
DaveKeehl is offline   Reply With Quote
Old 05-26-2019, 10:51 AM   #772
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,223
Default

Cfillion posted useful links in his answer to my same question.
You can find it at: https://forum.cockos.com/showpost.ph...&postcount=724

The third answered question.
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 05-30-2019, 06:53 AM   #773
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 8,795
Default

Quote:
Originally Posted by cfillion View Post
The index can be hosted outside of the repository, in another repository or a secondary branch though.
Just to make sure, all of these would require changing my current repo import link and all users to update it in ReaPack?
If so, I think it wouldn't be worth it, just for a cleaner repo.
nofish is online now   Reply With Quote
Old 05-30-2019, 04:05 PM   #774
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,671
Default

Quote:
Originally Posted by mespotine View Post
Under which license does ReaPack live?
And is it ok, if I add it to the installation-package of our Ultraschall-Podcast extension?
I want to integrate ReaPack in a way, that new users can download updates of Ultraschall without having to install ReaPack first by hand, as many of our users are not familiar enough with that.
LGPL v3. I don't mind having a copy of ReaPack included in a free installation package. If ReaPack can be useful pre-packaged that way, then that's great!

Quote:
Originally Posted by DaveKeehl View Post
Hi, I just started doing some scripts in lua for reaper and I wanted to know how I can add my own github repo to be used inside ReaPack. Can someone help me?

This is my repo: https://github.com/DaveKeehl/ReaScripts
The easiest way is to use the package editor at https://reapack.com/upload to upload to the stock ReaTeam repositories.

If you prefer managing and promoting your own repository, then check out reapack-index and the index format documentation.

Quote:
Originally Posted by nofish View Post
Just to make sure, all of these would require changing my current repo import link and all users to update it in ReaPack?
That's right. Though there's also the possibility of moving the code instead of moving the index (eg. to an unrelated branch)... but that may end up being more confusing than useful.

Last edited by cfillion; 05-30-2019 at 07:06 PM.
cfillion is offline   Reply With Quote
Old 06-03-2019, 07:15 AM   #775
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,223
Default

I'm experimenting with ReaPack again recently and noticed, that file:/// seems not be accepted by ReaPack 1.2.2, only in 1.2.1. Is this a bug or intentionally?


I also tried to make an automatic web-installer for our Ultraschall-podcast-extension and I stumbled over an issue on Mac.

When I downloaded the installer-files, ReaPack opens the windows "ReaPack Notice" and a transaction-protocol.
On Windows, I managed to get and close them automatically, so I can move on with the installation-procedure automatically, as background-scripts still run.
On Mac, however, these dialogs stop all ReaScripts from working, until I closed them by hand.
So I wonder, is there a way to synchronize without the dialogs, somehow?

Even funnier, when I close the ReaPack Notice-dialog, the JS-extension still finds the hwnd of the window, as if it's still there.
Even ValidatePtr sees it as valid pointer.

The code I used to check this, is the following one:

Code:
function main()
  C=reaper.time_precise()
  A=reaper.JS_Window_Find("ReaPack Notice", true)
  B=reaper.ValidatePtr(A, "HWND*")
  --if A~=nil then reaper.JS_Window_Destroy(A) end
  reaper.defer(main)
end

main()
The A should be nil and the B should be false in this case.
Have no idea, whether it's an issue in JS-extension or Reaper, but when I try to do something with the "found hwnd", Reaper crashes, so it seems not to be there, somehow.

Is there a way around that?

Thanks
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Old 06-11-2019, 06:48 AM   #776
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 2,671
Default

Quote:
Originally Posted by mespotine View Post
I'm experimenting with ReaPack again recently and noticed, that file:/// seems not be accepted by ReaPack 1.2.2, only in 1.2.1. Is this a bug or intentionally?
Confirmed, all protocols except http(s) are accidentally disabled in v1.2.2's build of curl (only on Windows). Fixing...

As for the "ReaPack Notice" dialog for reminding users to restart REAPER after installing a package of the Extension type, which is a standard Win32 OS message box, SWELL is responsible of managing any related HWND (if any) on macOS/Linux. Maybe AppleScript would be able to close it (ugly hack though)?

The best solution would be to mark packages which only contains scripts as Script packages (defaults to writing to the Scripts folder unless overridden per-file). Then the restart notice dialog is not displayed.

Last edited by cfillion; 06-11-2019 at 06:54 AM.
cfillion is offline   Reply With Quote
Old 06-12-2019, 09:08 AM   #777
mespotine
Human being with feelings
 
mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig, Germany
Posts: 1,223
Default

Quote:
Originally Posted by cfillion View Post
Confirmed, all protocols except http(s) are accidentally disabled in v1.2.2's build of curl (only on Windows). Fixing...
Thanks

Quote:
As for the "ReaPack Notice" dialog for reminding users to restart REAPER after installing a package of the Extension type, which is a standard Win32 OS message box, SWELL is responsible of managing any related HWND (if any) on macOS/Linux. Maybe AppleScript would be able to close it (ugly hack though)?

The best solution would be to mark packages which only contains scripts as Script packages (defaults to writing to the Scripts folder unless overridden per-file). Then the restart notice dialog is not displayed.

Hmm...would be a workaround but only, if I don't install extension-updates as well, which we sometimes need to do with our own plugin.
The reason is, that I want to auto-restart it after it's done downloading, as the process I'm working on does this anyway.

Applescript or maybe Automator would be an option, but the problems I had with it, let me fear more problems than actual solutions

What about an entry in reapack.ini, which I can set? Like "show_finished_dialogs=true|false", so I can suppress the dialog temporarily and reset afterwards?
Checking for successful download can be done otherwise, so this would help me tons with that.


BTW: can I put a versionnumber for each file individually into a index-file, without having to create individual ReaPack-parts for them?
That way, I could optimize updating, so only changed files would be downloaded.

Oh...and...one Feature Request: an API-function, which allows me to get the currently installed ReaPack-version.
I think about building up a basic versioncheck-library for scripters, so they can show "xxx-plugin version xyz is missing" messages, which is far better for endusers than cryptic Lua-nilvalue-errors.
For that, I would need to check for the ReaPack-versionnumber as well.

Thanks
__________________
Ultraschall-API - a Lua-functions-library4Reaper: https://forum.cockos.com/showthread....98#post2067798
Reaper Internals - Developerdocs4Reaper: https://forum.cockos.com/showthread.php?t=207635
mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:48 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.