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

Invalid check of folder #235

Open
b0-n0-b0 opened this issue Feb 14, 2024 · 0 comments
Open

Invalid check of folder #235

b0-n0-b0 opened this issue Feb 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@b0-n0-b0
Copy link

b0-n0-b0 commented Feb 14, 2024

Bug report

Link to repository

throw new RuntimeException("Invalid scip-php vendor directory: {$scipPhpVendorDir}.");

Problem

Following the instructions in the readme to run the indexer

composer require --dev davidrjenni/scip-php
vendor/bin/scip-php
src code-intel upload

makes the code always throw an exception, due to the fact that the path checked in the provided link is:

$scipPhpVendorDir = self::join(__DIR__, '..', '..', 'vendor');
        if (realpath($scipPhpVendorDir) === false) {
            throw new RuntimeException("Invalid scip-php vendor directory: {$scipPhpVendorDir}.");
        }

which always fails due to the use of __DIR__ that refers to the composer.php file location

@b0-n0-b0 b0-n0-b0 added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant