apache / apache/grails-intellij-plugin
Grails: with Tab code completion replaces only a part of config key
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
Provide grails application module.
Provide grails-app/conf/Config.groovy with a setting:
```
grails.views.gsp.encoding = "UTF-8"
```
In a grails-app/controllers/AnyController provide a reference to the option:
```
def sample = {
render "
$ConfigurationHolder.config.grails.views.gsp.encoding
"}
```
Invoke completion (Ctrl+Space) in the middle segment of property reference, e.g. inside "views".
Completion shows all the rest segments of property name: "views.gsp.encoding".
Press Tab to select the item.
Result: the item replaces just a part before the 1st dot:
```
render "
$ConfigurationHolder.config.grails.views.gsp.encoding.gsp.encoding
"```
The Tab should probably take into account that dot is a part of the value.
108.578.
---
*Imported from [IDEA-71625](https://youtrack.jetbrains.com/issue/IDEA-71625) · 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
Create the Grails module described in the issue, including grails-app/conf/Config.groovy and the controller reference. Invoke completion inside the “views” segment and press Tab to reproduce the duplicated suffix. Done means the full dotted property value is replaced once, without appending “.gsp.encoding” a second time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100