Skip to content

Fix for latest Gerbil v0.18.1-163-ge55e0806#6

Open
fare wants to merge 1 commit into
drewc:mainfrom
fare-patches:fix
Open

Fix for latest Gerbil v0.18.1-163-ge55e0806#6
fare wants to merge 1 commit into
drewc:mainfrom
fare-patches:fix

Conversation

@fare

@fare fare commented Aug 16, 2025

Copy link
Copy Markdown
Contributor
  • Default value must not use previous argument (anymore?)
  • Type error (is the type too restrictive?)

@fare

fare commented Aug 16, 2025

Copy link
Copy Markdown
Contributor Author

Please test in your setup before to merge.

@vyzo vyzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this pr should not exist at all, these issues should be fixed in gerbil itself:

  • call-with-output-string should have its signature fixed in the builting decls in the compiler
  • optionals referring to previous arguments should work; its a regression, so please fix in gerbil and add a test.

(catch (e) (http-response-write
res 500 '(("Content-Type" . "text/plain"))
(with-output-to-string (cut display-exception e))))))
(with-output-to-string "" (cut display-exception e))))))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it is too type restrictive it should be fixed in gerbil

(catch (e) (http-response-write
res 500 '(("Content-Type" . "text/plain"))
(with-output-to-string (cut display-exception e))))))
(with-output-to-string "" (cut display-exception e))))))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Comment thread ftw/httpd/endpoint.org
(catch (e) (http-response-write
res 500 '(("Content-Type" . "text/plain"))
(with-output-to-string (cut display-exception e))))))
(with-output-to-string "" (cut display-exception e))))))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Comment thread ftw/httpd/endpoint.org

#+begin_src gerbil
(defmethod {endpoint-match-predicate endpoint}
(lambda (self (m (endpoint-match self)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhm, this should work though, needs to be fixed in gerbil.

@fare

fare commented Aug 18, 2025

Copy link
Copy Markdown
Contributor Author

Good, please ignore this PR for now, but don't close until the issue is fixed in Gerbil.

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 this pull request may close these issues.

2 participants