Skip to main content
droppedsci
Participant
Nov 17, 2022 8:37 PM UTC
Answered

running a .cfm from repl

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 is closed to new replies. Start a new post to keep the conversation going.
    Dave WattsCorrect answer
    Community Expert
    Nov 17, 2022 9:09 PM UTC

    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

    3 replies

    Dave WattsCommunity ExpertCorrect answer
    Community Expert
    Nov 17, 2022 9:09 PM UTC

    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
    Dave Watts, Eidolon LLC
    droppedsci
    Participant
    Nov 17, 2022 9:22 PM UTC

    Thank you so much!!!

     

     

    Translate
    Community Expert
    Nov 17, 2022 9:29 PM UTC

    You're welcome!

     

    Dave Watts, Eidolon LLC

    Translate
    Dave Watts, Eidolon LLC