tracker issue : CFB-3801205

select a category, or use search below
(searches all categories and all time range)
Title:

Placing or typing single line comment does not recognize color code preference while editing

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Robert Mann / heisrmann (Robert Mann)

Created: 08/06/2014

Components: Editor Features

Versions: 3.0

Failure Type:

Found In Build/Fixed In Build: 3.0 Final / 294278,

Priority/Frequency: Major / All users will encounter

Locale/System: English / Windows 8.1/64bit

Vote Count: 1

Problem Description:
Within cfscript of my components/functions I typically enter a single line comment to document about line(s) of code that follow it. In version 2 it worked as expected. In version 3, I may have not spent enough time writing code to recognize the issue. I have since applied update 3, and it's possible that this bug is based on the recent update.

Steps to Reproduce:

1 Create new component.
2  Write new function
3  Create cfscript and begin writing code
4 Type // for a single line comment

Actual Result:
Color code behaves like text and does not change characteristics.
Color code below intended comment also is impacted.

<cffunction name="testThis" 			access="public" 	returntype="struct">
		<cfargument name="NumberID" 	type="numeric" 	required="true">
		
		<cfset var objReturn 		=	StructNew()>
		<cfset var strThis 			=	"">
		
		<cfscript>
			// test if true
			if (1 == 1) {
				strThis = 'foo' ;	
			}
			// another comment 
			//
			//
		</cfscript>
		
		<cfreturn objReturn />
    </cffunction>

Expected Result:
As I enter // for a single line comment the color code should be enabled and not affect other parts of the code.
In my case I have the format to highlight yellow and change the font color to grey.

Any Workarounds:
When opening the file, all is well. So I close the file and re-open it.
Another work around while editing is to copy the entire cfscript or cffunction and replace (paste) itself. This make the corrections, as I assume the editor properly renders based on the paste.
You will see if you copy my code example, it behaves as expected. But if you add new comments the color coding becomes broken again.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3801205

External Customer Info:
External Company:  
External Customer Name: heisrmann
External Customer Email:  
External Test Config: My Hardware and Environment details:



Windows 8.1 (64 bit)



Adobe® ColdFusion® Builder™ 3



Version: 3.0.0

Build: 290423

Attachments:

Comments:

The shortcut icons also behave inconsistently. If my cursor is on line 13, clicking on the single line comment shortcut places it at line 0. The shortcut for 'insert script comment' does not work at all.
Comment by External U.
26875 | August 06, 2014 02:56:11 PM GMT
Another workaround: Selecting a block of text within the cfscript tag text and "tabbing" that content would also trigger the code coloring to be corrected.
Comment by External U.
26876 | August 06, 2014 04:49:57 PM GMT
Updated to Version: 3.0.0 Build: 290701 Much of reported issues appear to be fixed. Except if my cursor is on line 13, clicking on the single comment shortcut places it at line 0.
Comment by External U.
26877 | August 15, 2014 05:29:06 PM GMT
I was also experiencing this issue, however an update to build 290701 seems to have corrected the issue. I would have thought I would have been notified automatically of this update though?
Vote by extuser
26878 | October 03, 2014 08:04:53 AM GMT