GNU bug report logs -
#68060
[PATCH 0/5] gnu: Add neovim-coqtail.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68060 in the body.
You can then email your comments to 68060 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:29:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jean-Pierre De Jesus DIAZ <jean <at> foundationdevices.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 27 Dec 2023 15:29:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This adds the Neovim version of the vim-coqtail and vim-vader packages.
Both neovim-vader and neovim-coqtail are tested using neovim instead of
vim.
Also refactored a bit the vim-vader and vim-coqtail package definitions
to use the vim/neovim packages provided by the build system (or replace
vim with vim-full in vim-vader's case).
Jean-Pierre De Jesus DIAZ (5):
gnu: vim-vader: Allow using neovim for tests.
gnu: Add neovim-vader.
gnu: vim-coqtail: Move vim-full to arguments.
gnu: vim-coqtail: Allow using neovim for tests.
gnu: Add neovim-coqtail.
gnu/packages/vim.scm | 55 ++++++++++++++++++++++++++++++++------------
1 file changed, 40 insertions(+), 15 deletions(-)
base-commit: 756ba0429e84ee0f8ce30484439b78c00c61d286
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:33:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68060 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vim.scm (vim-vader): Allow using neovim for tests
Change-Id: Id5b4423f24fdd42814b0a0e3fab801ec871611f7
---
gnu/packages/vim.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 9debed0b86..03d1e5bed5 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1509,7 +1509,7 @@ (define-public vim-vader
#:phases
(modify-phases %standard-phases
(add-before 'install 'check
- (lambda* (#:key tests? #:allow-other-keys)
+ (lambda* (#:key tests? vim? neovim? #:allow-other-keys)
(when tests?
;; FIXME: suite1.vader fails with an unknown reason,
;; lang-if.vader requires Python and Ruby.
@@ -1519,9 +1519,11 @@ (define-public vim-vader
(display "Running Vim tests\n")
(with-directory-excursion "test"
- (setenv "VADER_TEST_VIM" "vim -E")
+ (when vim?
+ (setenv "VADER_TEST_VIM" "vim -E"))
+ (when neovim?
+ (setenv "VADER_TEST_VIM" "nvim --headless"))
(invoke "bash" "./run-tests.sh"))))))))
- (native-inputs (list vim))
(home-page "https://github.com/junegunn/vader.vim")
(synopsis "Test framework for Vimscript")
(description "Vader is a test framework for Vimscript designed to
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:33:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 68060 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vim.scm (neovim-vader): New variable.
Change-Id: Ib507c2086c31a42088f3f433b57ac1e345e27113
---
gnu/packages/vim.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 03d1e5bed5..7fc6cae6e9 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -1533,6 +1533,11 @@ (define-public vim-vader
automate testing and is compatible with Vim and Neovim.")
(license license:expat)))) ;; Specified in README.md.
+(define-public neovim-vader
+ (package
+ (inherit vim-vader)
+ (name "neovim-vader")))
+
(define-public vim-jedi-vim
(package
(name "vim-jedi-vim")
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:33:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 68060 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vim.scm (vim-coqtail): Move vim-full from native-inputs
to arguments.
Change-Id: I20cc1e0772727f8fc7db70b42151432fb6349fc7
---
gnu/packages/vim.scm | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 7fc6cae6e9..e27feb13f7 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -470,7 +470,8 @@ (define-public vim-coqtail
"0av2m075n6z05ah9ndrgnp9s16yrz6n2lj0igd9fh3c5k41x5xks"))))
(build-system vim-build-system)
(arguments
- '(#:plugin-name "coqtail"
+ `(#:plugin-name "coqtail"
+ #:vim ,vim-full ; Plugin needs Python 3.
#:phases
(modify-phases %standard-phases
(add-before 'install 'check
@@ -491,9 +492,7 @@ (define-public vim-coqtail
"/share/vim/vimfiles/pack/guix/start/vader")))
(with-directory-excursion "tests/vim"
(setenv "VADER_PATH" vader-path)
- (invoke (string-append
- (assoc-ref (or native-inputs inputs) "vim-full")
- "/bin/vim")
+ (invoke "vim"
"-E" "-Nu" "vimrc"
"-c" "Vader! *.vader")))
@@ -501,10 +500,9 @@ (define-public vim-coqtail
;; they don't get installed.
(delete-file-recursively "python/__pycache__")))))))
(native-inputs
- `(("coq-for-coqtail" ,coq-for-coqtail)
- ("python-pytest" ,python-pytest)
- ("vim-full" ,vim-full) ; Plugin needs Python 3.
- ("vim-vader" ,vim-vader)))
+ (list coq-for-coqtail
+ python-pytest
+ vim-vader))
(propagated-inputs (list coq coq-ide-server))
(synopsis "Interactive Coq proofs in Vim")
(description "Coqtail enables interactive Coq proof development in Vim
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:33:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 68060 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vim.scm (vim-coqtail): Allow using neovim for tests.
Change-Id: I114b07dd9cf525a5571a37f51b2e6b2a57d5be46
---
gnu/packages/vim.scm | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index e27feb13f7..5f211b120d 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -475,7 +475,8 @@ (define-public vim-coqtail
#:phases
(modify-phases %standard-phases
(add-before 'install 'check
- (lambda* (#:key inputs native-inputs tests? #:allow-other-keys)
+ (lambda* (#:key inputs native-inputs tests? vim? neovim?
+ #:allow-other-keys)
(when tests?
(display "Running Python unit tests.\n")
(setenv "PYTHONPATH" (string-append (getcwd) "/python"))
@@ -489,12 +490,19 @@ (define-public vim-coqtail
"vim-vader"))
(vader-path (string-append
vim-vader
- "/share/vim/vimfiles/pack/guix/start/vader")))
+ (if vim?
+ "/share/vim/vimfiles"
+ "/share/nvim/site")
+ "/pack/guix/start/vader"))
+ (command `(,@(if vim? '("vim" "-E") '())
+ ,@(if neovim? '("nvim" "--headless") '())
+ "-Nu" "vimrc"
+ "-c" "Vader! *.vader")))
(with-directory-excursion "tests/vim"
+ (when neovim?
+ (setenv "HOME" (getcwd)))
(setenv "VADER_PATH" vader-path)
- (invoke "vim"
- "-E" "-Nu" "vimrc"
- "-c" "Vader! *.vader")))
+ (apply invoke command)))
;; Remove __pycache__ files generated during testing so that
;; they don't get installed.
--
2.41.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#68060
; Package
guix-patches
.
(Wed, 27 Dec 2023 15:33:03 GMT)
Full text and
rfc822 format available.
Message #20 received at 68060 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/vim.scm (neovim-coqtail): New variable.
Change-Id: I431571925da02788410fc8bf3b1e1aea93bcb1bb
---
gnu/packages/vim.scm | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 5f211b120d..1f7a005cb1 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -518,6 +518,18 @@ (define-public vim-coqtail
(home-page "https://github.com/whonore/Coqtail")
(license license:expat))))
+(define-public neovim-coqtail
+ (package
+ (inherit vim-coqtail)
+ (name "neovim-coqtail")
+ (synopsis "Interactive Coq proofs in Neovim")
+ (description "Coqtail enables interactive Coq proof development in Neovim
+similar to CoqIDE or ProofGeneral.")
+ (native-inputs
+ (modify-inputs (package-native-inputs vim-coqtail)
+ (replace "vim-vader" neovim-vader)
+ (append python-minimal python-pynvim)))))
+
(define-public vim-fugitive
(package
(name "vim-fugitive")
--
2.41.0
Reply sent
to
Efraim Flashner <efraim <at> flashner.co.il>
:
You have taken responsibility.
(Mon, 01 Jan 2024 09:01:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Jean-Pierre De Jesus DIAZ <jean <at> foundationdevices.com>
:
bug acknowledged by developer.
(Mon, 01 Jan 2024 09:01:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 68060-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Patches look good. Thanks!
--
Efraim Flashner <efraim <at> flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 29 Jan 2024 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 138 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.