(alter-var-root #'my-system component/stop-system)
(my-compute (:mycomputecomp my-system) 16)
my-compute should (as data map is nil'ed on stop) crash but doesn't.
Calling
(alter-var-root #'my-system component/stop-system)
again fixes it and my-compute crashes as expected.
Hi Jose…
thank you for the hint, indeed this fixes it.
Ciao
…Jochen
P. S.
However, just for completeness, I still am a bit uncertain this is perfect
behavior as (dissoc this :mydatacomp) fiddles with the dependencies which I
understood should be managed by component.
So, when I call
verse function.
Ciao
…Jochen
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubs
lace "&#" "&#")
(xml/parse-str)))
;;=> #clojure.data.xml.Element{:tag :foo, :attrs {:bar "Baz\r\nquux"},
:content ()}
Looking into the emit code, it seems like this is a Java XMLStreamWriter
issue?!
Any idea how to fix this in a clean way?
ot;Baz\r\nquux"}))
(xml/parse-str)))
;; => #xml/element{:tag :foo, :attrs {:bar "Baz quux"}}
Ciao
…Jochen
Am Donnerstag, 9. November 2017 11:56:18 UTC+1 schrieb Joost:
>
> Hi Jochen
>
> Since newlines and crs are allowed in attribute values, you don't ne
d example was to replace the &# in the
output string with &#, which works, but of course does not scale to large
xml files and might have side effects.
I hope there must be an official way to configure the parser or something.
I cannot do something about the attribute content as it comes from
e link, this indeed looks official :-).
Ciao
…Jochen
Am Donnerstag, 9. November 2017 12:32:06 UTC+1 schrieb Peter Hull:
>
> On Thursday, 9 November 2017 11:21:36 UTC, Jochen wrote:
>>
>> hmmm, that is unfortunately not the reality. In fact any newlines/returns
>> in att
e this:
(swap! my-atom (comp second (partial split-with #(<= % 2
=> (3 4)
@my-atom
=> (3 4)
Now, is there some even easier way to achieve this or is this the best
approach?
Ciao
…Jochen
--
You received this message because you are subscribed to the Google
Groups "Clojure&qu
Hi Steve…
thanks for all the pointers. Seems that someone is already on it... :-)
Ciao
…Jochen
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new m
on (sample_test.clj:4)
>> Ran 1 tests containing 1 assertions in 55 msecs
>> 0 failures, 1 errors.
, but
(expect AssertionError (assert false))
still works.
Ciao
...Jochen
Am Mittwoch, 12. März 2014 02:28:37 UTC+1 schrieb Jay Fields:
>
> expectations is a minimilist
but should signal 1 error
(expect AssertionError (from-each [a ["1" 2]] (assert (string? a ;;
still all pass but should signal 1 error
(expect AssertionError (from-each [a ["1" "2"]] (assert (string? a)))) ;;
shows both errors
Ciao
...Jochen
Am Mittwoch, 12. Mär
Hi Jay
yep, with 2.0.7, everything works just fine now. BTW: I still consider this
a very quick response time wich is highly appreciated.
Ported all my (thousands of) tests over with no more issues.
Ciao
...Jochen
--
You received this message because you are subscribed to the Google
of the above)?
At least in my REPL-Tests this seems works fine, e.g.
(read-string "#=(java.lang.Double/valueOf \"Infinity\")")
=> Infinity
(class (read-string "#=(java.lang.Double/valueOf \"Infinity\")"))
=> java.lang.Double
...Jochen
--
You receive
eas
what I can do here?
Ciao
...Jochen
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
. unchecked-int)
for this case?!?
Ciao
...Jochen
> It sounds as if you use 1.3-alpha-something. The problem is that aset-
> int is a function. So your int gets boxed again to a Long. Just use
> aset. It's also a function but is usually inlined, so you pass
> primitive directly.
>
Hi...
> user=> (aset (make-array Integer/TYPE 1) 0 (int (- 0x8000)))
> -2147483648
>user=> (aset (make-array Integer/TYPE 1) 0 (.intValue 0x8000))
>-2147483648
cool, that (both) works! I often forget that in clojure I can drop
back to Java any time.
Thanks a lot
our update policy I would not provide an update to the
stable branches of Fedora Linux.
Best Regards:
Jochen Schmitt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts fro
not Java or .NET environment.
Best Regards:
Jochen Schmitt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient
e to Fedora Rawhide.
Best Regards:
Jochen Schmitt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
fi
r message you> give below, because ant
> by itself does not pull in the necessary dependencies.
This is not a acceptable solution because this will downloading files
from the internet. On the build server you will get error messages
which was cause my the attemp to make a internet connect
nto the official Clojure
soruce pacakge.
In the meanwhile, I have found a way to suppres the test step in the
ant script.
Best Regards:
Jochen Schmitt
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo
Am 23.09.11 16:41, schrieb Stuart Halloway:
Hi Jochen, thanks for this report.
It looks like the annotations tests are failing due to changes from
JDK 1.6 to 1.7. They were brittle tests to begin with and should
probably be removed or replaced.
This also revealed to me that our JDK test
22 matches
Mail list logo