• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

running a .cfm from repl

Community Beginner ,
Nov 17, 2022 Nov 17, 2022

Copy link to clipboard

Copied

Hello -

I am using CF 2021 with Windows ser2016

I'm attempting to run this simple .cfm from repl but I can't do it. 

Here's the .cfm. It's called test0.cfm

<cfscript>

 

writeOutput("Hello World");
CLI.writeLn("");
CLI.writeLn("Hello World using cli.writeLn);

 

</cfscript>

 

When I run it from repl I get the following error:

cf-cli>test0.cfm

coldfusion.compiler.CFMLParserBase$UnterminatedStringException: The string is not closed.

 

I thought I was able to use tags according to this article

 

https://coldfusion.adobe.com/2018/07/repl-coldfusion-2018-release/

Views

254

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 17, 2022 Nov 17, 2022

You're missing a closing quote in the argument for CLI.writeLn. It should be

 

CLI.writeLn("Hello World using cli.writeLn");

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate
Community Expert ,
Nov 17, 2022 Nov 17, 2022

Copy link to clipboard

Copied

You're missing a closing quote in the argument for CLI.writeLn. It should be

 

CLI.writeLn("Hello World using cli.writeLn");

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 17, 2022 Nov 17, 2022

Copy link to clipboard

Copied

Thank you so much!!!

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 17, 2022 Nov 17, 2022

Copy link to clipboard

Copied

LATEST

You're welcome!

 

Dave Watts, Eidolon LLC

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation