oclay1st / gradle.nvim

The Neovim plugin for Gradle
MIT License
5 stars 0 forks source link

Error when expanding dependencies #1

Open PiotrRaszkowski opened 4 days ago

PiotrRaszkowski commented 4 days ago

When I have a multi-module project, big one and try to expand dependencies of the root I receive the following error. image

I know that the plugin is in development, maybe I can help somehow?

oclay1st commented 3 days ago

Thanks for taking time to report this. The error is thrown while parsing the output of the gradle dependencies command. I made some changes for better understanding of the code.

I know that the plugin is in development, maybe I can help somehow?

Yes, you can. https://github.com/oclay1st/gradle.nvim/blob/ce6dc2eee5495d7d2a13f0bc7cd732908759945e/lua/gradle/parsers/dependency_tree_parser.lua#L16-L18 If you have time and know a little bit of lua you could figure out what is wrong with the regular expression on line 17 that sets the value of the extra variable to nil. If you don't have time, add this code after line 17 and let met know the value of the text variable. Thanks

if not extra then
    print(text)
end