Closed tmwitczak closed 4 years ago
I'm also having this problem. I've tried enabling extra characters using fsutil, but that still doesn't seem to work with the "<>" characters.
From a quick glance it looks like the characters can be dealt with by adding to ALIASES in scripts/key_definitions.rb.
However, the windows filesystem is not case sensitive so some files in key_scripts, for example C-a and C-A, will also need to be renamed.
Awesome job with the script by the way! I've been wanting something like this and I'm looking forward to being able to use it.
I've pushed e8261e5689a706e7e0499cc17c3e0220728da584 as well as f0e44d6af52d645aa517cc3c036c5dd1e226d6be to make the paths play nicer with windows as well as OSX, though I can't test it so I'm not sure I caught everything.
Let me know if anything is still breaking, and if not I'll close this!
Reaper may try to keep using the old script paths when you re-import the key map, to make it forget them, delete the 'REAPER/reaper-kb.ini' file and restart Reaper.
Now the filenames are okay and I can actually git clone and intsall in to reaper.
A new issue appears though. When I press any key I get the ReaScript :
error main_SPC.lua:4: attempt to concatenate a nil value (local 'root_path')
this is for any key SPC is just an example.
All the key_scripts files have lines 3 and 4
3 local root_path = info.source:match[[[^@]*reaper.keys/]]
4 package.path = package.path .. ';' .. root_path .. '?.lua'
Maybe the problem is the trailing "/" since on Windows "\" is used to separate directories?
That's indeed the problem. I'll work on changing all the paths used throughout the library to be insensitive to this.
Alright I fixed the path names! I found a windows laptop to use as well and tested it out myself, so it should be good now.
Seems to be working now, well done!
Cool! Thanks for helping me out.
Description
The repository can't be cloned on Windows due to the use of the reserved filename characters: < and >.
Context
git --version
git version 2.26.2.windows.1systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows 7 Ultimate OS Version: 6.1.7601 Service Pack 1 Build 7601Reproducing
git clone https://github.com/gwatcha/reaper-keys
Cloning into 'reaper-keys'... remote: Enumerating objects: 132, done. remote: Counting objects: 100% (132/132), done. remote: Compressing objects: 100% (83/83), done. remote: Total 4070 (delta 71), reused 91 (delta 48), pack-reused 3938 Receiving objects: 100% (4070/4070), 45.83 MiB | 10.30 MiB/s, done. Resolving deltas: 100% (3557/3557), done. error: invalid path 'keyscripts/main<.lua' fatal: unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'Possible solution
The reserved characters could be replaced with the ones supported on Windows, as stated here.