Comments (12)
And that's kids why you don't merge pull requests blindly. Should be fixed now, please update and thanks for heads up.
from restclient.el.
Ack! This was my fault? I even tried without any variables right now, and for some reason that worked.
Sorry about that.
from restclient.el.
Aha, my version of regexp-opt
creates a ""
instead of nil
when given an empty list. Must be differing versions of Emacs.
from restclient.el.
I'm using 24.3 on OSX if that can be of any help.
from restclient.el.
Same here. What does M-: (regexp-opt nil)
say?
from restclient.el.
No worries. May be emacs version diffs, yes.
Th issue is not in regexp-opt, but in replacement function. Apparently, it tries to replace every empty space with nil and fails. Try this (replace-regexp-in-string "" (lambda (key) nil) "blah")
- does it work?
Mine is:
GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-11 on bob.porkrind.org
from restclient.el.
@magnars it says ""
from restclient.el.
@pashky doesn't work for me in a scratch buffer
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
replace-match(nil nil nil "b" nil)
replace-regexp-in-string("" (lambda (key) nil) "blah")
eval((replace-regexp-in-string "" (lambda (key) nil) "blah") nil)
eval-last-sexp-1(t)
eval-last-sexp(t)
eval-print-last-sexp()
call-interactively(eval-print-last-sexp nil nil)
from restclient.el.
Aha, look at that. Yes indeed, when there are no vars it will try to replace everything with nil. My testing was bad, since I had two versions of restclient installed, and the old one trumped the new one.
Thanks for the fix, @pashky.
from restclient.el.
And sorry for wasting both of your times with bad patches!
from restclient.el.
No problem really :)
from restclient.el.
No worries, I tried to fix the issue myself but I suck too much at elisp :)
from restclient.el.
Related Issues (20)
- error in process sentinel: peculiar error: "connect", :host, "identity.xero.com", :service, 443
- Feature request: save body of GET result to file HOT 4
- How do you set multiple variables?
- Binary at start of cached response from ASP.NET server
- Content-length header: Inconsistent case HOT 1
- `Unknown restclient hook type jq-set-var` With Latest Version HOT 4
- Set variable from response header
- Fall back to fundamental mode when response is huge
- Feature request: generate curl command with quotes instead of backslashes HOT 3
- Load Variables from a Different File
- Feature request: convert a multi-line curl command to request block inplace
- Prismjs syntax highlighter for this mode
- Feature request: support for server sent events
- 400 Request Header Or Cookie Too Large on all requests from restclient, but curl works.
- GET being sent with a body HOT 1
- POSTing files not working as an upload HOT 1
- Support streaming response?
- Variables set via hooks (jq-set-var) always override variables set in a file
- [FR] WebDAV: Add `PROPFIND` HTTP method HOT 1
- HTTP/2 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restclient.el.