apache / apache/grails-intellij-plugin
Named url mappings are treated as error in grails
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
At the moment named url mapping is treated as assignment with incorrect types:
```
'name' in 'org.codehaus.groovy.grails.web.mapping.DefaultUrlMappingEvaluator.UrlMappingBuilder' cannot be applied to '(['productLink':java.lang.Object])'
```
For this code:
```
name productLink:"/$pr/"{
controller = "index"
}
```
But it definitely works and is totally correct according to grails documentation - [http://docs.grails.org/3.1.1/guide/single.html#namedMappings](http://docs.grails.org/3.1.1/guide/single.html#namedMappings)
---
*Imported from [IDEA-164126](https://youtrack.jetbrains.com/issue/IDEA-164126) · 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 named URL mapping from the issue in the Grails IntelliJ plugin and inspect how the `name productLink:"/$pr/"` expression is typed. Compare the result with the namedMappings documentation; done means this valid mapping is no longer reported as an incorrect assignment or type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100