huntertran / markdown-toc

Auto MarkdownTOC (Table Of Contents) plugin for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=huntertran.auto-markdown-toc
MIT License
39 stars 25 forks source link

Extension is not working #35

Closed lc-soft closed 4 years ago

lc-soft commented 4 years ago

Peek 2020-04-30 14-58

VSCode:

Version: 1.44.2 Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd Date: 2020-04-16T17:50:03.709Z Electron: 7.1.11 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Linux x64 5.3.0-42-generic

Ian-T-Price commented 4 years ago

I'm finding the same issue. It worked (with issues) when I first loaded the extension but on a restart of VSCode nothing happens.

The issues I allude to are:

Version: 1.45.0 Commit: d69a79b73808559a91206d73d7717ff5f798f23c Date: 2020-05-07T16:10:24.511Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Linux x64 4.15.0-99-generic

huntertran commented 4 years ago

could you try to remove the extension then install it again?

lc-soft commented 4 years ago

@huntertran Sorry, it not work.

I switched this extension to version 3.0.3 and it worked.

huntertran commented 4 years ago

I think I found the problem. The Linux file names are case sensitive. I update the extension to 3.0.8. Please check if it works. Thanks

lc-soft commented 4 years ago

@huntertran it not work.

I think this problem has existed since version 3.0.4, Because version 3.0.3 works normally, but after switching to version 3.0.4 it does not work.

lc-soft commented 4 years ago

I found that the version tags of this repository has not been updated since v2.2.2, I suggest that you add a tag every time you release a new version for this extension. so that you can easily use the following link to compare the differences between the two versions.

https://github.com/huntertran/markdown-toc/compare/v3.0.3...v3.0.4

huntertran commented 4 years ago

I found that the version tags of this repository has not been updated since v2.2.2, I suggest that you add a tag every time you release a new version for this extension. so that you can easily use the following link to compare the differences between the two versions.

v3.0.3...v3.0.4

haha that exactly what I'm doing now

n-alex-white commented 4 years ago

I'm on MacOS, I try to run the command and it fails with the following message and no other information.

Running the contributed command: 'extension.updateMarkdownToc' failed.

huntertran commented 4 years ago

I'm on MacOS, I try to run the command and it fails with the following message and no other information.

Running the contributed command: 'extension.updateMarkdownToc' failed.

which version are you using?

J-Siu commented 4 years ago

I am on MacOS also. VSCode 1.46.1 Auto Markdown TOC is v3.0.9.

Seeing same issue. If I type the tag manually:

<!-- TOC -->

<!-- /TOC -->

Then use the context menu to update, the above tag will disappear.

huntertran commented 4 years ago

@J-Siu can you share the simplified version of the markdown document? I'm testing on version 3.0.9 of the extension. As soon as I pasted the tags, the TOC appeared as expected

J-Siu commented 4 years ago

@huntertran

I installed 3.0.10 and same result. My README.md is in repo: https://github.com/J-Siu/hugo-theme-sk3

Seems I found the cause from .md side. Issue happen if md file don't have L1 heading(#). You can try with following:

## t21
## t22
## t23
### t31
## t24

It will work after adding a fake L1 heading:

# t

But that is annoying.

huntertran commented 4 years ago

@J-Siu please try again with version 3.0.11

J-Siu commented 4 years ago

@huntertran yes 3.0.11 is working!