Keyboard Shortcuts
Likes
Search
Locked Issue copying profiles with long name
JMRI 14.17.7+R5bc91de, Windows 10.
Using the Config Profiles screen under Preferences, when I try to copy a profile named SPROGSim-CMRICom7, I get different behaviors depending on what I name the new profile.? If I attempt to name it SPROGSim-CMRICom8, I get an error that says "Unable to rename [where I keep my profiles]\JMRI\SPROGSimCMRICom8.jmri\profile\jmri-[long string of characters] to use new profile ID."? When I attempt to name the new profile simply "C8" it works fine.? However, a fully populated directory tree is created in both cases. I tried a few more cases and it seems to work OK with some profile names and not others.? I thought I found a pattern related to name length (6 or less vs more), but then I found other cases that didn't work.. May have been an issue for a while as I tried this on JMRI 14.17.3 and got the same behavior. Jerry ___________________________________ jerryg2003@... |
the name length restriction is 256 characters starting with c:\? if this really is a problem change the directory where you keep the files Bobby Abrams On Tue, Dec 17, 2019 at 1:29 PM JerryG via Groups.Io <jerryg2003=[email protected]> wrote: JMRI 14.17.7+R5bc91de, Windows 10. |
PS that is a windows file restriction has nothing to do with jmri Bobby Abrams On Tue, Dec 17, 2019 at 2:42 PM Bobby Abrams via Groups.Io <balc99=[email protected]> wrote:
|
no this is simply a windows issue its not worth troubleshooting i gave you the theory how it plays out in the real world is a different story but i run into the same problem moving files. Another windows problem with renaming files has to do with windows running out of memory and before you ask I have 64 gigs in my pc and it doesnt matter windows is what it is. Bobby Abrams On Tue, Dec 17, 2019 at 3:42 PM JerryG via Groups.Io <jerryg2003=[email protected]> wrote: I can certainly change file location, but having a profile where I simply changed a ¡°7¡± to an ¡°8¡± shouldn¡¯t have changed the length of the name.? Is there some other issue here? |
I would tend to disagree.? The message is AFTER the copy has "copied" the profile data over and now wants to "RENAME" the Profile ID from old to new Profile ID ( SPROGSim-CMRICom8 ).?
That is not a file name length issue or restriction.? May I suggest you post this over in GITHUB JMRI? as a NEW problem.? If you can replicate the bug at will, even better. Marc |
I can recreate the problem at will.? More info:?
- I can also create a "new" profile with the name I want - just not using the "copy."? - The full name in the error message is about 140+/- characters long.? I will post as an issue in GITHUB as suggested (although it is definitely something I can work around). Thanks, Jerry ___________________________________ jerryg2003@... |
it may be that using copy the name is now 280+ (counting copy from and copy to) Bobby Abrams On Tue, Dec 17, 2019 at 8:52 PM JerryG via Groups.Io <jerryg2003=[email protected]> wrote: I can recreate the problem at will.? More info:? |
no my friend the path is part of the file name and that is why what you want to do is not working in the manner you wish it to Bobby Abrams ![]() On Tue, Dec 17, 2019 at 9:58 PM <forfoum@...> wrote: That is not a file name , it is a path + file name? |
Randall Wood
I am one of the JMRI developers, and am the developer principally responsible for this code. Bobby Abrams: This is an issue in JMRI, and not something to be dismissed as "not worth troubleshooting". Do not troll JMRI users when they report problems to the JMRI developers unless you actively do not want support from us when you encounter issues with JMRI. Randall JMRI Developer since 2011. |
i think we are talking about a windows problem. you mean jmri runs in the background and overrides windows in a negative way? are you suggesting that copying jmri files somehow is different than copying any other files? are you further saying since the specific discussion was whether the term "file name" includes the path or not, that in jmri one can copy a file when the character limit of the command is greater than 256? If that is true it is worth using jmri as a file manager. to utilize jmri to override windows must it be running, be it in the background or actively open or will this "trick" of exceeding the 256 character limit of windows work if it just resides on the computer I truly thought my comments on windows file name limitations would be helpful. But if this is only a jmri problem why do I experience the same problem when copying files and I dont have jmri installed? Bobby Abrams On Wed, Dec 18, 2019 at 3:21 AM Randall Wood via Groups.Io <rhwood=[email protected]> wrote:
|
Randall Wood
Bobby: It is JMRI's problem because JMRI should be able to handle the fact that JMRI produces long file names on the most common operating system JMRI supports and the most likely operating system JMRI uses, and because, if the reporter is correct, the copy is successful despite JMRI reporting that it is not. |