Far 3.0.5707.0 x86 LuaMacro startup bug

Here you can report bugs found in Far Manager.
Post Reply
KtW
Posts: 30
Joined: Mon 10 Aug, 2009 01:47

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by KtW »

I've This Bug When I Start Far...
If I Comment The Suggested 77 Line Of panelsort.lua The Message Does Not Appear...
Can You Fix On Release / Beta Versions Please?
image.png
Last edited by KtW on Sun 22 Nov, 2020 13:25, edited 2 times in total.
User avatar
buniak_a_h
Posts: 4260
Joined: Sat 20 Apr, 2013 00:17
Location: Санкт-Петробад
Has thanked: 222 times
Been thanked: 644 times
Contact:

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by buniak_a_h »

See your file
C:\RETE_U\FAR3\Profile\Macros\scripts\CustomSortExample.lua
line # 29. Error: returned value must be number and integer and between 100000 and 2147483647
KtW
Posts: 30
Joined: Mon 10 Aug, 2009 01:47

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by KtW »

Thanks For Answering buniak_a_h
Sorry I'm Unable To Do The Changes Your Suggest Can You Help Please? :oops:
This Script Return -2 But I Don't Know What Number To Use, I Suppose That Also The Script Must Be Changed!
Maybe Some Far Updates Changed The Behaviour Of LuaMacro Plugin!

Basically This Script Start Sorting Files/Folders Skipping The First 13 Characters Of The File/Folder Name...
(I've asked for this function years ago in the forum)
Attachments
CustomSortExample.lua
(1.3 KiB) Downloaded 110 times
Last edited by KtW on Sun 22 Nov, 2020 21:35, edited 5 times in total.
User avatar
buniak_a_h
Posts: 4260
Joined: Sat 20 Apr, 2013 00:17
Location: Санкт-Петробад
Has thanked: 222 times
Been thanked: 644 times
Contact:

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by buniak_a_h »

KtW, try 5 line in this file set to follow:
local Mode = far.Flags.SM_USER -- 100
These are only my guesses
Last edited by buniak_a_h on Mon 23 Nov, 2020 08:38, edited 2 times in total.
User avatar
buniak_a_h
Posts: 4260
Joined: Sat 20 Apr, 2013 00:17
Location: Санкт-Петробад
Has thanked: 222 times
Been thanked: 644 times
Contact:

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by buniak_a_h »

I checked. It's true
User avatar
buniak_a_h
Posts: 4260
Joined: Sat 20 Apr, 2013 00:17
Location: Санкт-Петробад
Has thanked: 222 times
Been thanked: 644 times
Contact:

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by buniak_a_h »

Version=5577 wrote: Parameters:
Mode: sort mode; integer >=100 and <=0x7FFFFFFF
Version=5697 wrote: Parameters:
Mode: sort mode; integer >=SM_USER and <=0x7FFFFFFF
%FARHOME%\Plugins\LuaMacro\changelog wrote: shmuel 20.08.2020 20:11:34 +0300 - build 755
1. Correct argument safety check in LoadCustomSortMode().
KtW
Posts: 30
Joined: Mon 10 Aug, 2009 01:47

Far 3.0.5707.0 x86 LuaMacro startup bug

Post by KtW »

Wonderful! You Are My Hero...
Changing That Line Worked Perfectly! :Yahoo!:
Post Reply

Return to “Bug Reports”