Given my project path: ~/dev/java/project-1/.../java/com/...
The feature that creates interface, enum, classes, fails on finding my java/ folder inside the project, I fixed it by changing the path on my system to : ~/dev/_java/project-1/.../java/com/...
Note that any parent folder begining with /java ,as for example ~/dev/java-something , will collide with this functionality, finding the wrong folder to create the package structure and thus creating a new structure like ~/dev/java/com/.../your_new_class.java
The issue might be here on this function , maybe the path_pattern would be the key, or doing the match from right to left instead.
generateclass.lua
local function generate_class()
local file_path = vim.fn.fnamemodify(start_buf, ':p')
local path_pattern = "(.-)/java"
...
Thanks for all the work!
Given my project path:
~/dev/java/project-1/.../java/com/...The feature that creates interface, enum, classes, fails on finding my
java/folder inside the project, I fixed it by changing the path on my system to :~/dev/_java/project-1/.../java/com/...Note that any parent folder begining with /java ,as for example
~/dev/java-something, will collide with this functionality, finding the wrong folder to create the package structure and thus creating a new structure like~/dev/java/com/.../your_new_class.javaThe issue might be here on this function , maybe the path_pattern would be the key, or doing the match from right to left instead.
generateclass.lua
Thanks for all the work!