daniellumertz / DanielLumertz-Scripts

Some Scripts 4 Reaper !
14 stars 3 forks source link

[ReaShare] Crash when Paste in Linux #2

Closed tkna91 closed 5 months ago

tkna91 commented 6 months ago
  1. Press the "Project" button
  2. Press Ctrl+A to Select all the output code and press Ctrl+X to cut
  3. Press Ctrl+V to paste
  4. Press the "Paste! button

-> ReaShare.lua has crashed

Screencast:

https://github.com/daniellumertz/DanielLumertz-Scripts/assets/102382754/d6fde7e3-4c88-4713-81d9-487afb1414d0

Crash Report:

Error: ReaShare Functions.lua:12: attempt to index a nil value (local 'f')

Stack traceback:
    Core.lua:89: in metamethod 'index'
    ReaShare Functions.lua:12: in function 'CreateNewProjectFile'
    ReaShare Functions.lua:118: in function 'CreateProject'
    ReaShare Functions.lua:143: in function 'ReaSharePaste'
    ReaShare.lua:174: in function 'BtnPaste'
    Class - Button.lua:138: in method 'onmouseup'
    Core.lua:888: in field 'Update'
    Core.lua:440: in field 'Main_Update_Elms'
    Core.lua:303: in function <.../REAPER/Scripts/Daniel Lumertz Scripts/ReaShare/Core.lua:299>
        [C]: in function 'xpcall'
    Core.lua:299: in function <.../REAPER/Scripts/Daniel Lumertz Scripts/ReaShare/Core.lua:298>

Lokasenna_GUI:
    v0.1.1
Reaper:
    7.11/linux-x86_64
Platform:
    Other
daniellumertz commented 5 months ago

That happened because an invalid path was passed the first time creating a project with Reashare. To change the temporary project path use the action Script: ReaShare Change Temporary Path.lua

Thanks for reporting! I put a new version that checks the path!