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

running a .cfm from repl

Community Beginner ,
Nov 17, 2022 Nov 17, 2022

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/

474
Translate
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

Translate
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

Dave Watts, Eidolon LLC
Translate
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

Thank you so much!!!

 

 

Translate
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
LATEST

You're welcome!

 

Dave Watts, Eidolon LLC

Dave Watts, Eidolon LLC
Translate
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