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

Moving files from pages to partials doesn't update include paths #1765

Open
Nadreck opened this issue Jan 7, 2025 · 0 comments
Open

Moving files from pages to partials doesn't update include paths #1765

Nadreck opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@Nadreck
Copy link

Nadreck commented Jan 7, 2025

Observed vs. expected behavior

We're using Antora, and have some orphan pages that really should have been partials (they're not linked to, just included in other pages). Using Refactor -> Move File..., moving a page to a pages folder in another module or component works and will update any include:: macros appropriately, but it doesn't update if the file is moved from pages to partials. We've double-checked that we have "Search for references" checked in the move dialog.

My expectation would be that the include coordinates would update to reflect the move. I feel like this was working before, but I may be misremembering, and after recently updating IntelliJ and the Asciidoc plugin, it's definitely not working now.

Scenarios I've tried:

  • Moving from <module-a>/pages/ to <module-b>/pages/
  • Moving from <module-b>/pages/ back to <module-a>/pages/
  • Moving from <module-a>/pages/ to <module-a>/partials/
  • Moving from <module-a>/partials/ to <module-b>/partials/

Steps to reproduce

  1. Using an Antora project, create an asciidoc file called move-me.adoc in modules/ROOT/pages/
  2. Using include::, add this file to another file (such as adding include::move-me.adoc[] to module/ROOT/pages/index.adoc
  3. Using IntelliJ, move move-me.adoc to modules/ROOT/partials/

Environment

Plugin Version: 0.43.6

IntelliJ Details: IntelliJ IDEA 2024.3.1.1 (Community Edition)
Build #IC-243.22562.218, built on December 18, 2024
Runtime version: 21.0.5+8-b631.28 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.2
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 10
Metal Rendering is ON
Registry:
ide.experimental.ui=true
i18n.locale=
llm.show.ai.promotion.window.on.start=false
Non-Bundled Plugins:
com.jetbrains.space (243.21565.122)
Docker (243.22562.236)
com.intellij.grazie.pro (0.3.354)
org.asciidoctor.intellij.asciidoc (0.43.6)
com.github.copilot (1.5.30-242)
com.dmarcotte.handlebars (243.21565.122)
Kotlin: 243.22562.218-IJ

@Nadreck Nadreck added the bug label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant