Skip to content
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

BUG: 直接粘贴文字并激活 Tars 时报错 #24

Open
kawnnor opened this issue Oct 14, 2024 · 2 comments
Open

BUG: 直接粘贴文字并激活 Tars 时报错 #24

kawnnor opened this issue Oct 14, 2024 · 2 comments

Comments

@kawnnor
Copy link
Contributor

kawnnor commented Oct 14, 2024

操作步骤如下视频:

  1. Ctrl + N 创建一个文档
  2. Ctrl + V 粘贴文字
  3. 回车激活 Tars
  4. 报错
  5. Backspace 删除一个空格
  6. 回车再次激活 Tars
  7. 得到正常结果

报错时,下面的项目都是空数组。

  • tagsInMeta
  • tags
  • tagsWithSections
  • messages

视频中的 apiKey 是临时生成的,不担心泄露。

2024-10-14.141343.-.Compressed.with.FlexClip.mp4
@ae86jack
Copy link
Member

插件对markdown的解析是依赖 obsidian 的解析,这几个数组tagsInMeta,tags,tagsWithSections 都是从obsidian的metadataCache读取。obsidian对这个更新有一些延迟

@ae86jack
Copy link
Member

我还遇到一些情况,如果文本里面有很多特殊字符,比如xml标签,各种markdown不规范的符号,也会导致这几个数组为空。 我觉得可以加一下 通知。但是通知不太好写。“obsidian的markdown解析为空或出错”?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants