apache / apache/grails-intellij-plugin

On a Grails @Autowired Spring components are not detected anymore in constructor injection

Open
#370 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

Hello, something went wrong with the scanning of Spring beans in 2022.01 for a Grails project. The green leaf is missing for pure Spring components.

FYI in 2021.03, it was working fine.

***What steps will reproduce the issue?***
1\. in 2021.03 it was working
***What is the expected result?***

The leaf is present next to the constructor injection

***What happens instead?***

No green leaf present

_⚠️ attachment `image1.png` was not included in the export_

_⚠️ attachment `image3.png` was not included in the export_

The issue is not critical tho.

Let me take the opportunity and thank you for what you do!

Environment

IntelliJ IDEA 2022.1 (Ultimate Edition)

Build #IU-221.5080.210, built on April 12, 2022

Licensed to ``

Subscription is active until September 3, 2022.

Runtime version: 11.0.14.1+1-b2043.25 x86_64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

macOS 12.2.1

GC: G1 Young Generation, G1 Old Generation

Memory: 4096M

Cores: 8

Non-Bundled Plugins:

some.awesome (1.14)

org.nik.presentation-assistant (1.0.9)

org.dynamodb4idea (2022.1.3-221)

com.wakatime.intellij.plugin (13.1.14)

com.robohorse.robopojogenerator (2.3.3)

com.intellij.lang.liquid (221.5080.126)

com.github.kisstkondoros.codemetrics (1.0.4)

String Manipulation (9.4.0)

PlantUML integration (5.12.0)

GrepConsole (12.12.211.6693.0)

org.sonarlint.idea (6.7.0.45926)

com.rspn.git (1.9)

dev.flikas.idea.spring.boot.assistant.plugin (0.2.4)

org.intellij.grails (221.5080.169)

zielu.gittoolbox (212.8.9)

izhangzhihao.rainbow.brackets (6.21)

io.snyk.snyk-intellij-plugin (2.4.27)

dev.eltonsandre.intellij.spring.assistant.plugin (1.5.0)

com.intellij.bigdatatools (221.4165.63)

com.haulmont.jpab (2022.2.1-221)

CodeNarc (4.4.0)

Kotlin: 221-1.6.20-release-285-IJ5080.210

---

*2 attachment(s) referenced here (`image1.png`, `image3.png`) are not part of the CSV export.*
*Imported from [IDEA-292817](https://youtrack.jetbrains.com/issue/IDEA-292817) · Type: Bug · Votes: 0*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the missing green leaf for a pure Spring component using constructor injection in a Grails project, comparing IntelliJ IDEA 2021.03 with 2022.01. Trace the Grails plugin's Spring component scanning and constructor-injection inspection; done means the leaf is detected again in the affected case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.