org-roam / company-org-roam

Company completion backend for Org-roam
GNU General Public License v3.0
57 stars 4 forks source link

wrong-type-argument sequencep #6

Open failable opened 4 years ago

failable commented 4 years ago

Completion does not work at all and the following error throws.

Debugger entered--Lisp error: (wrong-type-argument sequencep \,)
  string-prefix-p(#("Pro" 0 3 (fontified t)) \, t)
  #f(compiled-function (candidate) #<bytecode 0x5337cddd>)(\,)
  -filter(#f(compiled-function (candidate) #<bytecode 0x5337cddd>) ("Entropy" "Parsing" "Text Classification" "Named-Entity Recognition" "NER" "Overfitting" "Semantic Analysis" "Probabilistic Graphical Models" "PGM" "How To Take Smart Notes With Org-mode · Jethro Kuan" "The Procrustean Bed of Productivity - Nat Eliason" "Fauxductivity: 8 Ways You Trick Yourself into Feeling Productive - Nat Eliason" "Generative Adversarial Networks" "GAN" "Shell" "Stacking" "Machine Reading Comprehension" "Sentiment Analysis" "Multiple Instance Learning" "Optimization" "Sequence Labeling" "Reinforcement Learning" "Cross Validation" "CV" "Local Outlier Factor" "High Dimensional Data" "Feature Extraction" "Metrics" "Capsule" "Logistic Regression" "t-SNE" "Clustering" "Regularization" "Tokenization" "Random Forest" "User Profiling" "Unsupervised Learning" "Feature Selection" "Machine Translation" "Algebra" "Encoding" "Kaggle" "Pre-Trained Models" "Topic Models" "GBDT" "Speech Recognition" "Anomaly Detection" "Decision Tree" "Point Networks" "Singular Value Decomposition" ...))
  company-org-roam--filter-candidates(#("Pro" 0 3 (fontified t)) ("Entropy" "Parsing" "Text Classification" "Named-Entity Recognition" "NER" "Overfitting" "Semantic Analysis" "Probabilistic Graphical Models" "PGM" "How To Take Smart Notes With Org-mode · Jethro Kuan" "The Procrustean Bed of Productivity - Nat Eliason" "Fauxductivity: 8 Ways You Trick Yourself into Feeling Productive - Nat Eliason" "Generative Adversarial Networks" "GAN" "Shell" "Stacking" "Machine Reading Comprehension" "Sentiment Analysis" "Multiple Instance Learning" "Optimization" "Sequence Labeling" "Reinforcement Learning" "Cross Validation" "CV" "Local Outlier Factor" "High Dimensional Data" "Feature Extraction" "Metrics" "Capsule" "Logistic Regression" "t-SNE" "Clustering" "Regularization" "Tokenization" "Random Forest" "User Profiling" "Unsupervised Learning" "Feature Selection" "Machine Translation" "Algebra" "Encoding" "Kaggle" "Pre-Trained Models" "Topic Models" "GBDT" "Speech Recognition" "Anomaly Detection" "Decision Tree" "Point Networks" "Singular Value Decomposition" ...))
  company-org-roam--get-candidates(#("Pro" 0 3 (fontified t)))
  company-org-roam(candidates #("Pro" 0 3 (fontified t)))
  apply(company-org-roam (candidates #("Pro" 0 3 (fontified t))))
  company-call-backend-raw(candidates #("Pro" 0 3 (fontified t)))
  company--fetch-candidates(#("Pro" 0 3 (fontified t)))
  company-calculate-candidates(#("Pro" 0 3 (fontified t)) nil)
  company--begin-new()
  company--perform()
  company-auto-begin()
  company-idle-begin(#<buffer 20200411112850-building_a_second_brain.org> #<window 3 on 20200411112850-building_a_second_brain.org> 58 419)
  apply(company-idle-begin (#<buffer 20200411112850-building_a_second_brain.org> #<window 3 on 20200411112850-building_a_second_brain.org> 58 419))
  timer-event-handler([t 24209 30620 673561 nil company-idle-begin (#<buffer 20200411112850-building_a_second_brain.org> #<window 3 on 20200411112850-building_a_second_brain.org> 58 419) nil 0])
nicksilver commented 4 years ago

This same issue has just popped up for me...was literally working just an hour ago. I can't figure out what changed. Completion has completely stopped in org-roam (it works fine elsewhere). I get this message:

Company: An error occurred in auto-begin
Company: backend (company-org-roam company-yasnippet company-dabbrev) error "Wrong type argument: sequencep, \," with args (candidates Inter)

To replicate, just starting typing in an org-roam buffer.

I'm using Doom Emacs.

Clearing the org-roam-db cache fixes the error message, and regular company-mode works fine, until I build the cache again :(

nicksilver commented 4 years ago

I tracked my issue down to a mis-use of the ROAM_ALIAS variable. I was using commas between aliases.