Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiler does not tell me which line is problematic in imports #7471

Open
BlowaterNostr opened this issue Jan 6, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@BlowaterNostr
Copy link

app [main!] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o.tar.br" }
import pf.Stdout
import pf.Stdin
import pf.Task

main =
    Stdout.line! "Type in something and press Enter:"
    input = Stdin.line!
    Stdout.line! "Your input was: $(input)"

gives me

# roc run main.roc
── FILE NOT FOUND in ...0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o/Task.roc ─

I am looking for this file, but it's not there:

    /Users/mac/.cache/roc/packages/github.com/roc-lang/basic-cli/releases/download/0.18.0/0APbwVN1_p1mJ96tXjaoiUCr8NBGamr8G8Ac_DrXR-o/Task.roc

Is the file supposed to be there? Maybe there is a typo in the file
name?

The reason is that import pf.Task does not exist in [email protected] anymore.

However, the error message should improve. It should tell me line 4.

@Anton-4 Anton-4 added the enhancement New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants