Skip to main content
droppedsci
Participant
November 17, 2022
Answered

running a .cfm from repl

  • November 17, 2022
  • 1 reply
  • 431 views

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/

    This topic has been closed for replies.
    Correct answer Dave Watts

    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

    1 reply

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    November 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
    droppedsci
    Participant
    November 17, 2022

    Thank you so much!!!

     

     

    Community Expert
    November 17, 2022

    You're welcome!

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC