less / less/less.js

Rhino version does not create source map file

Open
#2,044 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug medium priority
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

This is related to #2043. I used command:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less less.css

This is how less.less looks like:

.test {
  demo: value;
}

Source map file was not created.

Note 1: The --source-map option is not ignored by rhino, because following:

java -jar js.jar -f less-rhino-1.7.0.js lessc-rhino-1.7.0.js --source-map less.less

returns expected error:

output: undefined
the sourcemap option only has an optional filename if the css filename is given

Note 2: the same file compiled under node.js generated source map file:

{"version":3,"file":"less.css","sources":["less.less"],"names":[],"mappings":"AAAA;EACE,WAAA"}

Contributor guide

Open the contributing guide

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 running the reported Rhino command with less-rhino-1.7.0.js, lessc-rhino-1.7.0.js, and less.less, then compare it with the Node.js result. Trace the Rhino command-line handling of --source-map and less.css. Done means the Rhino invocation creates a source map for less.less and less.css like the Node.js invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, javascript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.