tracker issue : CFB-3803692

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

Encountered " "#" "# "" bug in Syntax Checker

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Darren Cook / dartimcoo (dartimcoo)

Created: 08/11/2014

Components: Editor Features

Versions: 3.0

Failure Type:

Found In Build/Fixed In Build: 3.0 Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Mac 10.9

Vote Count: 1

Problem Description:
CF Builder reports an error with syntax for valid code.

Steps to Reproduce:
1. Create a new .cfm page.
2. Enter the following code:
<cfoutput>
	<head>
		<style type="text/css">
			##id{border:solid;}
		</style>
	</head>
</cfoutput>

Actual Result:
An error appears in the left margin for line 4. The error states:
Encountered " "#" "# "" at line 4, column 2.
Encountered " ";" "; "" at line 4, column 18.
This error blocks certain actions by default (for example, SVN commits).

Expected Result:
This code is considered valid syntax.

Any Workarounds:
None found. Not clear if escaping ## inside cfoutput anywhere else also results in a parsing error.

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

Watson Bug ID:	3803692

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

Mac OSX 10.9.4 Mavericks on a Mac Pro (Intel)

CF Builder 3.0.0.289998 installed as a Plugin

Eclipse Kepler 4.3.2.v20140221-1852

Attachments:

Comments:

There are, of course, various things to fix this specific code example (e.g. move the css to a .css file). However the root problem is that the syntax parser is not properly recognizing # escaping inside cfoutput, which it should.
Comment by External U.
26870 | August 11, 2014 02:42:49 PM GMT
Also observe this behavior for comment block with more than 5 lines and some vertical pipes: It's giving errors indicating that I can't have cfoutput following a comment, badly formed xml, and missing semicolon's even though this is coldfusion and not JavaScript! <!--- ||BEGIN FUSEDOC|| ||Owner||: Big Bad John ||Application||: Project version 5 ||File Name|| : _view/apprentices/dsp_AppRTI.cfm ||Comments|| : App RTI Display ||History|| 01/03/2014 - CHG8111 - xxx 07/16/2014 - CHG12483 - xxx 07/31/2014 - CHG12483 xxx 11/10/2014 - CHG12483 -xxx 06/29/2015 - xxx ||END FUSEDOC|| --->
Comment by External U.
26871 | August 25, 2015 04:05:11 PM GMT
I use my IDE to detect syntax errors as I make them, rather than as a batch mode operation after code is complete. ColdFusion Builder has a fairly high false positive rate on error detection. This wastes my time looking for errors where there do not appear to be any!
Vote by extuser
26873 | August 26, 2015 04:36:41 AM GMT
Installed CFBuilder 2016, version 3.1.0 Build: 298004, Yeah! Confirmed this bug still a problem, Booo! For example: <cflocation url="ServicesToMSFWRpt_only.cfm?ombDate=#url.ombDate#" addtoken="yes" > gives red circle X and hovering over tells us "Invalid Token url=..." with location of column 20 which is just after the cflocation and before the url attribute. On the other hand, at least each error is ONLY showing it's own error and not a mashup of all the errors in the template.
Comment by External U.
26872 | March 03, 2016 03:24:40 PM GMT