Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filemanager: running touch/mkdir/rename crashes the plugin #6

Open
DevL opened this issue Apr 26, 2020 · 3 comments
Open

filemanager: running touch/mkdir/rename crashes the plugin #6

DevL opened this issue Apr 26, 2020 · 3 comments

Comments

@DevL
Copy link

DevL commented Apr 26, 2020

Here's the result of opening the tree and then running the command touch test.txt.

Lua API error: filemanager:220: attempt to call a non-function object
stack traceback:
	filemanager:220: in function 'dirname_and_join'
	filemanager:691: in function 'create_filedir'
	filemanager:794: in main chunk
	[G]: ?

Press enter to continue

The same holds true for mkdir and rename.

@marioxe301
Copy link

Here's the result of opening the tree and then running the command touch test.txt.

Lua API error: filemanager:220: attempt to call a non-function object
stack traceback:
	filemanager:220: in function 'dirname_and_join'
	filemanager:691: in function 'create_filedir'
	filemanager:794: in main chunk
	[G]: ?

Press enter to continue

The same holds true for mkdir and rename.

Same thing happened to me

@Merith-TK
Copy link

Merith-TK commented Jun 20, 2021

image
Still an issue

Lua API error: filemanager:695: bad argument #2 to Join (cannot use &{0xc0001a3770 0xc00086a780 <nil> 0xc00049be30 true false {0 0 <nil>} {0 0} {0 0 <nil>} false false false  false false 2 0xc000a0a540 {0 0}} (type *action.BufPane) as type string)
stack traceback:
        [G]: in function 'Join'
        filemanager:695: in function 'create_filedir'
        filemanager:800: in main chunk
        [G]: ?

@ryo-inagaki
Copy link
Contributor

ryo-inagaki commented Jul 2, 2021

I fixed them.
https://github.com/ryo-inagaki/micro-updated-plugins

PR: #10

Current version uses some obsolute APIs.
After replacing ~/.config/micro/plug/filemanager/filemanager.lua, restart micro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants