Skip to content

Instantly share code, notes, and snippets.

@easbarba
Created August 15, 2020 20:37
Show Gist options
  • Save easbarba/e56eb17a25ba8f3d37f03106925cbc64 to your computer and use it in GitHub Desktop.
Save easbarba/e56eb17a25ba8f3d37f03106925cbc64 to your computer and use it in GitHub Desktop.
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
expand-file-name(nil)
userlock--check-content-unchanged("/dados/Pessoal/lsp-mode/docs/page/lsp-bash.md")
userlock--ask-user-about-supersession-threat("/dados/Pessoal/lsp-mode/docs/page/lsp-bash.md")
write-region(1 116 "/dados/Pessoal/lsp-mode/docs/page/lsp-bash.md" t)
append-to-file(1 116 "/dados/Pessoal/lsp-mode/docs/page/lsp-bash.md")
(progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* ((key (match-string 1)) (value (lsp-doc--variable->value it key client))) (replace-match value t t))) (append-to-file (point-min) (point-max) file))
(unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* ((key (match-string 1)) (value (lsp-doc--variable->value it key client))) (replace-match value t t))) (append-to-file (point-min) (point-max) file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
(save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* ((key (match-string 1)) (value (lsp-doc--variable->value it key client))) (replace-match value t t))) (append-to-file (point-min) (point-max) file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
(let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* ((key ...) (value ...)) (replace-match value t t))) (append-to-file (point-min) (point-max) file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
(let ((it (car list))) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* (... ...) (replace-match value t t))) (append-to-file (point-min) (point-max) file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
(while list (let ((it (car list))) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while (re-search-forward "{{\\([][:word:]\\[.-]+\\)}}" nil t) (let* ... ...)) (append-to-file (point-min) (point-max) file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))) (setq it-index (1+ it-index)) (setq list (cdr list)))
(let ((list (lsp-doc--variables client-name)) (it-index 0)) (while list (let ((it (car list))) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents "../template/lsp-client-var.md") (while ... ...) (append-to-file ... ... file)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))) (setq it-index (1+ it-index)) (setq list (cdr list))))
(let* ((client-name (gethash "name" client))) (let ((list (lsp-doc--variables client-name)) (it-index 0)) (while list (let ((it (car list))) (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn ... ... ...) (and ... ...))))) (setq it-index (1+ it-index)) (setq list (cdr list)))))
lsp-doc--add-variables(#<hash-table equal 6/65 0x158e06f8d055> "/dados/Pessoal/lsp-mode/docs/page/lsp-bash.md")
(save-current-buffer (set-buffer (find-file-noselect file)) (goto-char (point-min)) (lsp-doc--replace-placeholders client) (save-buffer 0) (lsp-doc--add-variables client file))
(if (file-exists-p file) nil (copy-file "template/lsp-client.md" file) (save-current-buffer (set-buffer (find-file-noselect file)) (goto-char (point-min)) (lsp-doc--replace-placeholders client) (save-buffer 0) (lsp-doc--add-variables client file)))
(let* ((name (gethash "name" client)) (file (file-truename (concat "page/lsp-" name ".md")))) (if (file-exists-p file) nil (copy-file "template/lsp-client.md" file) (save-current-buffer (set-buffer (find-file-noselect file)) (goto-char (point-min)) (lsp-doc--replace-placeholders client) (save-buffer 0) (lsp-doc--add-variables client file))))
lsp-doc--generate-for(#<hash-table equal 6/65 0x158e06f8d055>)
(closure (t) (client) (lsp-doc--generate-for client))(#<hash-table equal 6/65 0x158e06f8d055>)
mapc((closure (t) (client) (lsp-doc--generate-for client)) [#<hash-table equal 6/65 0x158e08f3e1e5> #<hash-table equal 7/65 0x158e06f8d035> #<hash-table equal 6/65 0x158e06f8d055> #<hash-table equal 6/65 0x158e06f8d075> #<hash-table equal 8/65 0x158e08e87ae5> #<hash-table equal 6/65 0x158e08e87b05> #<hash-table equal 6/65 0x158e08e87b25> #<hash-table equal 7/65 0x158e092aba95> #<hash-table equal 6/65 0x158e092abab5> #<hash-table equal 6/65 0x158e092abad5> #<hash-table equal 6/65 0x158e092ab139> #<hash-table equal 6/65 0x158e092ab159> #<hash-table equal 6/65 0x158e092ab179> #<hash-table equal 6/65 0x158e06fada7d> #<hash-table equal 6/65 0x158e090d7c59> #<hash-table equal 6/65 0x158e090d7c79> #<hash-table equal 6/65 0x158e090d7c99> #<hash-table equal 6/65 0x158e08fc8cf9> #<hash-table equal 6/65 0x158e08fc8d19> #<hash-table equal 6/65 0x158e08fc8d39> #<hash-table equal 6/65 0x158e0761870d> #<hash-table equal 6/65 0x158e0761872d> #<hash-table equal 6/65 0x158e0761874d> #<hash-table equal 6/65 0x158e09043305> #<hash-table equal 6/65 0x158e09043325> #<hash-table equal 6/65 0x158e09043345> #<hash-table equal 6/65 0x158e08f63d39> #<hash-table equal 8/65 0x158e08f63d59> #<hash-table equal 6/65 0x158e075c860d> #<hash-table equal 6/65 0x158e08e8fc89> #<hash-table equal 6/65 0x158e08f23e91> #<hash-table equal 7/65 0x158e08e56ebd> #<hash-table equal 6/65 0x158e08f61dbd> #<hash-table equal 6/65 0x158e08ff13bd> #<hash-table equal 6/65 0x158e08f2adcd> #<hash-table equal 8/65 0x158e0903addd> #<hash-table equal 6/65 0x158e092b90d1> #<hash-table equal 6/65 0x158e08fc20bd> #<hash-table equal 6/65 0x158e09056255> #<hash-table equal 6/65 0x158e08da45d9> #<hash-table equal 6/65 0x158e090c37f9> #<hash-table equal 6/65 0x158e08f3a485> #<hash-table equal 8/65 0x158e08fcdcc9> #<hash-table equal 8/65 0x158e08ef78c9> #<hash-table equal 7/65 0x158e08fd78b9> #<hash-table equal 7/65 0x158e0903fc85> #<hash-table equal 6/65 0x158e08e0f1cd> #<hash-table equal 6/65 0x158e08f63d79> #<hash-table equal 6/65 0x158e08eeafbd> #<hash-table equal 6/65 0x158e08eeafdd> ...])
seq-do((closure (t) (client) (lsp-doc--generate-for client)) [#<hash-table equal 6/65 0x158e08f3e1e5> #<hash-table equal 7/65 0x158e06f8d035> #<hash-table equal 6/65 0x158e06f8d055> #<hash-table equal 6/65 0x158e06f8d075> #<hash-table equal 8/65 0x158e08e87ae5> #<hash-table equal 6/65 0x158e08e87b05> #<hash-table equal 6/65 0x158e08e87b25> #<hash-table equal 7/65 0x158e092aba95> #<hash-table equal 6/65 0x158e092abab5> #<hash-table equal 6/65 0x158e092abad5> #<hash-table equal 6/65 0x158e092ab139> #<hash-table equal 6/65 0x158e092ab159> #<hash-table equal 6/65 0x158e092ab179> #<hash-table equal 6/65 0x158e06fada7d> #<hash-table equal 6/65 0x158e090d7c59> #<hash-table equal 6/65 0x158e090d7c79> #<hash-table equal 6/65 0x158e090d7c99> #<hash-table equal 6/65 0x158e08fc8cf9> #<hash-table equal 6/65 0x158e08fc8d19> #<hash-table equal 6/65 0x158e08fc8d39> #<hash-table equal 6/65 0x158e0761870d> #<hash-table equal 6/65 0x158e0761872d> #<hash-table equal 6/65 0x158e0761874d> #<hash-table equal 6/65 0x158e09043305> #<hash-table equal 6/65 0x158e09043325> #<hash-table equal 6/65 0x158e09043345> #<hash-table equal 6/65 0x158e08f63d39> #<hash-table equal 8/65 0x158e08f63d59> #<hash-table equal 6/65 0x158e075c860d> #<hash-table equal 6/65 0x158e08e8fc89> #<hash-table equal 6/65 0x158e08f23e91> #<hash-table equal 7/65 0x158e08e56ebd> #<hash-table equal 6/65 0x158e08f61dbd> #<hash-table equal 6/65 0x158e08ff13bd> #<hash-table equal 6/65 0x158e08f2adcd> #<hash-table equal 8/65 0x158e0903addd> #<hash-table equal 6/65 0x158e092b90d1> #<hash-table equal 6/65 0x158e08fc20bd> #<hash-table equal 6/65 0x158e09056255> #<hash-table equal 6/65 0x158e08da45d9> #<hash-table equal 6/65 0x158e090c37f9> #<hash-table equal 6/65 0x158e08f3a485> #<hash-table equal 8/65 0x158e08fcdcc9> #<hash-table equal 8/65 0x158e08ef78c9> #<hash-table equal 7/65 0x158e08fd78b9> #<hash-table equal 7/65 0x158e0903fc85> #<hash-table equal 6/65 0x158e08e0f1cd> #<hash-table equal 6/65 0x158e08f63d79> #<hash-table equal 6/65 0x158e08eeafbd> #<hash-table equal 6/65 0x158e08eeafdd> ...])
(progn (seq-do #'(lambda (client) (lsp-doc--generate-for client)) (lsp-doc--clients)))
eval((progn (seq-do #'(lambda (client) (lsp-doc--generate-for client)) (lsp-doc--clients))) t)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
#<subr call-interactively>(eval-last-sexp nil nil)
apply(#<subr call-interactively> eval-last-sexp (nil nil))
call-interactively@ido-cr+-record-current-command(#<subr call-interactively> eval-last-sexp nil nil)
apply(call-interactively@ido-cr+-record-current-command #<subr call-interactively> (eval-last-sexp nil nil))
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment