Bogus deprecation messages from core.typed

Description

"DEPRECATED SYNTAX (client/reactive.clj): Any syntax is deprecated, use clojure.core.typed/Any" - Um, sure?

Environment

None

Activity

Show:
import
June 18, 2014, 11:39 AM

Comment made by: zilti

I'm on version 0.2.51. There are other such messages, especially core.typed itself triggers a lot of "U syntax is deprecated, use clojure.core.typed/U" messages.

Sean Corfield
June 25, 2014, 5:33 PM

Repro for 0.2.52:

  • lein new app typed-test

  • edit project.clj and add [org.clojure/core.typed "0.2.52"] as a dependency and :plugins [[lein-typed "0.3.4"]]

  • edit src/typed_test/core.clj and add (:require [clojure.core.typed])

  • run lein typed check typed-test.core

You get this output:

DEPRECATED SYNTAX (typed_test/core.clj): Any syntax is deprecated, use clojure.core.typed/Any

This comes from parse-unparse/parse-type-symbol 'Any but I haven't been able to figure out what triggers it yet. It's clearly not triggered by anything in user code tho' since it happens even when user code does not mention Any.

Sean Corfield
June 25, 2014, 5:41 PM

Found it: line 58 of analyze_clj.clj uses ~'Any but it should use T/Any.

I made that one change locally and installed 0.2.53-SNAPSHOT and the warning goes away for my test case when I depend on the snapshot.

Ambrose Bonnaire-Sergeant
July 2, 2014, 2:55 PM

I believe I stamped out all of these bogus messages in 0.2.53. Please let me know.

Sean Corfield
July 2, 2014, 11:53 PM

I no longer see any deprecation warnings with 0.2.53 against our codebase. Thank you!

Completed

Assignee

Ambrose Bonnaire-Sergeant

Reporter

import

Labels

None

Approval

None

Patch

None

Affects versions

Priority

Minor
Configure