marcomorain / marcomorain/clojure-lint
Require with rename failed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
The code
```clj
(ns kondo
(:require
[clojure.string :refer [blank? join] :rename {join str-join}]))
;
```
Result
```
An unexpected error occured when running clj-kondo. Please report a bug
to https://github.com/marcomorain/clojure-lint/issues
[Error: Invalid arguments
at new f (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:362:501)
at new f (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:359:919)
at range (/home/maxp/.vscode/extensions/marcomorain.clojure-lint-0.6.1/out/extension.js:60:12)
at toDiagnostic (/home/maxp/.vscode/extensions/marcomorain.clojure-lint-0.6.1/out/extension.js:66:16)
at Array.map ()
at /home/maxp/.vscode/extensions/marcomorain.clojure-lint-0.6.1/out/extension.js:92:55
at /home/maxp/.vscode/extensions/marcomorain.clojure-lint-0.6.1/out/extension.js:36:24
at ChildProcess.exithandler (child_process.js:310:5)
at ChildProcess.emit (events.js:200:13)
at maybeClose (internal/child_process.js:1021:16)
at Socket. (internal/child_process.js:430:11)
at Socket.emit (events.js:200:13)
at Pipe. (net.js:586:12)]
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the Clojure namespace snippet, then inspect the extension.js stack-trace locations in range and toDiagnostic. Verify the rename form no longer causes an unexpected error and that the extension produces a normal diagnostic result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100