Skip to content

[BUG] undefined constant Crystal::Scheduler - with Crystal v1.16.3 and -Dexecution_context #29

@crimson-knight

Description

@crimson-knight

Describe the bug
After adding the shard to my shard.yml file and installing the dependencies, when I try to compile I get this error:

In lib/nbchannel/src/nbchannel.cr:57:9

 57 | Crystal::Scheduler.reschedule
      ^-----------------
Error: undefined constant Crystal::Scheduler

Expected behavior
The shard to be added to the shard.yml file and the code should compile and run as usual with the instrumentation added in.

Versions(please complete the following information):

  • OS: MacOS 14.7.6
  • Crystal: 1.16.3 with -Dpreview_mt -Dexecution_context flags

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions