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

fix ns-symbol-for-cljs handling for local vars #26

Merged

Conversation

lucywang000
Copy link
Contributor

@lucywang000 lucywang000 commented Dec 13, 2021

Currently debux would throw NPE when expanding this snippet in CLJS:

(defn f1
  [v]
  #d/dbgn (v))

A repro of the issue (a complete shadow-cljs project) could be find here: https://github.com/lucywang000/bugs-repro/tree/5a86fcdc19faa6a105a6c99338c3a11c290675dc/repro-debux-npe

The problem is the ns-symbol-for-cljs function would return a null symbol name when the symbol is a local variable.

@philoskim
Copy link
Owner

Thanks a lot again!

@philoskim philoskim merged commit 723c395 into philoskim:master Dec 13, 2021
@lucywang000 lucywang000 deleted the fix-npe-in-calling-local-vars branch December 13, 2021 12:58
philoskim added a commit that referenced this pull request Jan 28, 2022
@philoskim
Copy link
Owner

philoskim commented Jan 28, 2022

The new version 0.8.2 of Debux has just been released reflecting your pull request.

Many 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

Successfully merging this pull request may close these issues.

2 participants