munificent / craftinginterpreters

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

make get : File not found - *.dart #1161

Closed ianTevesAcc closed 2 months ago

ianTevesAcc commented 2 months ago

I have the dart-sdk + chocolatey + make all installed and running properly. All are in the Path. But for some reason when I run make get on the main directory. It results in the following error.

PS C:\Users\marci\OneDrive\Desktop\craftinginterpreters-master> make get File not found - *.dart The system cannot find the path specified. make: *** [Makefile:10: get] Error 1

It can't find the .dart file types in the tool directory (+sub directories). I dont know where else to look in order to fix this issue.

Can I get some help?

Makefile code that identifies this issue: TOOL_SOURCES := tool/pubspec.lock $(shell find tool -name '*.dart') All apps are the latest stable versions.

ianTevesAcc commented 2 months ago

I SOLVED IT!!!

I used git bash terminal to run the make get and make command. And it worked!!!

I tried running everything on Ubuntu and PowerShell before and it didn't work.

ianTevesAcc commented 2 months ago

Solution:

Use git bash terminal to run the make get and make command.

  1. Download and install git bash
  2. Download and install chocolatey, dart-sdk, gnu make
  3. Open git bash
  4. Go to the "craftinginterpreters-master" folder location using cd command in your terminal - cd "/craftinginterpreters-master" (edit to the actual path of the directory)
  5. Enter and run make get command in git bash terminal
  6. When no errors happen, run make command in the git bash terminal
  7. Have fun on your interpreter creation journey