spring-attic / spring-ide

Spring Development Environment for Eclipse
299 stars 126 forks source link

STS 4.1.1 throws error "Application not found" creating or updating sql files in src main resources #343

Closed matteg closed 5 years ago

matteg commented 5 years ago

When using new file schema.sql or data.sql from src/main/resources an error window appears stating "Application not found". When creating the file (schema.sql) the file IS created but it can not be opened - the same error is thrown.

The workaround is to exit STS, edit the file using a text editor, then restart STS

The files are then processed properly using Spring Boot 2.1.2

martinlippert commented 5 years ago

First of all, I am sorry for the long delay in responding. Please accept my apologies.

The underlying reason for that seems to be the fact that STS 4 doesn't come with the Eclipse Data Tools installed out-of-the-box. Therefore there is no specific editor associated with .sql files or even more specifically with schema.sql files. As a result, the underlying Eclipse platform tries to open the "system editor" for those files, calling out to the operating system to run the corresponding editor for this file. This seems to go wrong in your case, resulting in that "Application not found" message.

In order to change that, there are two options that I haven in mind:

Hope this helps!!! And sorry again for the long delay.