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

Hugsql-generated functions lack file/line metadata #77

Closed
technomancy opened this issue Nov 22, 2017 · 1 comment
Closed

Hugsql-generated functions lack file/line metadata #77

technomancy opened this issue Nov 22, 2017 · 1 comment

Comments

@technomancy
Copy link
Contributor

The biggest complaint I've heard from people I've talked to who use hugsql is that jump-to-definition functions stop working as soon as they hit a hugsql-generated function.

It looks like hugsql uses a source-logging-push-back-reader which is capable of tracking line numbers and filenames. Attaching this metadata to the vars created by hugsql would allow existing tooling to be able to jump straight to the .sql files from which they are defined.

@csummers
Copy link
Member

Released in version 0.4.9. Thanks!

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

No branches or pull requests

2 participants