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

URL missing for cryptic error messages #250

Open
srenatus opened this issue Sep 14, 2022 · 2 comments
Open

URL missing for cryptic error messages #250

srenatus opened this issue Sep 14, 2022 · 2 comments
Labels
cryptic A cryptic error message was returned by Bass

Comments

@srenatus
Copy link
Contributor

I've found it, anyways; but since I'm a fan of this little feature, I figured I might open an issue. Sorry I didn't get to look into myself just now.

In the REPL, it seems like the URL is consistently missing -- I only get

Tip: if this error is too cryptic, please open an issue:

without the link
image

The error is not important, I've gotten past this myself; I'm just sharing the input and error output for context.

@srenatus srenatus added the cryptic A cryptic error message was returned by Bass label Sep 14, 2022
@vito
Copy link
Owner

vito commented Sep 14, 2022

Thanks for reporting! Hmm if I had to guess I'd say this has to do with how the REPL renders its prompt. I use a fancy package for the auto-complete menu that sometimes gets a little invasive with the TUI. It might be rendering over the last line or something. Not sure why it would only be happening for the error message though.

@srenatus
Copy link
Contributor Author

The concrete error is irrelevant, but on this occasion, it has cut of the interesting bit, not the "too cryptic" addendum:

=> (use (*dir*/opa.bass))
                   
error! call trace (oldest first):

   ┆ <fs>/history:4:0..4:22
 4 │ (use (*dir*/opa.bass))
     ^^^^^^^^^^^^^^^^^^^^^^

   ┆ <host: opa.bass>:1:0..22:1
 1 │ (provide [evalu]
 2 │   (def *opa-image*
 3 │     (case (next *stdin* :none)
 4 │       :none (linux/openpolicyagent/opa :latest)
 5 │       image image))
 6 │ 
 7 │   (defn evalu [query])
 8 │     (from *opa-image*
 9 │       ($ opa eval $query))
10 │ 
11 │   (defn go-build [src pkg]
12 │     (-> (from (linux/golang)
13 │           (cd src
14 │             ($ go build -o ../out/)))
15 │         (subpath ./out/)))
16 │ 
17 │   (def cloned
18 │     (from (linux/alpine/git)
19 │       ($ git clone "https://github.com/open-policy-agent/opa" ./repo/)))
20 │ 
21 │   ;(emit (go-build cloned/repo/ "./cmd/...") *stdout*)
22 │ )
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

=> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cryptic A cryptic error message was returned by Bass
Projects
None yet
Development

No branches or pull requests

2 participants