#375: CL:OPEN failure ----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: new Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Keywords: | ----------------------+----------------------- The following form {{{ (open #p"~/xx" :direction :output :if-exists :append :external-format '(:latin-1 :eol-style :lf)) }}}
fails with the following message
{{{ ; Evaluation aborted on NIL. }}}
-- Ticket URL: http://abcl.org/trac/ticket/375 armedbear http://abcl.org armedbear
#375: CL:OPEN failure -----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: new Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Resolution: | Keywords: -----------------------+-----------------------
Comment (by mevenson):
Running outside of SLIME gives the more intelligible {{{ java.nio.charset.UnsupportedCharsetException: LATIN-1 at java.nio.charset.Charset.forName(Charset.java:531) at org.armedbear.lisp.util.RandomAccessCharacterFile.setEncoding(RandomAccessCharacterFile.java:309) at org.armedbear.lisp.util.RandomAccessCharacterFile.<init>(RandomAccessCharacterFile.java:288) }}}
Why does SLIME not return a meaningful error?
Should we add some sort of alias for LATIN-1
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:1 armedbear http://abcl.org armedbear
#375: CL:OPEN failure -----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: new Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Resolution: | Keywords: -----------------------+-----------------------
Comment (by mevenson):
Observation: UnsupportedCharsetException is a Java runtime exception.
Hypothesis: The SLIME :spawn communication style is not correctly communicating the runtime exception back to the SWANK listener.
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:2 armedbear http://abcl.org armedbear
#375: CL:OPEN failure -----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: new Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Resolution: | Keywords: -----------------------+-----------------------
Comment (by mevenson):
Triggering the runtime exception via {{{ (jstatic "forName" "java.nio.charset.Charset" "foo") }}}
shows that SLIME does seem to work with RuntimeException.
Maybe the difference is that the RuntimeException is occurring inside nested constructors?
Recommendation: signal a meaningful Lisp condition when an invalid charset is used.
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:3 armedbear http://abcl.org armedbear
#375: CL:OPEN failure -----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: new Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Resolution: | Keywords: -----------------------+-----------------------
Comment (by mevenson):
SIMPLE-ERROR now signaled for invalid encodings in r14735.
Unsure if there is still a problem lurking in how SLIME interacts with Java exceptions thrown by the ABCL implementation, but closing for now.
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:4 armedbear http://abcl.org armedbear
#375: CL:OPEN failure -----------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: closed Priority: major | Milestone: 1.4.0 Component: java | Version: 1.4.0-dev Resolution: fixed | Keywords: -----------------------+----------------------- Changes (by mevenson):
* status: new => closed * resolution: => fixed
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:5 armedbear http://abcl.org armedbear
#375: CL:OPEN failure ---------------------------+----------------------- Reporter: mevenson | Owner: Type: defect | Status: closed Priority: major | Milestone: 1.3.2 Component: java | Version: 1.4.0-dev Resolution: fixed | Keywords: Parent Tickets: | ---------------------------+----------------------- Changes (by mevenson):
* milestone: 1.4.0 => 1.3.2
-- Ticket URL: http://abcl.org/trac/ticket/375#comment:6 armedbear http://abcl.org armedbear
armedbear-ticket@common-lisp.net