Uploaded image for project: 'core.typed'
  1. CTYP-239

Search for .cljc files when checking a namespace

    Details

    • Patch:
      Code

      Description

      Currently core.typed assumes that Clojure files end with a .clj extension and ClojureScript files with .cljs. However, due to the introduction of reader conditionals to the language the .cljc extension is now valid for both Clojure and ClojureScript. core.typed should look for .cljc files in addition to .clj and .cljs.

      The problem originates in the clojure.core.typed.coerce-utils namespace's ns->file function, since it hardcodes the .clj and .cljs extensions for finding Clojure and ClojureScript namespaces. When using this function from clojure.core.typed.analyze-clj namespace's ast-for-ns function it throws an exception.

      Pull request: 58

      Commits: 8dd3099 81aa140

      Version: 0.3.12

        Attachments

          Activity

            People

            • Assignee:
              dialelo Alejandro
              Reporter:
              dialelo Alejandro
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: