djspiewak/cccp — Issue #18: 'retain item count not positive'
Author: candera
Created: 2011-12-09 20:57:43+00:00
State: open

# Background

When I was trying to get jEdit and emacs to talk to each other, I was unsuccessful. After some digging, it looks like the jEdit plugin is getting errors back for every edit-file operation.

# Steps to Reproduce

* Start a server
* Start jEdit
* Choose "Link File" from the CCCP plugin menu
* Type any character
* Observe the entries in the log below

# Error Log

Handling chunk: (:swank-rpc (swank:init-connection (:protocol "http" :host "localhost" :port 8585)) 1)
Initializing connection: http://localhost:8585
Handling chunk: (:swank-rpc (swank:link-file "abc" "/home/candera/projects/cccp/Untitled-1") 2)
Linking file: abc -> /home/candera/projects/cccp/Untitled-1
Handling chunk: (:swank-rpc (swank:edit-file "/home/candera/projects/cccp/Untitled-1" (:retain 0 :insert " " :retain 0)) 3)
Sending chunk: (:return (:abort 201 "Attempt to build ill-formed operation (ViolationCollector[1: ill-formed: retain item count not positive at original document position 0 / resulting document position 0]): __0; ") 3)