asciidoctor / asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)
https://intellij-asciidoc-plugin.ahus1.de/
Apache License 2.0
355 stars 145 forks source link

Adding a block ID to section seems to not insert anything #1681

Open mlindenmann opened 2 months ago

mlindenmann commented 2 months ago

When trying to add a block ID to a section title, the menu is shown but nothing happens

Whenever I select a section title in an ASCIIDOC file, I can see the action "Add block ID to section" in the context menu.

I also can click this action, but nothing happens.

The editor with popup looks as follows:

image

Plugin version is 0.43.1

(Feature behaves the same also when usign a standard light theme and disabling / uninstalling other non-bundled themes)

System Information

=== About === Build version: WebStorm 2024.2.0.1 Build: #WS-242.20224.426 August 21, 2024 Theme: Material Darker JRE: 21.0.3+13-b509.4, JetBrains s.r.o. JVM: 21.0.3+13-b509.4, OpenJDK 64-Bit Server VM, JetBrains s.r.o. Operating System: Windows 11.0 (amd64) idea.config.path=C:\Users\markus.lindenmann.STOECKLIN\AppData\Roaming\JetBrains\WebStorm2024.2 idea.system.path=C:\Users\markus.lindenmann.STOECKLIN\AppData\Local\JetBrains\WebStorm2024.2 idea.plugins.path=C:\Users\markus.lindenmann.STOECKLIN\AppData\Roaming\JetBrains\WebStorm2024.2\plugins idea.log.path=C:\Users\markus.lindenmann.STOECKLIN\AppData\Local\JetBrains\WebStorm2024.2\log

=== System === Number of CPU: 16 Used memory: 2398Mb Free memory: 341Mb Total memory: 2740Mb Maximum available memory: 4096Mb

=== Displays === Display 0: 1920x1080; scale: 100%, bounds: 1920x1080 @ (-1920; 61), insets: (0; 0; 48; 0) Display 1: 1920x1080; scale: 100%, bounds: 1920x1080 @ (1920; -2), insets: (0; 0; 0; 0) Display 2: 1920x1080; scale: 100%, bounds: 1920x1080 @ (0; 0), insets: (0; 0; 48; 0)

=== Plugins === Custom plugins: [Ini (242.20224.428), Mermaid (0.0.22+IJ.232), Pastel-licious (1.1.0), shirotelin (1.9.1), Case Conversion (0.8.1), Batch Scripts Support (1.0.13), Diagrams.net Integration (0.2.6), Git Commit Template (Stoecklin) (1.1.0), Grazie Pro (0.3.326), AsciiDoc (0.43.1), Bitbucket Pull Requests (2024.2.4.242), Atom Material Icons (97.0.0), .ignore (4.5.3), Material Theme UI (9.4.1), Material Theme UI High Contrast (2024.1.1), GitToolBox (500.2.14+242), Glowing Darcula (1.1.7), Nx Console (1.29.0)]

Disabled plugins:[Remote Development Gateway (242.20224.426), Polymer & Web Components (242.20224.426), Dev Containers (242.20224.426), Subversion (242.20224.426), Vue.js (242.20224.426), Code With Me (242.20224.426), Blackboard Color Scheme (242.20224.426), Styled Components & Styled JSX (242.20224.426), Eclipse Keymap (242.20224.426), Rider UI Theme Pack (0.14.11), NetBeans Keymap (242.20224.426), Vagrant (242.20224.426), Docker (242.20224.426), SSH Remote Run (242.20224.426), Mercurial (242.20224.426), Node.js Remote Interpreter (242.20224.426), Railscasts Color Scheme (242.20224.426), GitLab (242.20224.426), All Hallow's Eve Color Scheme (242.20224.426), WarmNeon Color Scheme (242.20224.426), Gherkin (242.20224.426), Karma (242.20224.426), VibrantInk Color Scheme (242.20224.426), VSCode Keymap (242.20224.426), Cobalt Color Scheme (242.20224.426), Cyan Light Theme (1.3), OpenAPI Specifications (242.20224.426), Twilight Color Scheme (242.20224.426), Monokai Color Scheme (242.20224.426), Terminal for Gateway (242.20224.426), FTP/SFTP/WebDAV Connectivity (242.20224.426), Next.js (242.20224.426), Qodana (242.20224.426), Visual Studio Keymap (242.20224.426), Copyright (242.20224.426), Cucumber.js (242.20224.426), Vite (242.20224.426), Time Tracking (242.20224.426), GitHub Color Scheme (242.20224.426)]

ahus1 commented 1 week ago

Sorry for the late reply. I tried to reproduce it, and it seems works for me. See below for a recording showing how it is supposed to work.

Can you please share a snippet of text where you tried it / some example AsciiDoc content? How do you activate those hints? I press Alt-Enter, and I didn't see so many hints presented to me.

add-id

mlindenmann commented 1 week ago

Many thanks for the answer. The animated GIF shows what I expected it should behave.

As for the various context menu items, they seem to come with the ASCIDOC plugin. They may be activated when clicking on the intention bulb or with Alt-Enter; the items shown are also dependent on the position of the cursor.

For testing I used this text:

= Dummy page

== Dummy Paragraph

some dummy text

I also disabled all plugins and themes from WebStorm except the ASCIIDOC plugin, and then could execute the action "Add block ID to section". But the then adds the block id only to the top-most title (= Dummy page), no other paragraph title may be annotated. The cursor selection is somewhere around the dummy text at the bottom. When clicking between the two titles, the context menu sdoesn't show the the action "Add block ID to section".

This step may be repeated by deleting the added block ID and re-executing the action from the context menu.

(Same behavior also in Intellj and WriterSide)

A day later (and upgrading to plugin version 0.43.2) I experienced a somewhat different behavior: