<< Back to previous view

[CLJCLR-92] clojure.core/spit behaviour differs from JVM version Created: 23/Mar/17  Updated: 23/Mar/17

Status: Open
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Joseph Parker Assignee: David Miller
Resolution: Unresolved Votes: 0
Labels: None


 Description   

In clojure-clr, spit will partially overwrite an existing file

(do
  (spit "test.txt" :abcd)
  (spit "test.txt" :12)
  (slurp "test.txt" :encoding "UTF-8"))
;":12cd"

in jvm clojure the same test returns ":12"



 Comments   
Comment by Joseph Parker [ 23/Mar/17 3:13 PM ]

whoops, this is a duplicate of http://dev.clojure.org/jira/browse/CLJCLR-37 and can be closed





[CLJCLR-91] Socket Repl remote connections from places other than localhost Created: 21/Mar/17  Updated: 21/Mar/17

Status: Open
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Martynas Drobulis Assignee: David Miller
Resolution: Unresolved Votes: 0
Labels: None


 Description   

clojure.core.server namespace

-> start-server fn
-> address var

TcpListener does not support any IP/Hostname that is not localhost
There is no way to pass IPAddress.Any into TcpListener

Sad panda is really sad






[CLJCLR-90] Socket Repl Crashes the app when provided with "\'asdf" string including quotes Created: 21/Mar/17  Updated: 21/Mar/17

Status: Open
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Martynas Drobulis Assignee: David Miller
Resolution: Unresolved Votes: 0
Labels: None


 Description   

user=> "\'asdf"
InvalidOperationException Unsupported escape character: \' clojure.lang.LispReader+StringReader.Read (:0)
CompilerException System.InvalidOperationException: Unable to resolve symbol: asdf in this context
at clojure.lang.Compiler.ResolveIn(Namespace n, Symbol symbol, Boolean allowPrivate)
at clojure.lang.Compiler.AnalyzeSymbol(Symbol symbol)
at clojure.lang.Compiler.Analyze(ParserContext pcontext, Object form, String name), compiling: (NO_SOURCE_PATH:0:0)

Possible solution would be to put a Try Catch inside loop,

(try (print (eval (read)))
(catch Exception e (print e)))






Generated at Sat Mar 25 06:52:29 CDT 2017 using JIRA 4.4#649-r158309.