phpgt / phpgt/GtCommand

Cloudlinux OS setup - failing due to missing `readLine`

Open
#49 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs enhancement
Dominant language
PHP
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

gt create
What is the name of your project? (This will name its directory)
PHP Fatal error: Uncaught Error: Call to undefined method Gt\GtCommand\Command\CreateCommand::readLine() in /home/user/.composer/vendor/phpgt/gtcommand/src/Command/CreateCommand.php:24
Stack trace:
#0 /home/user/.composer/vendor/phpgt/cli/src/Application.php(99): Gt\GtCommand\Command\CreateCommand->run()
#1 /home/user/.composer/vendor/phpgt/gtcommand/bin/gt(34): Gt\Cli\Application->run()
#2 /home/user/.composer/vendor/bin/gt(119): include('...')
#3 {main}
thrown in /home/user/.composer/vendor/phpgt/gtcommand/src/Command/CreateCommand.php on line 24

gt build
PHP Fatal error: Uncaught Error: Call to undefined method Gt\Build\Cli\RunCommand::setStream() in /home/divorakn/.composer/vendor/phpgt/gtcommand/src/Command/AbstractProxyCommand.php:11
Stack trace:
#0 /home/user/.composer/vendor/phpgt/gtcommand/src/Command/BuildCommand.php(16): Gt\GtCommand\Command\AbstractProxyCommand->run()
#1 /home/user/.composer/vendor/phpgt/cli/src/Application.php(99): Gt\GtCommand\Command\BuildCommand->run()
#2 /home/user/.composer/vendor/phpgt/gtcommand/bin/gt(34): Gt\Cli\Application->run()
#3 /home/user/.composer/vendor/bin/gt(119): include('...')
#4 {main}
thrown in /home/user/.composer/vendor/phpgt/gtcommand/src/Command/AbstractProxyCommand.php on line 11

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing gt create and gt build on CloudLinux, then inspect src/Command/CreateCommand.php at line 24 and src/Command/AbstractProxyCommand.php at line 11. Trace the command dependencies involved in readLine() and setStream(); done means both commands run without the reported undefined-method fatal errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.