spring-attic / spring-ide

Spring Development Environment for Eclipse
299 stars 126 forks source link

Code completion error in 3.9.7 when using @Controller annotation #339

Closed tomlprog closed 5 years ago

tomlprog commented 5 years ago

Using content assist in a java file with the @Controller annotation causes 2 errors in error log (see last two entries in errorlog.

To reproduce:

  1. using STS 3.9.7
  2. install the spring-mvc-showcase project
  3. open the org.springframework.samples.mvc.form.FormController class
  4. goto line 26 an attempt content assist on the model variable Instead of the expected content assist list, the two errors are logged. If you comment out the @Controller line and try the content assist again it works as expected.

My STS configuration.

Thanks, Tom Leccese

martinlippert commented 5 years ago

This should already be fixed for the next version with https://github.com/spring-projects/spring-ide/commit/f65e7e1e1eddc422a229c344028307407dea4fbb.

If you want to give it a try, please download the latest nightly CI build of 3.9.8 from here: http://dist.springsource.com/snapshot/STS/nightly-distributions.html

tomlprog commented 5 years ago

Thanks, I tried "Version: 3.9.8.CI-B849" and the issue is resolved.

martinlippert commented 5 years ago

Great to hear, thanks for the confirmation.