New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ABCL: Missing source position from string buffer evaluation #753
Comments
|
Don't ask questions, there's nobody to answer them. Pull requests would go further. |
Probably left-over from a misunderstood merge with @alanruttenberg's changes. Can you describe a simple recipe for me to get to such a failure in a SLIME session with ABCL? I can probably fix things from there, or at least understand the problem a little better. |
Not sure how to do it from slime since I am using swank directly. I send it message:
which contains: And then when I need to query for information later I get no position despite pos being correct. I fixed it myself in a an override function And I get correct result: |
Merge slime-location-from-source-annotation patch from <https://github.com/Enerccio>. Addresses <slime#753>
Merge re-worked slime-location-from-source-annotation patch from <https://github.com/Enerccio>. slime.el documents the grammar for location to always be a four item list: <location> ::= (:location <buffer> <position> <hints>) | (:error <message>) <buffer> ::= (:file <filename>) | (:buffer <buffername>) | (:buffer-and-file <buffername> <filename>) | (:source-form <string>) | (:zip <file> <entry>) <position> ::= (:position <fixnum>) ; 1 based (for files) | (:offset <start> <offset>) ; start+offset (for C-c C-c) | (:line <line> [<column>]) | (:function-name <string>) | (:source-path <list> <start-position>) | (:method <name string> <specializers> . <qualifiers>) Addresses <slime#753>.
Implement FIND-SOURCE-LOCATION. Merged re-worked slime-location-from-source-annotation patch from <https://github.com/Enerccio>. slime.el documents the grammar for location to always be a four item list: <location> ::= (:location <buffer> <position> <hints>) | (:error <message>) <buffer> ::= (:file <filename>) | (:buffer <buffername>) | (:buffer-and-file <buffername> <filename>) | (:source-form <string>) | (:zip <file> <entry>) <position> ::= (:position <fixnum>) ; 1 based (for files) | (:offset <start> <offset>) ; start+offset (for C-c C-c) | (:line <line> [<column>]) | (:function-name <string>) | (:source-path <list> <start-position>) | (:method <name string> <specializers> . <qualifiers>) Addresses <slime#753>.
Implement FIND-SOURCE-LOCATION. Merged re-worked slime-location-from-source-annotation patch from <https://github.com/Enerccio>. slime.el documents the grammar for location to always be a four item list: <location> ::= (:location <buffer> <position> <hints>) | (:error <message>) <buffer> ::= (:file <filename>) | (:buffer <buffername>) | (:buffer-and-file <buffername> <filename>) | (:source-form <string>) | (:zip <file> <entry>) <position> ::= (:position <fixnum>) ; 1 based (for files) | (:offset <start> <offset>) ; start+offset (for C-c C-c) | (:line <line> [<column>]) | (:function-name <string>) | (:source-path <list> <start-position>) | (:method <name string> <specializers> . <qualifiers>) Addresses <#753>.
|
@Enerccio your problems should be addressed with #755. According to the grammar documented in https://github.com/slime/slime/blob/master/slime.el#L3349, the position should be specified by a single clause. We now privilege the numerical position if it is available. In addition, the SLIME interface for FIND-SOURCE-LOCATION wasn't implemented for ABCL. |
Why is buffer evaluation of function returning function name instead of position when there is position?
???
https://github.com/slime/slime/blob/master/swank/abcl.lisp#L1053
The text was updated successfully, but these errors were encountered: