* 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/)]
@ 2021-08-16 3:16 C K
2021-08-19 12:21 ` Tim Cross
0 siblings, 1 reply; 2+ messages in thread
From: C K @ 2021-08-16 3:16 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 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/)]
2021-08-16 3:16 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/)] C K
@ 2021-08-19 12:21 ` Tim Cross
0 siblings, 0 replies; 2+ messages in thread
From: Tim Cross @ 2021-08-19 12:21 UTC (permalink / raw)
To: emacs-orgmode
Is this something which should really be reported to the company-capf
maintainers?
C K <hadoopchetan@gmail.com> writes:
> 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/)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-19 12:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-16 3:16 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/)] C K
2021-08-19 12:21 ` Tim Cross
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).