Skip to content

Commit

Permalink
Merge pull request vimeo#10360 from robchett/remove_early_progress_wh…
Browse files Browse the repository at this point in the history
…en_scanning_partial_codebase

A segment of progress was being output early as the startScanningFile…
  • Loading branch information
orklah authored Nov 13, 2023
2 parents bb4d808 + f4aef37 commit 5095f4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Psalm/Internal/Analyzer/ProjectAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,9 @@ public function checkFile(string $file_path): void
*/
public function checkPaths(array $paths_to_check): void
{
$this->progress->write($this->generatePHPVersionMessage());
$this->progress->startScanningFiles();

$this->config->visitPreloadedStubFiles($this->codebase, $this->progress);
$this->visitAutoloadFiles();

Expand All @@ -1069,9 +1072,6 @@ public function checkPaths(array $paths_to_check): void

$this->file_reference_provider->loadReferenceCache();

$this->progress->write($this->generatePHPVersionMessage());
$this->progress->startScanningFiles();

$this->config->initializePlugins($this);


Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Progress/LongProgress.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class LongProgress extends Progress

protected bool $print_infos = false;

protected bool $fixed_size = true;
protected bool $fixed_size = false;

public function __construct(bool $print_errors = true, bool $print_infos = true)
{
Expand Down

0 comments on commit 5095f4e

Please sign in to comment.