Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-1121

Syntax coloring issues

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Complete
    • 2.3.3.M2
    • 2.6.0.M1
    • GRAILS
    • None
    • SpringSource Tool Suite 2.3.3 M2 Night Build, Build Id: 201007232050
      Eclipse 3.6
      JDK 1.6.0_21
      Grails 1.3.3
      Windows Vista 64 bit

    Description

      I have PostController.groovy with following code (problem occurs on other files as well):

      package com.grailsinaction
      
      class PostController {
      
        PostService postService
      
        def scaffold = true
      
        def index = {
          if (!params.id) {
            params.id = "chuck_norris"
            redirect(action:"timeline", params:params)
          }
        }
      
        def timeline = {
          def user = User.findByUserId(params.id)
          [user: user]
        }
      
        def addPost = {
          try {
            Post newPost = postService.createPost(params.id, params.content)
            flash.message = "Added new post: ${newPost.content}"
          }
          catch (PostException pe) {
            flash.message = pe.message
          }
      
          redirect(action:"timeline", id: params.id)
        }
      
      }
      

      When opened, correct syntax coloring appears for about half a second, then it breaks as shown on the first screenshot. Coloring is restored if I put enter key after any curly brace and save a file as shown on the second screenshot. However, coloring brakes again if I close and open file. Also, further file editing breaks and restores coloring randomly (or at least it looks random to me).

      Attachments

        Activity

          People

            aeisenberg Andrew Eisenberg
            dmurat Damir Murat
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: