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

Error when generating #1

Closed
MomchilovP opened this issue Jun 14, 2024 · 11 comments
Closed

Error when generating #1

MomchilovP opened this issue Jun 14, 2024 · 11 comments

Comments

@MomchilovP
Copy link

Hello I just installed this plugin in my lazyvim config, and everything works perfectly up until the moment when I need to generate a project. After confirming the generation I get a ton of errors from the "generator" of the plugin. When I check the logs, nothing of use really shows there. I can provide an image with the error if needed.

@javiorfo
Copy link
Owner

Hello,
If you send me an image will be fine.

Also will be helpful if you enable the logger debug with this (Lazy.nvim):

opts = {
        internal = {
            log_debug = true
        }
    }

Then you can generate a project and send the results you see executing :SpringtimeLogs. All the log (including the DEBUG) is a great help.

@Olprog59
Copy link

Hello,
Same problem :

E5108: Error executing lua ...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:27: attempt to concatenate local 'result' (a table value)
stack traceback:
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:27: in function 'split'
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:34: in function 'validate_dependencies'
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:112: in function 'create_project'
	.../share/nvim/lazy/nvim-springtime/lua/springtime/core.lua:137: in function 'generate'
	...al/share/nvim/lazy/nvim-springtime/lua/springtime/ui.lua:128: in function 'callback'
	.../sam/.local/share/nvim/lazy/nvim-popcorn/lua/popcorn.lua:60: in function 'execute_callback'
	[string ":lua"]:1: in main chunk

@javiorfo
Copy link
Owner

Hello, Same problem :

E5108: Error executing lua ...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:27: attempt to concatenate local 'result' (a table value)
stack traceback:
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:27: in function 'split'
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:34: in function 'validate_dependencies'
	...e/nvim/lazy/nvim-springtime/lua/springtime/generator.lua:112: in function 'create_project'
	.../share/nvim/lazy/nvim-springtime/lua/springtime/core.lua:137: in function 'generate'
	...al/share/nvim/lazy/nvim-springtime/lua/springtime/ui.lua:128: in function 'callback'
	.../sam/.local/share/nvim/lazy/nvim-popcorn/lua/popcorn.lua:60: in function 'execute_callback'
	[string ":lua"]:1: in main chunk

Hello,
You were right about the problem.
I have fixed it and made a new release. Fix

Execute a lazy.nvim update and test it again.

Thanks!

@Olprog59
Copy link

Thanks, but a new bug:
[ERROR][06/26/2024 22:28:02]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:28:02]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:28:03]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
70 56872 70 39830 0 0 46930 0 0:00:01 --:--:-- 0:00:01 46914
100 56872 100 56872 0 0 66305 0 --:--:-- --:--:-- --:--:-- 66284
[ERROR][06/26/2024 22:28:03]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:28:03]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:28:04]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 56872 100 56872 0 0 95315 0 --:--:-- --:--:-- --:--:-- 95422
[ERROR][06/26/2024 22:28:04]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:28:04]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:28:04]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
75 56872 75 43082 0 0 75006 0 --:--:-- --:--:-- --:--:-- 74925
100 56872 100 56872 0 0 97818 0 --:--:-- --:--:-- --:--:-- 97718
[ERROR][06/26/2024 22:29:37]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:29:37]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:29:38]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 56872 100 56872 0 0 118k 0 --:--:-- --:--:-- --:--:-- 118k
[ERROR][06/26/2024 22:29:38]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:29:38]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:29:38]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
78 56872 78 44451 0 0 67189 0 --:--:-- --:--:-- --:--:-- 67146
100 56872 100 56872 0 0 85068 0 --:--:-- --:--:-- --:--:-- 85010
[ERROR][06/26/2024 22:29:38]: % Total % Received % Xferd Average Speed Time Time Time Current
[ERROR][06/26/2024 22:29:38]: Dload Upload Total Spent Left Speed
[ERROR][06/26/2024 22:29:39]:
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 56872 100 56872 0 0 184k 0 --:--:-- --:--:-- --:--:-- 185k

@javiorfo
Copy link
Owner

Thanks, but a new bug: [ERROR][06/26/2024 22:28:02]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:28:02]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:28:03]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 70 56872 70 39830 0 0 46930 0 0:00:01 --:--:-- 0:00:01 46914 100 56872 100 56872 0 0 66305 0 --:--:-- --:--:-- --:--:-- 66284 [ERROR][06/26/2024 22:28:03]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:28:03]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:28:04]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 56872 100 56872 0 0 95315 0 --:--:-- --:--:-- --:--:-- 95422 [ERROR][06/26/2024 22:28:04]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:28:04]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:28:04]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 75 56872 75 43082 0 0 75006 0 --:--:-- --:--:-- --:--:-- 74925 100 56872 100 56872 0 0 97818 0 --:--:-- --:--:-- --:--:-- 97718 [ERROR][06/26/2024 22:29:37]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:29:37]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:29:38]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 56872 100 56872 0 0 118k 0 --:--:-- --:--:-- --:--:-- 118k [ERROR][06/26/2024 22:29:38]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:29:38]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:29:38]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 78 56872 78 44451 0 0 67189 0 --:--:-- --:--:-- --:--:-- 67146 100 56872 100 56872 0 0 85068 0 --:--:-- --:--:-- --:--:-- 85010 [ERROR][06/26/2024 22:29:38]: % Total % Received % Xferd Average Speed Time Time Time Current [ERROR][06/26/2024 22:29:38]: Dload Upload Total Spent Left Speed [ERROR][06/26/2024 22:29:39]: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 56872 100 56872 0 0 184k 0 --:--:-- --:--:-- --:--:-- 185k

Those are curl info logs, not errors (I have to check why they are logged as errors).
Have you been able to generate a project?
If not, let me know which options have you selected

@Olprog59
Copy link

I chose Maven and Java 22.

Then the Dependencies: devtools, lombok, web, data-jpa, mysql

@javiorfo
Copy link
Owner

javiorfo commented Jun 26, 2024

I chose Maven and Java 22.

Then the Dependencies: devtools, lombok, web, data-jpa, mysql

I assume this is because the spaces between the comma and the next library:
devtools, lombok, web, data-jpa, mysql

If you don't press space after select every library It will work correctly:
devtools,lombok,web,data-jpa,mysql

Anyway I'm going to make a change and remove all possible spaces so this will not be a problem anymore

@javiorfo
Copy link
Owner

@Olprog59 @MomchilovP

Execute a lazy.nvim update and try again (There is no more problems with spaces in between libraries)

@Olprog59
Copy link

@javiorfo
Sorry, I'm in France. I wasn't able to reply before.
I've just tested and I still have an error. The same as yesterday with curl.
CleanShot 2024-06-27 at 13 16 32@2x
CleanShot 2024-06-27 at 13 16 49@2x

@javiorfo
Copy link
Owner

javiorfo commented Jun 27, 2024

@Olprog59

I tried the same and I was able to generate the project.
I wonder if there is a problem on superposition in nvim windows. I see you are using telescope cmd.
Maybe the prompt as popup is generating some error.
Try disabling the confirmation dialog:

-- lazy.nvim
opts = {
        dialog = {
            confirmation = false,
        }
}

@javiorfo javiorfo reopened this Jun 27, 2024
@Olprog59
Copy link

@javiorfo
Yes, it works. I do have the zip. It unzipped properly.
Because curl's logs, there are errors.

Thank you very much for your plugin.

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

3 participants