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

Investigate log errors when indexing Homebrew/brew #134

Open
varungandhi-src opened this issue Oct 4, 2022 · 3 comments
Open

Investigate log errors when indexing Homebrew/brew #134

varungandhi-src opened this issue Oct 4, 2022 · 3 comments

Comments

@varungandhi-src
Copy link
Contributor

There are a bunch of errors like when indexing with a debug build.

sorbet/rbi/hidden-definitions/hidden.rbi:3649: Method OpenSSL::KDF.hkdf redefined without matching argument count. Expected: 5, got: 1 https://srb.help/4010
    3649 |  def self.hkdf(*arg); end
            ^^^^^^^^^^^^^^^^^^^
    https://github.com/sorbet/sorbet/tree/master/rbi/stdlib/openssl.rbi#L3844: Previous definition
    3844 |    def self.hkdf(ikm, salt:, info:, length:, hash:); end
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

sorbet/rbi/hidden-definitions/hidden.rbi:3651: Method OpenSSL::KDF.pbkdf2_hmac redefined without matching argument count. Expected: 5, got: 1 https://srb.help/4010
    3651 |  def self.pbkdf2_hmac(*arg); end
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    https://github.com/sorbet/sorbet/tree/master/rbi/stdlib/openssl.rbi#L3779: Previous definition
    3779 |  def self.pbkdf2_hmac(pass, salt:, iterations:, length:, hash:); end
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

sorbet/rbi/hidden-definitions/hidden.rbi:3653: Method OpenSSL::KDF.scrypt redefined without matching argument count. Expected: 2, got: 1 https://srb.help/4010
    3653 |  def self.scrypt(*arg); end
            ^^^^^^^^^^^^^^^^^^^^^
    https://github.com/sorbet/sorbet/tree/master/rbi/stdlib/openssl.rbi#L3815: Previous definition
    3815 |  def self.scrypt(pass, **kwargs); end
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

utils/gems.rb:149: [scip-ruby] couldn't find field @bundle_installed_groups in class ::Homebrew; https://srb.help/400
     149 |    if @bundle_installed_groups != groups
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  Note:
    are you using a code pattern like def MyClass.method which is unsupported by Sorbet?

dev-cmd/unbottled.rb:39: [scip-ruby] couldn't find field @bottle_tag in class ::Homebrew; https://srb.help/400
    39 |    @bottle_tag = if (tag = args.tag)
            ^^^^^^^^^^^
  Note:
    are you using a code pattern like def MyClass.method which is unsupported by Sorbet?

dev-cmd/unbottled.rb:90: [scip-ruby] couldn't find field @sort in class ::Homebrew; https://srb.help/400
    90 |      @sort = " (sorted by number of dependents)"
              ^^^^^
  Note:
    are you using a code pattern like def MyClass.method which is unsupported by Sorbet?

extend/os/linux/linkage_checker.rb:30: [scip-ruby] couldn't find field @libcrypt_found in class ::LinkageChecker; https://srb.help/400
    30 |    return unless @libcrypt_found
                          ^^^^^^^^^^^^^^^
@varungandhi-src
Copy link
Contributor Author

The number of errors is non-deterministic. I think this is perhaps due to non-deterministic scheduling of different threads across different files, where information from one file is not visible to another.

@varungandhi-src
Copy link
Contributor Author

Now there are even more errors with missing type information. 😕

@varungandhi-src varungandhi-src added the bug Something isn't working label Oct 6, 2022
@varungandhi-src
Copy link
Contributor Author

varungandhi-src commented Oct 6, 2022

The LSIF index is also malformed for some reason.

[codeintel-w...r] ERROR worker.worker.Handle workerutil/worker.go:382 operation.error {"TraceId": "cfea51e94d61c916ae9c885b37e1bb98", "SpanId": "0c44fdd2f354b407", "count": 1, "elapsed": 0.415351083, "error": "conversion.Correlate: dump malformed on element 119280: unknown reference to 4623 (expected a range) in element 119280"}

@mmanela mmanela added the Migrated label May 6, 2024 — with Linear
@linear linear bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants