Skip to content

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

Merged
philoskim merged 1 commit into
philoskim:masterfrom
lucywang000:fix-npe-in-calling-local-vars
Dec 13, 2021
Merged

philoskim merged 1 commit into
philoskim:masterfrom
lucywang000:fix-npe-in-calling-local-vars

Conversation

@lucywang000

@lucywang000 lucywang000 commented Dec 13, 2021 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

philoskim commented Jan 28, 2022 •

Copy link
Copy Markdown
Owner

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