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

Crash when auto complete via tab response from requests.get #1538

Open
leowmjw opened this issue Aug 25, 2024 · 0 comments · May be fixed by #1581
Open

Crash when auto complete via tab response from requests.get #1538

leowmjw opened this issue Aug 25, 2024 · 0 comments · May be fixed by #1581

Comments

@leowmjw
Copy link

leowmjw commented Aug 25, 2024

When trying to auto complete via tab response from requests.get; crashes.

Reproduce steps + stacktrace below:

@ val r = requests.get("https://google.com.sg")
r: Response = Response(
  url = "https://www.google.com.sg/",
  statusCode = 200,
  statusMessage = "OK",
  data = <!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en-MY"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image"><title>Google</title><script nonce="amNMFn4qPMJYsuM10ThUGA">(function(){var _g={kEI:'pDTLZuXaD82k2roP4dfDmA8',kEXPI:'0,3700295,654,432,7,90,538567,2872,2891,561,7787,34680,30022,34266,145698,2,16737,23024,6699,41946,54825,2912,2,2,1,24626,2006,8155,23350,22436,48456,23980,76209,15816,1804,7734,27259,275,11814,1633,29278,14187,12896,5212675,999,124,21,5991287,2841236,97,6,32...

@ r.<tab>

@ r.Exception in thread "main" java.lang.AssertionError: assertion failed: missing implicit parameter of type requests.Response => geny.Readable after typer at phase parser
	at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
	at dotty.tools.dotc.typer.Implicits.inferImplicit(Implicits.scala:1043)
	at dotty.tools.dotc.typer.Implicits.inferImplicit$(Implicits.scala:819)
...
	at ammonite.repl.Repl.action$$anonfun$2(Repl.scala:211)
	at ammonite.util.Res$Success.flatMap(Res.scala:58)
	at ammonite.repl.Repl.action(Repl.scala:211)
	at ammonite.repl.Repl.loop$1(Repl.scala:218)
	at ammonite.repl.Repl.run(Repl.scala:233)
	at ammonite.Main.run(Main.scala:249)
	at ammonite.MainRunner.runRepl$$anonfun$1(MainRunner.scala:76)
	at ammonite.MainRunner.watchLoop(MainRunner.scala:57)
	at ammonite.MainRunner.runRepl(MainRunner.scala:76)
	at ammonite.AmmoniteMain$.main0(AmmoniteMain.scala:98)
	at ammonite.AmmoniteMain$.main(AmmoniteMain.scala:31)
	at ammonite.AmmoniteMain.main(AmmoniteMain.scala)

Details:

$ amm --version
Ammonite REPL & Script-Runner, 3.0.0-M2

System:
Mac M2 - Version 13.5

$ uname -a
Darwin xxx 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64

Let me know if any other info needed.

@kiendang kiendang linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant