-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run into "range error" while opening a .md file #80
Comments
Does this happen any md file? |
It happens when I open a new md-roam project, then open a file in it and click inside inside that file for the first time. I have been managed several roam projects with |
Does it happen when you open a md file in a directory without .dir-local.el? Does it happen when you open every md file? (I am suspecting that the content of the file may influence the behavior). |
Also, whats your org version and Emacs version? |
Additionally, you seem to be opening a md file from org-roam-ui. Does the problem happen if you open the same file from within Emacs via find-file? |
Org: 9.7 It only happens for the first file visiting with But once I redefined Plus, I started run into errors as the following when I disabled the directory definition I guess it might come from a recent update, because it works fine before that when I can both define the directory and use |
It is resolved after I disable |
After I disabled definition of directory, turn off
|
This might be unrelated but I ran into the same error when adding a markdown file containing a |
The error occurs when the markdown file contains a code blog with an org syntax such as this below: ```org #+title: Org title ``` Before this change, md-roam used function `org-roam-db-insert-file' to insert a new markdown file. This function tries to get the title of the file with function `org-roam-db--file-title' and it calls `org-collect-keywords'. Somewhere down this chain, the error gets raised because the buffer is not a org buffer (and rest of the buffer is written in the markdown syntax).
Hopefully d05d867 fixes the issue. Let me know how you go. Closing for now. |
Hi, Here is what I get in my emacs when I open and click a .md file in a md roam project.
I have reported this to org-mode contributors. And they think it might because md-roam package modified `org-roam-buffer-p' and caused the breakage.
Hope this could help you to fix the issue.
The text was updated successfully, but these errors were encountered: