Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CF8 compat issue with implicit struct notation #153

Closed
atuttle opened this issue Aug 26, 2013 · 3 comments
Closed

CF8 compat issue with implicit struct notation #153

atuttle opened this issue Aug 26, 2013 · 3 comments

Comments

@atuttle
Copy link
Owner

atuttle commented Aug 26, 2013

<cfset local.allowedHeaders = { foo="bar", ... } />

This wasn't supported until CF9.

@KimBelanger
Copy link

Hello, just installed Taffy 2.2.1, and i get this specific error:
"Local variable m on line 153 must be grouped at the top of the function body"

Any pointer ? Thanks !

Env:

IIS6 on Win server 2003
Ionic's Isapi Rewrite Filter
Server Product :ColdFusion
Version: 8,0,1,195765

Trace:

coldfusion.compiler.ASTvariableDefinition$VarPositionException: Local variable m on line 153 must be grouped at the top of the function body.
at coldfusion.compiler.ASTvariableDefinition.checkCfscript(ASTvariableDefinition.java:158)
at coldfusion.compiler.ASTvariableDefinition.checkPosition(ASTvariableDefinition.java:116)
at coldfusion.compiler.ASTvariableDefinition.register(ASTvariableDefinition.java:87)
at coldfusion.compiler.SemanticAnalyzer.transform(SemanticAnalyzer.java:196)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:86)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)
at coldfusion.compiler.Treewalker.postorder(Treewalker.java:27)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:307)
at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:119)
at coldfusion.runtime.TemplateClassLoader$1.fetch(TemplateClassLoader.java:310)
at coldfusion.util.LruCache.get(LruCache.java:180)
at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:254)
at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)
at coldfusion.util.SoftCache.get(SoftCache.java:81)
at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:476)
at coldfusion.runtime.RuntimeServiceImpl.getFile(RuntimeServiceImpl.java:738)
at coldfusion.runtime.RuntimeServiceImpl.resolveTemplatePath(RuntimeServiceImpl.java:705)
at coldfusion.runtime.TemplateProxyFactory.getResolvedFile(TemplateProxyFactory.java:1150)
at coldfusion.runtime.TemplateProxyFactory.resolveSuperPath(TemplateProxyFactory.java:611)
at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:332)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:211)
at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:157)
at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:110)
at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:101)
at coldfusion.cfc.CFCProxy.(CFCProxy.java:92)
at coldfusion.runtime.AppEventInvoker.(AppEventInvoker.java:47)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:148)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:175)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

@atuttle
Copy link
Owner Author

atuttle commented Mar 25, 2014

Hi Kim,

Sorry for your trouble. This should be fixed again now. Keeping CF8 compatibility isn't my favorite feature, but it seems to be an important one. :)

I've released version 2.2.2, which includes the fix for this as well as a few other changes, which I'll be listing at this link shortly:

https://github.com/atuttle/Taffy/releases/tag/v2.2.2

@KimBelanger
Copy link

Great thanks for the fast fix and your excellent work in general, very appreciated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants