Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: process.stdout.clearLine is not a function #644

Closed
technophile-04 opened this issue Dec 10, 2023 · 1 comment · Fixed by #654
Closed

TypeError: process.stdout.clearLine is not a function #644

technophile-04 opened this issue Dec 10, 2023 · 1 comment · Fixed by #654
Assignees
Labels
status:ready This issue is ready to be worked on type:bug Something isn't working

Comments

@technophile-04
Copy link

technophile-04 commented Dec 10, 2023

Description :

Its seems process.stdout.clearLine might not work in some OS / node versions, recently encountered this error in our gh-actions CI job :
https://github.com/scaffold-eth/scaffold-eth-2/actions/runs/7158553408/job/19490782791

I think this was the cause in our case

Similar issues reported on other repo's :

https://forum.cloudron.io/topic/9219/calling-build-inside-a-docker-container

cookpete/auto-changelog#73

hallh/elasticsearch-primary-balancer#9

Possible solution is to use clearLine from node's readline:

import { clearLine } from 'readline'

clearLine(process.stdout, 0)

It was suggested here : https://stackoverflow.com/questions/34570452/node-js-stdout-clearline-and-cursorto-functions#comment80319576_34570694

@kanej
Copy link
Member

kanej commented Dec 11, 2023

Thanks @technophile-04, we will attempt to swap in the readline version of clearLine.
Either way we will get a fix in place to resolve running ignition within a github action.

@kanej kanej added type:bug Something isn't working status:ready This issue is ready to be worked on and removed status:triaging labels Dec 11, 2023
@kanej kanej moved this to Todo in Hardhat Ignition Dec 11, 2023
@kanej kanej moved this from Todo to In Progress in Hardhat Ignition Dec 12, 2023
@kanej kanej self-assigned this Dec 12, 2023
@kanej kanej moved this from In Progress to Todo in Hardhat Ignition Dec 12, 2023
@kanej kanej removed their assignment Dec 12, 2023
@zoeyTM zoeyTM moved this from Todo to In Progress in Hardhat Ignition Dec 13, 2023
@zoeyTM zoeyTM self-assigned this Dec 13, 2023
@zoeyTM zoeyTM moved this from In Progress to In Review in Hardhat Ignition Dec 13, 2023
@github-project-automation github-project-automation bot moved this from In Review to Done in Hardhat Ignition Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on type:bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants