munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
9.03k stars 1.05k forks source link

Make errors #1134

Open Big-Mande opened 1 year ago

Big-Mande commented 1 year ago

I was able to use the make get command but running the make command give me these errors: tool/lib/src/book.dart:118:56: Error: The method 'listSync' isn't defined for the class 'Glob'.

Viha123 commented 1 year ago

similar situation, I downgraded the dart to 2.19 so make-get works but then make doesn't work. Were you able to fix it? Edit: figured out that on dart 2.19.6-1 the make get and make clox seems to work.

a-y-u-s-h commented 11 months ago

similar situation, I downgraded the dart to 2.19 so make-get works but then make doesn't work. Were you able to fix it? Edit: figured out that on dart 2.19.6-1 the make get and make clox seems to work.

How did you do that exactly? I'm not from ecosystem and can't seem to figure this out.

a-y-u-s-h commented 11 months ago

Okay, I just followed the errors and updated them by hand (thought there must be a command for this) this is updated one, but not sure if it breaks anything -

name: tool
publish_to: none
environment:
  sdk: ">=2.12.0 <3.0.0"
dependencies:
  args: ^2.0.0
  charcode: ^1.1.3
  glob: ^2.0.0
  image: ^3.0.1
  markdown: ^4.0.0
  mime_type: ^1.0.0
  mustache_template: ^2.0.0
  path: ^1.7.0
  pool: ^1.4.0
  sass: ^1.26.5
  shelf: ^1.0.0
  string_scanner: ^1.0.5
br8th commented 7 months ago

installing dart v2.19.6 works for me

jstrattonsmith commented 1 month ago

Installing dart v2.19.6 also worked for me in the following way: brew reinstall dart@2.19 (I had already installed 3.5 so had to uninstall that as modifying the links didn't work for me) then echo 'export PATH="/opt/homebrew/opt/dart@2.19/bin:$PATH"' >> /Users/Jeremy/.zshrc per the recommendation of brew itself source ~/.zshrc and I was good to go