Coder Social home page Coder Social logo

Comments (6)

hymkor avatar hymkor commented on May 29, 2024 2

@wolf-li :

When you edit the script by Visual Studio Code, it is possible that the last line does not have CRLF.

To resolve this problem , two methods exist.

  1. Append the empty line after end .
  2. Try the new version: Release v0.6.1 ยท hymkor/expect.
    where I fixed the bug that When a script did not end with CRLF, the last line was ignored.

Would you try one of these methods ?

from expect.

wolf-li avatar wolf-li commented on May 29, 2024 2

Yes. Thanks for your work.

from expect.

wolf-li avatar wolf-li commented on May 29, 2024 1

@wolf-li :

When you edit the script by Visual Studio Code, it is possible that the last line does not have CRLF.

To resolve this problem , two methods exist.

  1. Append the empty line after end .
  2. Try the new version: Release v0.6.1 ยท hymkor/expect.
    where I fixed the bug that When a script did not end with CRLF, the last line was ignored.

Would you try one of these methods ?

Good job, All of these solutions can solve the problem.
But I recommend using the second method. If the script is written incorrectly, the session will not get stuck as shown in the figure below.

export2

Many thanks to the author for his work.

from expect.

hymkor avatar hymkor commented on May 29, 2024

@wolf-li

Thank you for reporting.

Would you append CRLF at the last line of sample.lua ?

On my environment, when I remove CRLF from the last line of the script, I see the error message you reported.

from expect.

wolf-li avatar wolf-li commented on May 29, 2024

@hymkor

Thank you very much for your reply. I tried the method you said, but it didn't work. As shown in the figure below .
Using expect-v0.6.0-amd64.zip and v0.5, It's the same problem.

export

from expect.

hymkor avatar hymkor commented on May 29, 2024

I'm glad the problem is solved .

Can I close this issue ?

from expect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.