|
|
|
10-13-2019, 10:01 AM
|
#41
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Thanks Steve, guess I'll have to try and parse the API docs myself if no one else does it.
|
|
|
10-13-2019, 12:09 PM
|
#42
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
That would be awesome, thanks for your effort!
|
|
|
10-13-2019, 01:30 PM
|
#43
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
This one is for Lua only also.
FWIW, I replace quotation chars with ' chars. Hopefully there isn't any HTML mixed in the code, .Net class is supposed to fix/clean all that for me but not working as expected so had to use a find/replace workaround.
BTW, this doesn't include Julian's API, I'm keeping them separate.
Re-Post Fixed HTML ' with space char.
Last edited by Edgemeal; 10-14-2019 at 08:03 PM.
|
|
|
10-13-2019, 03:22 PM
|
#44
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
1. The snippets that are up are what ausbaxter gave me ages ago, so no - you aren't using an outdated copy.
2. The problem with including returned parameters straight from the API docs is that you don't end up with valid Lua:
Code:
integer retval, number tracknumber, number itemnumber, number fxnumber = reaper.GetFocusedFX()
When parsing the original, are you able to split by comma to get the separate arguments and then only use characters after the space? I think that would work for all of them.
3. I'm happy to help get the parsing script sorted out and have it live in the repo if you want to open a pull request with what you've got so far. Maybe add a /parsing folder at the repo's root?
4. I've been wondering if this would be better served as an actual extension providing completion snippets rather than just being snippet files. Then it could have options for which extensions (SWS, JS, Ultraschall, my GUI, etc) to include. For example: https://github.com/microsoft/vscode-...letions-sample
|
|
|
10-13-2019, 03:44 PM
|
#45
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
1. OK Thanks.
2. Thats true, but I'd have to keep refering to the REAPER API docs if the return params aren't added. :/
3+. Honestly, I don't want to spend another minute on this, have fun!
|
|
|
10-13-2019, 03:52 PM
|
#46
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
Quote:
Originally Posted by Edgemeal
2. Thats true, but I'd have to keep refering to the REAPER API docs if the return params aren't added. :/
|
I just mean that you need to strip out "integer " from "integer retval" for it to work at all. As-is, if I use that snippet I'd have to manually remove the types every single time.
|
|
|
10-13-2019, 03:57 PM
|
#47
|
Human being with feelings
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
|
I just found an honest-to-goodness Lua language server for VS Code.
https://marketplace.visualstudio.com...me=sumneko.lua
It's even smart enough to tell me the default parameters for the classes in my GUI and offers method completion without having to manually create any snippets:
|
|
|
10-13-2019, 11:27 PM
|
#48
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Quote:
Originally Posted by Lokasenna
I just mean that you need to strip out "integer " from "integer retval" for it to work at all. As-is, if I use that snippet I'd have to manually remove the types every single time.
|
Ya, I thought it would be helpful, but it does make coding a lot harder.
Re-parsed the api docs into one snipet file, but still only Lua. Removed all the 'type-names' from all params, and made optional params into one word,..
Code:
retval, optional_key, optional_val = reaper.EnumProjExtState(proj, extname, idx)
You can build the snippet file yourself, see post #54.
Or for my latest posted snippet file see,
https://stash.reaper.fm/v/38109/ReaS...e-snippets.zip
Last edited by Edgemeal; 04-08-2021 at 07:26 AM.
|
|
|
10-14-2019, 04:44 AM
|
#49
|
Human being with feelings
Join Date: Oct 2017
Location: Black Forest
Posts: 5,054
|
Thanks a lot for doing this! Loving it
|
|
|
03-31-2020, 09:42 AM
|
#50
|
Human being with feelings
Join Date: Mar 2020
Location: IJsselstein, Netherlands
Posts: 435
|
More color highlighting
I didn't search the forum for tools, what I will do next time, but only the marketplace of vscode. I created my own color highlighting for the reaperTheme and the rtconfig.txt files which are available in the marketplace. (just search for reaper)
You can check it out here: https://marketplace.visualstudio.com...pluisje.reaper.
Last edited by Navelpluisje; 03-31-2020 at 10:15 AM.
|
|
|
04-04-2021, 10:10 PM
|
#51
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Quote:
Originally Posted by Edgemeal
Ya, I thought it would be helpful, but it does make coding a lot harder.
Re-parsed the api docs into one snipet file, but still only Lua. Removed all the 'type-names' from all params, and made optional params into one word,..
Code:
retval, optional_key, optional_val = reaper.EnumProjExtState(proj, extname, idx)
EDIT: Updated snippet file, Oct 16, 2020
ReaScript API (REAPER v6.15rc1/x64)
SWS v2.12.1.0 (BETA Oct-16-2020)
js_ReaScriptAPI v1.217
Download, https://stash.reaper.fm/v/38109/ReaS...e-snippets.zip
|
Hey Edgemeal I still use this with @gfxray I like that with his extension I get mouse over info but with the snippets I get the autocomplete with the variables there. Are you planning to update this from time to time or you think it will no longer be updated ? Thanks for this
Have you added ImGUI functions or they appear here by magic o.o?
Last edited by daniellumertz; 04-04-2021 at 11:44 PM.
|
|
|
04-05-2021, 07:06 AM
|
#52
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Quote:
Originally Posted by daniellumertz
Hey Edgemeal I still use this with @gfxray I like that with his extension I get mouse over info but with the snippets I get the autocomplete with the variables there. Are you planning to update this from time to time or you think it will no longer be updated ? Thanks for this
Have you added ImGUI functions or they appear here by magic o.o?
|
I still update that snippet file on the Stash occasionally, like when I see something new was added, last was in March to add reaimgui I believe.
I didn't think anyone was using it since there has been more robust solutions posted.
Last edited by Edgemeal; 04-08-2021 at 07:27 AM.
|
|
|
04-05-2021, 09:46 AM
|
#53
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Thanks for this Will download again!
|
|
|
04-06-2021, 08:18 AM
|
#54
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Quote:
Originally Posted by daniellumertz
Thanks for this Will download again!
|
If you're on Windows you can build the snippet file yourself from latest ReaScriptHelp.html file.
VSCode Snippet Builder
v0.13 - Apr 06, 2021
* Allow user to set destination path & save/restore from ini file.
See readme in zip.
Zip on REAPER stash
https://stash.reaper.fm/v/44422/VSCo...er%20v0.13.zip
Last edited by Edgemeal; 05-01-2022 at 03:15 PM.
|
|
|
04-07-2021, 09:10 AM
|
#55
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Oh cool! This is how you are doing then, was able to build here thank thnnks
|
|
|
07-03-2021, 09:05 PM
|
#56
|
Human being with feelings
Join Date: Dec 2017
Location: Brazil
Posts: 1,992
|
Hey Edgemeal I wonder if is possible to export the python functions too. I am starting to mess with reaper and python so would be cool to have....
|
|
|
07-04-2021, 05:56 AM
|
#57
|
Human being with feelings
Join Date: Apr 2016
Location: ASU`ogacihC
Posts: 3,913
|
Quote:
Originally Posted by daniellumertz
Hey Edgemeal I wonder if is possible to export the python functions too. I am starting to mess with reaper and python so would be cool to have....
|
I don't want to say no/never, but its unlikely.
There was 1-2 other solutions posted to the forum that IIRC do all the languages, I don't have the links to them though.
|
|
|
05-01-2022, 01:31 PM
|
#58
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,597
|
Quote:
Originally Posted by Edgemeal
If you're on Windows you can build the snippet file yourself from latest ReaScriptHelp.html file.
VSCode Snippet Builder
v0.13 - Apr 06, 2021
* Allow user to set destination path & save/restore from ini file.
See readme in zip.
|
This generator script is not available anymore?
|
|
|
05-02-2022, 03:05 AM
|
#60
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,597
|
Thank you very much!
|
|
|
08-05-2023, 05:10 AM
|
#61
|
Human being with feelings
Join Date: Dec 2011
Location: Finland
Posts: 792
|
Hi everyone.
Getting into LUA for REAPER and found this thread.
Have these tools been updated in a long time? I saw that stash link for Edgemeals builder goes to completely different thread than expected and as it says
"*** NO LONGER SUPPORTED ***"
I think there could be an up to date alternative somewhere?
Also, Lokasenna's git repository was updated ~5 years ago. what's the status of REAPER for vscode today?
What do I need to get going and not miss any intellisense or snippets etc. that I might want to have when diving into this? Do I need to make all of it myself to get going?
I'm new to LUA, even though I've been programming since ages, so I could use all the inline help and intellisense available
Last edited by Icchan; 08-05-2023 at 06:07 PM.
Reason: typos
|
|
|
08-05-2023, 06:05 AM
|
#62
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
Quote:
Originally Posted by Icchan
Hi everyone.
Getting into LUA for REAPER and found this thread.
Have these tools been updated in a long time? I saw that stash link for Edgemeals builder goes to completely different thread than expected and as it says
"*** NO LONGER SUPPORTED ***"
I think there could be an up to date alternative somewhere?
Also, Lokasenna's ghit repository was updated ~5 years ago. Rhat's the status of REAPER for vscode today?
What do I need to get going and not miss any intellisense or snippets etc. that I might want to have when diving into this? Do I need to make all of it myself to get going?
I'm new to LUA, even though I've been programming since ages, so I could use all the inline help and intellisense available
|
Lokasenna's signature says he is no longer a part of Reaper community. Why just not use native IDE? You can test all your code immediately without a need to use external services.
|
|
|
08-05-2023, 06:09 AM
|
#63
|
Human being with feelings
Join Date: Jun 2009
Location: Croatia
Posts: 4,597
|
|
|
|
08-05-2023, 09:48 PM
|
#64
|
Human being with feelings
Join Date: Jan 2008
Location: Vancouver, BC
Posts: 3,793
|
Quote:
Originally Posted by Sexan
|
Awesome, I was just about to ask!
__________________
FRs: v5 Media Explorer Requests, Global Quantization, Session View
Win10 Pro 64-bit, Reaper 6(x64), AMD 3950x, Aorus X570 Master, 64GB DDR4 3600, PowerColor Red Devil 5700XT, EVO 970 2TB, 10TB HD, Define R6
|
|
|
08-08-2023, 03:12 PM
|
#65
|
Human being with feelings
Join Date: Jun 2006
Posts: 187
|
Quote:
Originally Posted by Sexan
|
Thanks! I've just installed it on Windows 11 and latest VSCode version but i can't get synthax highlighting...is any configuration needed?
thanks
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:02 PM.
|