ArtsiomCh / CMake

IntelliJ Platform plugin for CMake basic syntax highlight.
https://plugins.jetbrains.com/plugin/10089-cmake-simple-highlighter
GNU General Public License v3.0
44 stars 7 forks source link

CMakePlus doesn't display documentation since update to CLion 2021.3 #31

Closed j-silver closed 2 years ago

j-silver commented 2 years ago

When hovering on a cmake command it used to show documentation about the command, now I only see a tooltip saying "Fetching documentation..." but it doesn't download (I suppose) the docs from Internet. Clicking on the menu and choosing "Open in a documentation tool window" gives the same message

Screenshot from 2021-12-03 17-57-41

ArtsiomCh commented 2 years ago

Thanks! Could you please check you are on latest 213.1.2 plugin version (Settings-Plugins-Installed) Also check please in Help-Register that your Cmake Plus license is correctly recognized and not expire.

j-silver commented 2 years ago

Hi, yes, it's the latest version and the license is valid until the 20th of February 2022.

ArtsiomCh commented 2 years ago

Do you see balloon notification with message CMake Plus plugin License not found. Plugin functionality will be disabled. when Clion starts? PS also try to uninstall, restart Clion and then install again both Cmake simple highlighter and Cmake plus plugins.

ArtsiomCh commented 2 years ago

Also all docs are stored locally, so no internet connection is needed for that functionality.

ArtsiomCh commented 2 years ago

Could you see docs for any other items, not Cmake one but for C++/C code for example? It looks like receiving docs for element mechanism inside your Clion is broken for some reason, so I'm curious if any other docs are displayed in your case...

j-silver commented 2 years ago

I've uninstalled both plugins, restarted CLion, re-installed and restarted again. But no luck.

The C++ documentation for the code is displayed as usual.

ArtsiomCh commented 2 years ago

Found some changes made by Jetbrains in license check process if licensed via ticket obtained from JetBrains Floating License Server. Please let me know if that's your case? Also try please 213.1.3 with fix for such cases by manually installing it from the disk: image

j-silver commented 2 years ago

It still doesn't work.

Does the plugin use the documentation from the cmake bundled with CLion? Because I also have cmake installed from my distribution, Fedora (although it has never been a problem)

ArtsiomCh commented 2 years ago

@j-silver And you still see balloon notification with message CMake Plus plugin License not found. Plugin functionality will be disabled. when Clion starts even with 213.1.3?

j-silver commented 2 years ago

@ArtsiomCh I haven't seen any balloon notification at startup, not before, not now. The plugin is shown as enabled and the license recognised as still valid.

ArtsiomCh commented 2 years ago

@j-silver good to know, then I've been soling wrong problem :) Unfortunately, I can't preproduce the problem anyhow, so I can only guessing... Ok, could you please try to install next version with excessive logging for doc fetching process for cmake commands: 213.1.3-docs-log1

j-silver commented 2 years ago

Done. I think that the plugin CMake Docs is causing the issue. So I've uninstalled it and then reinstalled the current version of CMake Plus (213.1.2). Now the documentation is working properly.

ArtsiomCh commented 2 years ago

Yep, you're totally right. CMake Docs plugin is using the same mechanism to provide docs. And as far as it's unmaintained anymore - it's fail to obtain docs and broke the whole queue of all other docProviders. So mine was not even called out... Would try to contact the author to ask him to update the plugin or remove it from marketplace.