question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fallback versions not supported

See original GitHub issue

Observed vs. expected behavior

The plugin does not seem to support Fallback Versions (an antora 3.x feature, far as I can tell).

FWIW: The plugin documentation doesn’t indicate exclusive support of antora 2.x, so I’m creating this as a bug. Apologies if you consider it a feature request instead.

Steps to reproduce

Setup according to the docs (green builds on my end, too):

# antora.yml
name: my-module
# version: main # NB: Unversioned, cf. including playbook

title: My Module
start_page: ROOT:index.adoc
nav:
  - modules/ROOT/nav.adoc
# antora-playbook.yml
site:
  title: My Website
  start_page: my-module:ROOT:index.adoc
content:
  sources:
  - url: https://some.server/my-module.git
    branches: main
    version: ~  # aka unversioned
    start_path: docs

# /snip

Expected: Green files, syntax completion.

Actual:

  • content.sources[].version in antora-playbook.yml not supported:
    image
  • version in antora.yml required:
    image

FWIW, refname projection probably requires additional consideration.

Environment

Plugin Version: 0.37.43

PyCharm 2022.2.1 (Professional Edition) Build #PY-222.3739.56, built on August 16, 2022 Runtime version: 17.0.3+7-b469.37 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Linux 5.15.0-43-generic GC: G1 Young Generation, G1 Old Generation Memory: 2500M Cores: 8 Registry: debugger.click.disable.breakpoints=true

Non-Bundled Plugins: org.nik.presentation-assistant (1.0.10) org.jetbrains.plugins.go-template (222.3739.24) name.kropp.intellij.makefile (222.3739.24) com.intellij.plugins.macoskeymap (222.3739.24) com.intellij.ideolog (203.0.30.0) com.github.mikesafonov.jenkins-linter-idea-plugin (0.6.0) com.dmarcotte.handlebars (222.3739.24) Key Promoter X (2022.2) org.sonarlint.idea (7.0.0.52289) org.asciidoctor.intellij.asciidoc (0.37.43) ir.msdehghan.plugins.ansible (0.92) ru.meanmail.plugin.requirements (2022.3-222-EAP-SNAPSHOT) net.ashald.envfile (3.2.2) com.intellij.kubernetes (222.3739.24)

Current Desktop: i3

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
mojavelinuxcommented, Aug 23, 2022

Not sure if that is really useful. I’d argue that IDE support will be better if you set it to an actual version in the component descriptor (or ~ for versionless ones).

Trust me when I say it’s extremely useful. We wouldn’t have developed it otherwise. Every since the very first version of Antora, we have been asked to allow the version to be derived from the refname (either an exact match or extracted from it). This saves users from having to duplicate this information. It’s true that not everyone will take advantage of it. But for those who do, it’s probably the only thing they will use.

1reaction
ahus1commented, Aug 23, 2022

Thanks for creating this issue and the pull request. The plugin supports Antora 3.x,so this is a bug.

The current version of the plugin would support it by setting version: ~ in the component version descriptor. This would then make it clear for someone looking only at the component that it is versionless.

Expect a new pre-release that includes your PR later this week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I Obtain and Install my fallback perpetual license?
1. To check fallback which fallback version you currently have, log in to your JetBrains account. 2. You will see your Fallback license(s) ......
Read more >
Show fallback page if browser version is not supported #246
Show fallback page if browser version is not supported #246 ... We should display a fallback page with a helpful message in such...
Read more >
Language Fallback: 0 versions vs. fallback version
We are having the same problem at the moment, and while we haven't yet figured out why it is happening, we found a...
Read more >
Update enables SSL 3.0 fallback warnings in Internet Explorer ...
This update enables SSL 3.0 fallback warnings to be displayed when a connection in Internet Explorer insecurely falls back from TLS 1.0 or...
Read more >
Which releases are supported for coexistence, fallback ... - IBM
In some cases, more than three releases may be coexistence, fallback, and upgrade supported, at the sole discretion of IBM. Any z/OS release...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found