crystal-coverage icon indicating copy to clipboard operation
crystal-coverage copied to clipboard

Require sequence compile error

Open hanneskaeufler opened this issue 6 years ago • 1 comments

It seems the require order is not quite the same. I needed to make the following change in order to get to compiling:

+require "./pages/main_layout"
 require "./pages/**

Else I was getting an

Error in src/pages/blog/archive.cr:1: undefined constant MainLayout

class Blog::ArchivePage < MainLayout

I have no idea how to debug this, any tips?

hanneskaeufler avatar Oct 12 '18 20:10 hanneskaeufler

Hello !

Indeed it may have a bug on the ** wildcard. I'll check the require order when I have time.

regards,

anykeyh avatar Dec 29 '18 06:12 anykeyh