Skip to content
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

zotelo-set-collection: Wrong type argument: stringp, nil #30

Open
psamim opened this issue May 22, 2016 · 7 comments
Open

zotelo-set-collection: Wrong type argument: stringp, nil #30

psamim opened this issue May 22, 2016 · 7 comments

Comments

@psamim
Copy link

psamim commented May 22, 2016

Hi,

I just installed Zotelo. When I run zotelo-set-collection, I ger Wrong type argument: stringp, nil.

Thanks,
Samim

@vspinu
Copy link
Owner

vspinu commented May 23, 2016

Can you provide a traceback? Which emacs is this?

Also you please do M-x zotelo-verbose, as it might give some hints of what is going wrong.

@psamim
Copy link
Author

psamim commented May 23, 2016

I am using Archlinux, Emacs 24.5.1, and Spacemacs 0.105.20. I did M-x zotelo-verbose and it displayed zotelo verbose 't', but I still has the same issue and no extra information is displayed.

I just found out that it happens only for one of my Zotero collections. If I choose *ALL* or any other collection, it works as expected, adds a file variable and updates the bib file.

The name of the collection which causes the problem is thesis, if it helps.

@a-fent
Copy link

a-fent commented May 23, 2016

A suggestion - if you M-x set-variable debug-on-error t you will get a backtrace when this (or any Emacs) error fires, which will show where the problem is occurring.

@psamim
Copy link
Author

psamim commented May 24, 2016

Thanks for your help. I have this backtrace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  propertize(nil name "thesis")
  zotelo-set-collection()
  call-interactively(zotelo-set-collection nil nil)
  command-execute(zotelo-set-collection)

@vspinu
Copy link
Owner

vspinu commented May 24, 2016

Something is wrong with that particular collection. Could you please paste here the content of *moz-command-output* immediately after the error happens?

@psamim
Copy link
Author

psamim commented May 24, 2016

This is the content of *moz-command-output* buffer.

2 /Event-Oriented
3 /HTTP
6 /iot-context
5 /Radioactivity
4 /Refah
8 /thesis
1 /*groups*/HTTP/network-http
repl>

Is it about numbering? As It seems that there is no number 7, but there is 8, which causes problem.

vspinu added a commit that referenced this issue May 24, 2016
@vspinu
Copy link
Owner

vspinu commented May 24, 2016

This is very strange. /thesis is just as anything else. Somehow that "8" is not picked by the regexp. Do you see it picked up by M-x regexp-builder with the this regexp "^\\([0-9]+\\) /\\(.*\\)$"?

It's defenitely something specific to your setup. I have pushed a small change that would throw an explicit error in such situations. I cannot do more without knowing what's the cause of it. Could you please try the latest version of zotelo?

BTW, I have removed hard-coded ido completion in zotelo. It's plain completing-read now. You can either use ido-ubiquitous, helm, ivy or set your own completion-read-function in zotelo buffers from now on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants