<< Back to previous view

[CLJ-196] *file* returns "NO_SOURCE_PATH", but the doc says it should be nil Created: 10/Oct/09  Updated: 14/Aug/13  Resolved: 14/Aug/13

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Backlog
Fix Version/s: Release 1.6

Type: Defect Priority: Minor
Reporter: Alexander Redington Assignee: Unassigned
Resolution: Completed Votes: 2
Labels: None

Attachments: Text File 0001-Fix-docstring-for-file-refs-196.patch     Text File 0002-Don-t-promise-the-value-of-file-in-the-REPL.patch    
Patch: Code
Approval: Ok
Waiting On: Rich Hickey


According to http://clojure.org/api, *file* should return nil in the repl, but it returns "NO_SOURCE_PATH".

This has been true for a long time. Latest patch changes only the docstring of *file* to accurately reflect current behavior.

Comment by Assembla Importer [ 24/Aug/10 4:47 AM ]

Converted from http://www.assembla.com/spaces/clojure/tickets/196

Comment by Colin Jones [ 31/Dec/10 2:41 PM ]

I think this is a pretty trivial docstring fix - "NO_SOURCE_PATH" has been the default value of file since 3dd4c1cf18ea8456b5b4aec607cd54ecfdd85eea (April 2009).

Comment by Andy Fingerhut [ 24/Feb/12 4:36 PM ]

Colin's patch still applies cleanly to latest master as of Feb 24, 2012.

Comment by Stuart Sierra [ 23/Mar/12 8:32 AM ]

Docstring only. Screened.

Comment by Stuart Sierra [ 24/Aug/12 8:44 AM ]

Rescreened. Still applies on latest master.

Comment by Rich Hickey [ 19/Oct/12 5:47 PM ]

I'd rather promise nothing than promise this forever.

Comment by Colin Jones [ 19/Oct/12 7:15 PM ]

The second patch avoids promising the return value. For clarity, it does mention the lack of guarantee instead of omitting any mention.

Comment by Christopher Redinger [ 27/Nov/12 5:33 PM ]

Patch applies cleanly and makes documentation more correct.

Generated at Sat Jan 20 14:42:46 CST 2018 using JIRA 4.4#649-r158309.