This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-07
Channels
- # announcements (12)
- # autochrome-github (4)
- # babashka (27)
- # babashka-sci-dev (2)
- # beginners (80)
- # calva (34)
- # cider (8)
- # clj-kondo (77)
- # clojars (34)
- # clojure (50)
- # clojure-europe (35)
- # clojure-nl (4)
- # clojure-uk (5)
- # clojured (2)
- # clojurescript (26)
- # core-async (4)
- # cursive (4)
- # datahike (4)
- # datomic (40)
- # emacs (7)
- # etaoin (1)
- # fulcro (12)
- # google-cloud (143)
- # hyperfiddle (1)
- # integrant (2)
- # jobs (1)
- # malli (15)
- # membrane (17)
- # off-topic (38)
- # pathom (1)
- # reagent (4)
- # releases (2)
- # remote-jobs (2)
- # sci (1)
- # shadow-cljs (10)
- # spacemacs (7)
- # tools-deps (5)
- # vim (6)
- # xtdb (37)
Hello, I´m having this problem in clj-kondo
and Calva
Can't parse /c:/Trabalho/Clientes/test/projeto/back-end/src/core.clj, Illegal char <:> at index 2: .c:.Trabalho.Clientes.test.projeto.back-end.src.core.cljclj-kondo
@fabrao is possible, make a repro using clj-kondo on the command line
clojure -Sdeps '{:deps {clj-kondo/clj-kondo {:mvn/version "2022.03.04"}}}' -M -m clj-kondo.main --lint c:/foo.clj
This looks like it could have to do with the new namespace linter. @UGNFXV1FA
Can you also specify what you are using: Calva + clojure-lsp or the clj-kondo extension?
Is that also the version that Calva is using? Doesn’t it bundle its own instance of clj-kondo?
No, it's using the standalone clj-kondo plugin it seems, which is the newest version. clojure-lsp isn't using the newest clj-kondo yet.
@fabrao You could try disabling the :namespace-name-mismatch
linter in your config, if that fixes it then it’s conclusive where the issue is. I’ll have a look at the source code but I didn’t think of paths including /c:/
so I’m not sure if that works.
Disabling that linter doesn't deactivate the code-path in which this error happens I think
@fabrao can you please specify an exact repro on the command line, including the filename
This is why I'm asking for an exact command line repro. Please test with the old and new version.
PS C:\Windows\System32> clojure -Sdeps '{:deps {clj-kondo/clj-kondo {:mvn/version \"2022.03.04\"}}}' -M -m clj-kondo.main --lint c:/Trabalho/Clientes/test/projeto/back-end/src/core.clj
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding='UTF-8'
linting took 106ms, errors: 0, warnings: 0
clj-kondo --lint c:/Trabalho/Clientes/test/projeto/back-end/src/core.clj
linting took 9ms, errors: 0, warnings: 0
ok, please file an issue with the contents of the file and directory structure. Then I can try to reproduce using VSCode on Windows.
@UGNFXV1FA I guess you don't have access to a Windows machine right?
No. Maybe I could spin up a VM but it would take hours to get up and running. But the results above suggest it is unrelated to my PR, or am I misinterpreting?
@UGNFXV1FA I'll take a look on my Windows machine, no problem
yes, it's definitely Windows related and the only thing that comes to mind is that new namespace linter since that looks at the filename
@fabrao to pin down the issue, can you please disable Calva and only use the clj-kondo extension. you have installed the clj-kondo plugin from which this error comes.
@U04V15CAJ you see, console is showing other version than installed
if you are using Calva you don't have to use the clj-kondo extension, since clojure-lsp already comes with clj-kondo included.
but now that you have bumped into this issue, let's take advantage of this and get to the bottom of it
yes, as I said, this is coming form the clj-kondo extension. please try the older version 2022.2.9 now
yes, so it's likely that it is introduced in the latest version. thanks for checking
I have to use clj-kondo because I have clj-kondo in git action, so I have check it out before PR