jdaugherty opened a new issue, #399:
URL: https://github.com/apache/grails-intellij-plugin/issues/399

   **Workaround**
   Change to a comma sperator:
   ```
   <%@ page import="\
   com.test.Dto, \
   com.test.Dto2 \
   "%>
   ```
   ## **Steps to reproduce**
   
   1. Have Java classes to import
   
   2. Create a .gsp file where you import multiple types using a multi-line 
syntax with backslash `\` at the end of each line, after `;`:
   
      ```
      <%@ page import="com.test.Dto; \
      com.test.Dto2;" %>
   
      <%
          Dto a = null;
          Dto2 b = null;
      %>
      ```
   3. Try to use IntelliSense features like code completion, work with the types
   
   **Expected result** *(correct result)***:**
   
   All imported types should be available.
   
   * This is a legal syntax, as the GSP code runs without any issues. For code 
style reasons, this syntax may be preferred vs. having all imports in 1 line.
     * Note: If you continued on another line (`\n`) without  `\`, parsing GSP 
would fail with error: 
`org.codehaus.groovy.control.MultipleCompilationErrorsException` `startup 
failed:` `Unexpected input: '\n'`.
   
   Ctrl+clicking on Dto2 should navigate to that class.
   
   **Actual result** *(faulty result)***:**
   
   Only the first type is available.
   
   Ctrl+clicking on Dto2 says "Cannot find declaration to go to".
   
   **Affected Plugin**
   
   [Grails](https://plugins.jetbrains.com/plugin/18504-grails)
   
   ## **Environment & Additional information**
   
   IU-241.18034.62, JRE 17.0.11+1-b1207.24x64 JetBrains s.r.o., OS Windows 
10(amd64) v10.0 , screens 2400.0x1350.0
   Auto-uploaded logs URL (accessible to JetBrains employees only): 
<<hidden-personal-data>
   
   ---
   
   *Imported from 
[IDEA-356622](https://youtrack.jetbrains.com/issue/IDEA-356622) · Type: Bug · 
Votes: 0*
   *Comments, attachments, dates and reporter are not part of the export — 
follow the link above for the full history.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to