marcomorain / marcomorain/clojure-lint

Require with rename failed

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.