From: C K <hadoopchetan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: campany-capf throwing an error in org-mode, while entering header args [9.4.6 (9.4.6-12-gdcc3a8-elpaplus @ /home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/)]
Date: Sun, 15 Aug 2021 22:16:55 -0500 [thread overview]
Message-ID: <CANjC-ywXQ_JDp=Nds6s36KP0s4qSzExP6brijpVE938zJERNVQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3431 bytes --]
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
campany-capf throwing an error in org-mode, while entering header args
#### Error in `*Messages*` buffer
```
Company: backend company-capf error "Wrong type argument: char-or-string-p,
nil" with args (prefix)
```
#### Steps to reproduce
- emacs -Q
- `(add-to-list 'load-path "~/.emacs.d/elpa/company-20210811.214/")`
- `M-x load-library` `company`
- Open a org-mode buffer
- enable `company-mode`
- enter the example below, you will get the error when typing `:var`
```
#+Name: get-env
#+begin_src emacs-lisp
(print "hello")
#+end_src
#+begin_src emacs-lisp :var env=get-env()
(print env)
#+end_src
```
#### Expected behavior
This should not trigger an error.
#### The error backtrace
```
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
org-babel-balanced-split(nil 32)
#f(compiled-function (pair) #<bytecode -0x58ac6fff72dc116>)((:var))
org-babel-parse-multiple-vars(((:var)))
org-babel-parse-header-arguments(":var" light)
#f(compiled-function (h) #<bytecode -0x1422a9568baa5a8e>)(":var")
org-babel-get-src-block-info(light)
pcomplete/org-mode/block-option/src()
pcomplete-completions()
pcomplete-completions-at-point()
completion--capf-wrapper(pcomplete-completions-at-point optimist)
company--capf-data-real()
company--capf-data()
company-capf(prefix)
apply(company-capf prefix)
company-call-backend-raw(prefix)
company--force-sync(company-call-backend-raw (prefix) company-capf)
company-call-backend(prefix)
company--continue()
company--perform()
company-post-command()
```
with `C-M-i` I get this error in messages buffer
```
Error in post-command-hook (completion-in-region--postch):
(wrong-type-argument char-or-string-p nil)
```
trace -
```
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
org-babel-balanced-split(nil 32)
#f(compiled-function (pair) #<bytecode 0x1086521bcdc902ea>)((:var))
org-babel-parse-multiple-vars(((:var)))
org-babel-parse-header-arguments(":var" light)
#f(compiled-function (h) #<bytecode -0x1422a956b59ad8ce>)(":var")
org-babel-get-src-block-info(light)
pcomplete/org-mode/block-option/src()
pcomplete-completions()
pcomplete-completions-at-point()
completion--capf-wrapper(pcomplete-completions-at-point optimist)
company--capf-data-real()
company--capf-data()
company-capf(prefix)
apply(company-capf prefix)
company-call-backend-raw(prefix)
company--force-sync(company-call-backend-raw (prefix) company-capf)
company-call-backend(prefix)
company--begin-new()
company--perform()
company-auto-begin()
company-idle-begin(#<buffer test.org> #<window 3 on test.org> 230 95)
apply(company-idle-begin (#<buffer test.org> #<window 3 on test.org> 230
95))
timer-event-handler([t 24857 34109 966818 nil company-idle-begin
(#<buffer test.org> #<window 3 on test.org> 230 95) nil 848000])
```
Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.20, cairo version 1.16.0)
of 2021-07-22
Package: Org mode version 9.4.6 (9.4.6-12-gdcc3a8-elpaplus @
/home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/)
[-- Attachment #2: Type: text/html, Size: 4209 bytes --]
next reply other threads:[~2021-08-19 11:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-16 3:16 C K [this message]
2021-08-19 12:21 ` Bug: campany-capf throwing an error in org-mode, while entering header args [9.4.6 (9.4.6-12-gdcc3a8-elpaplus @ /home/mypc/.emacs.d/elpa/org-plus-contrib-20210809/)] Tim Cross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANjC-ywXQ_JDp=Nds6s36KP0s4qSzExP6brijpVE938zJERNVQ@mail.gmail.com' \
--to=hadoopchetan@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).