oakmac / oakmac/standard-clojure-style-js

improve error message for use inside ns form

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

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
137
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Follow-up to Issue #152 and PR-171:

We should show more details to the user when :use is detected inside of the ns form. For example, we could include the line + column number where we encountered :use and print a few lines above and below the location so that the user can see more context of where the error occurred.

inspiration / ideas

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

Start by reviewing Issue #152 and PR-171 to understand the existing handling of :use inside an ns form. Trace the current error-reporting path and determine how location and surrounding source context are represented. Done means the error shows the encountered line and column plus nearby lines for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, javascript
Domain
tooling
Issue type
Feature
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.