Code Monkey home page Code Monkey logo

Comments (3)

huguesbr avatar huguesbr commented on July 30, 2024

Reading about the parallel gem, I've set the env variable export PARALLEL_PROCESSOR_COUNT=1 and use binding.pry to get more insight on the failure

hugues@macbook-pro-hugues:~/Developer/babylist-web|packwerk⚡ ⇒  bin/packwerk check
[TEST PROF INFO] Spring detected
📦 Packwerk is inspecting 4433 files
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
From: /Users/hugues/.rbenv/versions/2.7.7/lib/ruby/gems/2.7.0/gems/packwerk-2.2.2/lib/packwerk/node_helpers.rb:59 Packwerk::NodeHelpers.constant_name:

    54:           else
    55:             name.to_s
    56:           end
    57:         else
    58:           binding.pry
 => 59:           raise TypeError
    60:         end
    61:       end
    62:
    63:       sig { params(node: AST::Node).returns(T.untyped) }
    64:       def each_child(node)

[babylist-web][test] Packwerk::NodeHelpers:0> constant_node
=> s(:send,
  s(:self), :class)
[babylist-web][test] Packwerk::NodeHelpers:0> type_of(constant_node)
=> :send

from packwerk.

huguesbr avatar huguesbr commented on July 30, 2024

The source of the issue is indeed in the spec, excluding the spec directory in packwerk.yml "fix" the issue

# packwerk.yml
 exclude:
 - "{spec}/**/*"

from packwerk.

jamesbrauman avatar jamesbrauman commented on July 30, 2024

I'm getting the same error with my spec directory.

from packwerk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.