asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.91k stars 298 forks source link

Preview is empty when a file is open #414

Open adrianmocan opened 5 years ago

adrianmocan commented 5 years ago

in version 1.6.9, when a file is open, the editor opens the file in tab and also contains a "new" tab. Although the requested file is selected, the preview is shown for the "new" tab as the preview is empty. One has to select the "new" tab then select the tab for its file again in order to see the file preview. An other way to see the preview for the file is to simply kill the "new" tab and then the preview will be shown for the right file.

rahmanusta commented 5 years ago

Can you share the steps to reproduce please? Can you also share a screenshot?

adrianmocan commented 5 years ago

on Windows 10

  1. install asciidocfx from asciidocfx.com ( https://github.com/asciidocfx/AsciidocFX/releases/download/v1.6.6/AsciidocFX_Windows.zip ) 2 when prompted upgrade to asciidocfx 1.6.9
  2. choose an asciidoc file in windows explorer and double click on it

what I expected: to get the file open in asciidocfx and in the preview panel the file rendered.

what I actually get: the file is opened for edit on the left, but on the right the preview is empty.

[image: image.png]

from what I could see the empty preview is because it renders the "new" tab. Once I switch between my file and the "new" everything works (each file is rendered when is in focus).

Best regards, Adrian

On Wed, 27 Mar 2019 at 22:52, Rahman Usta notifications@github.com wrote:

Can you share the steps to reproduce please? Can you also share a screenshot?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/asciidocfx/AsciidocFX/issues/414#issuecomment-477342907, or mute the thread https://github.com/notifications/unsubscribe-auth/ADpU-bbOv0PZQGsWXkxBkMZ_Y209HuxGks5va9ocgaJpZM4cOsWl .

rahmanusta commented 5 years ago

Can you please try v1.7.0 https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.0 ?

maventis commented 5 years ago

I also experienced this issue with 1.7.1, you have to switch between the *new tab and your document - it then renders correctly.

rahmanusta commented 3 years ago

Hi, could you please reinstall https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.7.4 and check?