You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boot Dashboard cannot start app when Eclipse project name contains spaces #403
If we import it into Eclipse as an existing Maven project, and use the name (instead of artifactId) to set the project name, then this name is shown in Boot Dashboard as "demo [BREAKS BOOT DASHBOARD]".
This name breaks the init process with the following message:
Error: Could not find or load main class [BREAKS
For some reason, the main class is not taken into account...
This error did not happen with previous STS versions.
I will investigate / debug this issue and see if we can improve on this somehow but... please... do not use spaces in your project names you are really asking for problems. It is kind of a known limitation already. For example when I try to create a project using spaces in its name via the 'New Spring Starter' project wizard.... the wizard will refuse to accept a project name with spaces in it as valid input and won't let you do that.
I will however try and reproduce the issue by importing your sample project and then try to debug exactly where it goes wrong, then maybe try to fix it so it works better.
Able to reproduce it. I called my project 'demo with spaces' (not sure about the square brackets in this so to make sure I only dealing with one problem at a time I got rid of them).
When I look at the 'command line' that was used to launch the app in the debug view it shows me this:
So I think that somehow that argument is being incorrectly split up into multiple arguments because it has spaces. That causes the 'with' to treated as a separate argument and then interpreted incorrectly as the name of the main class.
Activity
kdvolder commentedon Jan 14, 2020
I will investigate / debug this issue and see if we can improve on this somehow but... please... do not use spaces in your project names you are really asking for problems. It is kind of a known limitation already. For example when I try to create a project using spaces in its name via the 'New Spring Starter' project wizard.... the wizard will refuse to accept a project name with spaces in it as valid input and won't let you do that.
I will however try and reproduce the issue by importing your sample project and then try to debug exactly where it goes wrong, then maybe try to fix it so it works better.
kdvolder commentedon Jan 14, 2020
Able to reproduce it. I called my project 'demo with spaces' (not sure about the square brackets in this so to make sure I only dealing with one problem at a time I got rid of them).
When I look at the 'command line' that was used to launch the app in the debug view it shows me this:
The interesting part is this:
So I think that somehow that argument is being incorrectly split up into multiple arguments because it has spaces. That causes the 'with' to treated as a separate argument and then interpreted incorrectly as the name of the main class.
Fix and test case for spring-projects/spring-tools#403
aritzbastida commentedon Jan 15, 2020
Thank you for the quick reply (and fix)!!