vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
812 stars 129 forks source link

Markdown panel does not appear on scratch files - Pycharm 2020.1 Pro #848

Open smnkdrnk opened 4 years ago

smnkdrnk commented 4 years ago

Markdown files located in the scratch directory in project view no longer display the markdown panel.

The only other markdown plugin I have installed is gfm, but in fact even that plugin is disabled at the moment.

The panel appears as expected for markdown files located within the project.

vsch commented 4 years ago

@smnkdrnk,

If you create a file using the "New Scratch File..." action then it works. However, if you create the file using "New File" action on the "Scratches" directory then the IDE does not properly setup the file mapping for scratch files and the file is not recognized by Markdown Navigator as a Markdown file.

As a workaround use the context menu action"Change Language (Markdown)..."

image

and re-select "Markdown" as the language and open the file. If the file is already open the plugin will detect that this file is now markdown and offer to re-open it:

image

The issue came up because I removed use of deprecated methods which work correctly and the IDE still has bugs in the new implementation. I will file a YouTrack issue for this.

vsch commented 4 years ago

@smnkdrnk, I chose to use part of the deprecated code which is still valid to compensate for the bug instead of filing YouTrack issue. The latter, takes a more effort to file and usually takes a long time to fix.

I will make a new EAP release shortly with latest fixes.

vsch commented 4 years ago

@smnkdrnk, EAP update, 3.0.xxx.91, with a fix for the issue is available.

Installing EAP Plugin Version

Please note the change that EAP channel is for JetBrains licensed plugin and Legacy EAP is for legacy licensing by vladsch.com

smnkdrnk commented 4 years ago

Wow, amazing response time! Your suggestions worked as expected, and I'll try out the EAP version as well.

Thanks so much for your help and fast response!