Alexander Schwartz ahus1 @msg-systems Frankfurt/Main (Germany) Web (for ages), Java (several years), Agile (my pleasure). Working for https://msg.group - but these are private projects only.

Examples for Behaviour Driven Development

Repository with examples how to apply ArchUnit to a Java project

Asciidoctor Deep Dive Example Repository

SSO support for Graylog through trusted HTTP headers set by load balancers or authentication proxies

Arquillian provides a component model for integration tests, which includes dependency injection and container life cycle management. Instead of managing a runtime in your test, Arquillian brings your test to the runtime.

:gem: A fast, open source text processor and publishing toolchain, written in Ruby, for converting AsciiDoc content to HTML5, DocBook 5 (or 4.5) and other formats.

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

Asciidoctor.js PDF: A PDF converter for AsciiDoc based on Asciidoctor.js. https://asciidoctor.org

a little asciidoctor example collection

issue commentasciidoctor/asciidoctor-intellij-plugin

Thanks for sharing this example. Would you mind adding this page to the repo you referenced? If you don't want to have it in the master, please consider a branch with these contents. This would make it a lot easier for me to test this.

Please note: version numbers in xref or include are currently not supported. There is already ticket #377 for this.

The examples without a version number should work. I tested with a small local example; I'm looking forward to your examples. Please point out what examples work for you, and what don't behave in the expected way.

Could you please elaborate on "but the plugin thinks include:2.0@:example$example5.txt[] is correct (it is invalid)."? I see that this is missing a colon; but it also has a version number that is not supported yet. What do you see that the plugin treats it as "correct"? Looking at you repo I found some xref macros inline style (one colon) and block style (two colons). The the two-colon style officially supported? On all of the Antora page I see only one colon. Lot's of questions, I hope you don't mind. Feel free to answer some of them first, and answer others later. djencks comment created time in 3 days issue commentasciidoctor/asciidoctor-intellij-plugin Pre-release 0.30.38 is available. Please give it a try and let me know if this works for you. The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository. danhaywood comment created time in 5 days issue commentasciidoctor/asciidoctor-intellij-plugin Pre-release 0.30.38 is available. Please give it a try and let me know if this works for you. The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository. danhaywood comment created time in 5 days issue commentasciidoctor/asciidoctor-intellij-plugin Pre-release 0.30.38 is available. Please give it a try and let me know if this works for you. The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository. slonopotamus comment created time in 5 days issue commentasciidoctor/asciidoctor-intellij-plugin @pepijnve - please state the version of the IDE and the AsciiDoc plugin you use, maybe this plays a role. You can copy-and-paste the version information of you idea using the following menu entry: go to Help -> About, click on 'Copy to Clipboard' (a small icon to click on appears once you hover the mouse over the logo) and paste the contents of your clipboard here. peterjaap comment created time in 5 days created tagasciidoctor/asciidoctor-intellij-plugin AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc) created time in 5 days released time in 5 days push eventasciidoctor/asciidoctor-intellij-plugin commit sha 2b2e96c38024b1fbd282d8a253248451b8242898 only handle images in file list when pasting (#402) commit sha a445a7f8a483439b3b4d17e0b29e0019b5ec0a72 some advertisement for the plugin's features Spring REST Docs and Antora commit sha e2a315e6744ae5bae864d8c103bd71621a2ba3c1 finalizing release notes push time in 5 days issue commentasciidoctor/asciidoctor-intellij-plugin @peterjaap - I'm trying to reproduce the indent getting lost. I copied some Java code or text file from another file and the indent was still there after I copied it to the AsciiDoc file. Something must be different in my setup compared to yours. What editor did you copy the contents from, from within the same JetBrains IDE instance? Did you use spaces or tabs? peterjaap comment created time in 5 days issue closedasciidoctor/asciidoctor-intellij-plugin //<editor-fold id="this is not collapsible"> only if there is something inside if this is empty then it is collapsible //</editor-fold>  AsciiDoc Plugin Version: 0.30.34 IDE Name and Version: IntelliJ IDEA 2019.3.3 (Community Edition) Build #IC-193.6494.35, built on February 11, 2020 Runtime version: 11.0.5+10-b520.38 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.3 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 8 Registry: debugger.watches.in.variables=false, actionSystem.force.alt.gr=true Non-Bundled Plugins: Batch Scripts Support, CMD Support, Docker, PythonCore, com.alayouni.ansiHighlight, com.andrewbrookins.wrap_to_column, com.intellij.ideolog, com.jetbrains.jbre.bintray.downloader, com.perl5, com.thoughtworks.gauge, org.asciidoctor.intellij.asciidoc, org.intellij.scala, org.toml.lang, org.rust.lang closed time in 6 days verhas issue commentasciidoctor/asciidoctor-intellij-plugin Thanks for letting me know. As the plugin adds some folding on its own (for example for sections and code block), there might be a situation where they interfere. As you suggested I'll close this ticket. Please comment here with an example when you see the symptoms again and I'll re-open the ticket. verhas comment created time in 6 days issue closedasciidoctor/asciidoctor-intellij-plugin For Chinese, generating html is normal, but generating pdf is garbled ---content----- = 标题 :lang: zh_CN :toc: :toclevels: 5 :sectnums: :sectnumlevels: 5 == github使用svn下载 /tree/master/ 换成 /trunk/ /tree/${branchname}/ /branches/{branchname}/ 也即将tree改成branches ---content----- AsciiDoc Plugin Version: 0.30.21 IDE Name and Version: WebStorm 2019.3.1 Build #WS-193.5662.54, built on December 18, 2019 closed time in 7 days xiejx618 issue commentasciidoctor/asciidoctor-intellij-plugin I'm closing this for now as I haven't received feedback within a month. If you have feedback on this issue, please feel free to comment, and I'll re-open the issue. xiejx618 comment created time in 7 days issue commentasciidoctor/asciidoctor-intellij-plugin I have to admit I didn't know about editor fold using comments before you posted this issue. Looking at your example, I try to find out what you observe vs. what you expect. A screenshot of the snippet above look can fold in my IDE. How does it look in your IDE? What should be different? IntelliJ IDEA 2019.3.1 (Community Edition) Build #IC-193.5662.53, built on December 18, 2019 Runtime version: 11.0.5+10-b520.17 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1024M Registry: java.completion.argument.hints.internal=false Non-Bundled Plugins: PlantUML integration, PsiViewer, tanvd.grazi, org.asciidoctor.intellij.asciidoc verhas comment created time in 7 days issue commentasciidoctor/asciidoctor-intellij-plugin @danhaywood - the key for auto-complete for anchors on windows would be Ctrl+Space. This is what I tested and what worked for me. danhaywood comment created time in 7 days issue closedasciidoctor/asciidoctor-intellij-plugin I use include::'s to break up a large page into smaller onces, and use leveloffset=+1 so that the H1 of the included pages becomes an H2 (with implicit anchor) in the parent page that includes them. so given: • parent.adoc • parent/child-1.adoc • parent/child-2.adoc in parent.adoc I have: include::parent/child-1.adoc[leveloffset=+1] include::parent/child-2.adoc[leveloffset=+1]  Where in child-1.adoc it is: = Child-1 yada yada  I'd like Intellisense to be able to find the implicit "child-1" anchor. In other words, when I type: xref:parent.adoc# and hit ctrl-enter, then I'd like "child-1", "child-2" to be offered as anchors. closed time in 7 days danhaywood issue commentasciidoctor/asciidoctor-intellij-plugin Thanks for suggesting this, this will be part of the next pre-release. When trying the Apache ISIS docs, I found some include missing a colon; see PR https://github.com/apache/isis/pull/174 for some fixes. I'll update this issue again once a pre-release is available. danhaywood comment created time in 7 days push eventasciidoctor/asciidoctor-intellij-plugin commit sha e7c009e8cf34da2459042ec52e9a2d83f0d28b1b allow pasting image from the clipboard with standard page shortcut (#402) commit sha 29d5fe0f05ebd3fd66037c9ac5faf1731c79a46d auto-suggest block and section IDs from included file when autocomleting anchors in links (#403) commit sha ea78f4c50749617c739115350903d9d233262921 fix NPE when pasting text for example into commit messages (#402) push time in 7 days PR opened apache/isis This fixes some issues related to documentation that I stumbled upon. I tried to make the commit messages descriptive. Please comment if you have questions. +53 -50 0 comment 8 changed files pr created time in 7 days create barnchahus1/isis created branch time in 7 days issue closedasciidoctor/asciidoctor-intellij-plugin If I have an image in my clipboard, then I'd love to be able to just "paste" this into the asciidoc editor and it automatically create the file and image: link for me. If in Antora mode (which is what I care about mostly), then the new file should be in the images/ folder (but I guess, in general, wherever {imagesdir} points to). closed time in 7 days danhaywood issue commentasciidoctor/asciidoctor-intellij-plugin I'll update this issue once the pre-release is available. danhaywood comment created time in 7 days issue commentasciidoctor/asciidoctor-intellij-plugin I've looked in the plugin you referenced and found the extension point I was missing to make the shortcut work. This will be part of the next pre-release. danhaywood comment created time in 7 days issue commentasciidoctor/asciidoctor-intellij-plugin Hello Dan, there is an action in the menu bar to past images from the clipboard (either images, or files that are images). It is also available in the context menu. You can add a custom shortcut to it (I didn't manage to bind it to the past shortcut yet). It already has Antora support. Please let me know if this is what you have been looking for. danhaywood comment created time in 8 days issue commentasciidoctor/asciidoctor-intellij-plugin Thanks for sharing your experiences. I read you use a lot of code snippets. I agree that "paste code" could be improved in the way you describe. On the other hand there is the include-with-tags syntax that allows to includes snippets from a file. That might reduce copy-and-paste of code. Advanced syntax allows you to include multiple snippets, everything expect the snippets, etc. I've used this syntax in several places when I wrote the documentation in the same repository as the code. It allowed me to test (even unit-test) the code inside a regular source file and use the snippets inside a document without duplicating it using copy-and-paste. For the included content I've adjusted the indent, see normalize block indent for details. Please let me know if this would work for you as well. peterjaap comment created time in 8 days issue closedasciidoctor/asciidoctor-intellij-plugin Given the following document: = Title ..gitattributes ---- * -text ----  Execute Code->Reformat Code IDE action (or just press CTRL+ALT+L). Expected: text stays as-is, because it is already well-formatted. Actual: empty is inserted between listing caption and listing block, so resulting document is this: = Title ..gitattributes ---- * -text ----  AsciiDoc Plugin Version: 0.30.34 IDE Name and Version: RubyMine 2019.3.1 Build #RM-193.5662.59, built on December 18, 2019 Runtime version: 11.0.5+10-b520.17 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 closed time in 8 days slonopotamus issue commentasciidoctor/asciidoctor-intellij-plugin I've pushed a change that now supports titles starting with a dot. An example similar to the one you provided is now part of the test suite. I therefore close this issue. I'll update this issue once a pre-release is available. slonopotamus comment created time in 8 days push eventasciidoctor/asciidoctor-intellij-plugin commit sha d67c35e9a26a3bf583176dd7aa823ae761a817fe title can now start with a dot; improved parsing of titles (#400) push time in 8 days issue commentasciidoctor/asciidoctor-intellij-plugin I assume I'll have a bug fix as a pre-release ready within a day or two. As a workaround you could write the following: .{sp}.gitattributes ---- * -text ----  slonopotamus comment created time in 9 days issue commentasciidoctor/asciidoctor-intellij-plugin No, there isn't; you're using the title correctly. It's a lexer problem: The lexer that is the base for highlighting and reformatting tries to mimic Asciidoctor's behavior in processing the content. As it is separate, and only mimics, it sometimes fails. And then it's time for a bug and some alignment of the lexer. slonopotamus comment created time in 9 days issue commentasciidoctor/asciidoctor-intellij-plugin Thanks for reporting this. Apparently a title starting with a dot isn't recognized as a title, therefore the reformatter problem. I'll need to fix the lexer for this. slonopotamus comment created time in 9 days issue closedasciidoctor/asciidoctor-intellij-plugin I'm running IntelliJ 2020.1 EAP on jdk-13.0.1+9 from AdoptOpenJDK, which doesn't hava JavaFX. The plugin works with the Swing preview, but this error keeps popping up: java.lang.NoClassDefFoundError: com/sun/javafx/application/PlatformImpl at org.asciidoc.intellij.editor.javafx.JavaFxHtmlPanelProvider.isJavaFxStuck(JavaFxHtmlPanelProvider.java:83) at org.asciidoc.intellij.editor.javafx.notification.ChangeJdkForJavaFXNotificationProvider.createNotificationPanel(ChangeJdkForJavaFXNotificationProvider.java:48) at org.asciidoc.intellij.editor.javafx.notification.ChangeJdkForJavaFXNotificationProvider.createNotificationPanel(ChangeJdkForJavaFXNotificationProvider.java:19) at com.intellij.ui.EditorNotificationsProvider.createNotificationPanel(EditorNotifications.java:38)
at com.intellij.ui.EditorNotificationsImpl.lambda$updateEditors$2(EditorNotificationsImpl.java:153)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.insideReadAction(NonBlockingReadActionImpl.java:473) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$attemptComputation$2(NonBlockingReadActionImpl.java:430)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:75)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$1(ProgressIndicatorUtils.java:129)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:162)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:600)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:546)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:149)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:118)
at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.attemptComputation(NonBlockingReadActionImpl.java:438) at com.intellij.openapi.application.impl.NonBlockingReadActionImpl$Submission.lambda$transferToBgThread$0(NonBlockingReadActionImpl.java:379)
at com.intellij.util.concurrency.BoundedTaskExecutor.access$200(BoundedTaskExecutor.java:32) at com.intellij.util.concurrency.BoundedTaskExecutor$1.execute(BoundedTaskExecutor.java:204)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:196) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)


closed time in 11 days

danberindei

issue commentasciidoctor/asciidoctor-intellij-plugin

A new preview release 0.30.37 is available that fixes this issue. Maybe after this change JavaFX is available for AdoptOpenJDK as well, please have a look at the settings.

I recommend the JavaFX preview as it provides several additional features that are not available in the Swing preview (like: moving temporary images created by PlantUML to a temporary folder).

Please consider using the JDK bundled with IntelliJ as this is well-tested also with JavaFX. I've seen that other JavaFX setup were unstable and crashed.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

danberindei

comment created time in 11 days

issue closedasciidoctor/asciidoctor-intellij-plugin

Following exceptions happened soon after this one, most probably they are induced.

2020-02-07T08:56:41.644
java.lang.NullPointerException
at org.asciidoc.intellij.psi.AsciiDocFileReference.resolve(AsciiDocFileReference.java:601)
at org.asciidoc.intellij.psi.AsciiDocFileReference.resolve(AsciiDocFileReference.java:259)
at org.asciidoc.intellij.psi.AsciiDocFileReference.multiResolve(AsciiDocFileReference.java:192)
at org.asciidoc.intellij.psi.AsciiDocFileReference.resolve(AsciiDocFileReference.java:297)
at org.asciidoc.intellij.quickfix.AsciiDocCreateMissingFile.isAvailable(AsciiDocCreateMissingFile.java:50)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.lambda$getAvailableFixes$0(ShowIntentionsPass.java:84)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getAvailableFixes(ShowIntentionsPass.java:84)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:296)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:226)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:55)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:429) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:997) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:422)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:421) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:397)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:395) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)


<!-- go to File -> Settings -> Plugins -> AsciiDoc and type in the version number you see --> AsciiDoc Plugin Version: 0.30.31

<!-- go to Help -> About, click on 'Copy to Clipboard' and paste the contents of your clipboard here --> IDE Name and Version:

IntelliJ IDEA 2019.3.2 (Ultimate Edition) Build #IU-193.6015.39, built on January 20, 2020 Runtime version: 11.0.5+10-b520.30 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.6 GC: ParNew, ConcurrentMarkSweep Memory: 8012M Cores: 12 Registry: ide.editor.tabs.open.at.the.end=true, ide.tooltip.initialDelay=992 Non-Bundled Plugins: BashSupport, Lombook Plugin, Mongo Plugin, Pythonid, claims.bold.intellij.avro, com.blackbuild.intellij.maven-wrapper-support, com.dmarcotte.handlebars, com.planetexpress.go_struct_tag_generator, com.potterhsu.jsonviewer, com.wakatime.intellij.plugin, io.github.qeesung.component.HighlightBracketPair, io.protostuff.protostuff-jetbrains-plugin, mobi.hsz.idea.gitignore, org.asciidoctor.intellij.asciidoc, org.jetbrains.plugins.go-template, org.jetbrains.plugins.go

closed time in 11 days

ctoestreich

issue commentasciidoctor/asciidoctor-intellij-plugin

A new pre-release 0.30.37 is available that includes the fix. Please give it a try. As this is a pre-release this contains also some new features, please have a look at the CHANGELOG.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

ctoestreich

comment created time in 11 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 11 days

released time in 11 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha e7637d1fcfac5ed30174a7c6e59dfb4b9cc48f3a

finalizing release

push time in 11 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha 081766ca604af38f23fa710392186f60b3ee0541

tuning highlighting of references to Java classes and packages

avoid NPE when resolving file references (#397)

commit sha f1e337b7547f429f88948e0921e3516002dbcb73

commit sha 62c102704a91592fdfbfebb89234192d03f94999

handling exception for missing class PlatformImpl when detecting JavaFX (#399)

push time in 11 days

issue commentasciidoctor/asciidoctor-intellij-plugin

Thanks for reporting this. See the code location where produces the exception but I wonder how to reproduce it locally.

Can you provide a snippet? Did you maybe use language injection?

Thanks!

ctoestreich

comment created time in 12 days

issue openedasciidoctor/asciidoctor-intellij-plugin

The following is recognized by Asciidoctor as a valid attribute definition. They are also case insensitive.

The following will output "xx" in the preview

:im ag es dir   : xx
{IMAGESDIR}


Things to implement (gap to current implementation):

• syntax highlighting should support blanks in the various places
• parsing should support blanks
• PSI operations like lookup and navigation should treat attribute names case insensitive

created time in 12 days

issue commentasciidoctor/asciidoctor-intellij-plugin

You did everything right: at the time you wrote the ticket version 0.30.31 was the latest publicly released version.

Thanks for raising this issue; this triggered me to promote version 0.30.34 to be the latest publicly released version.

goerge

comment created time in 12 days

issue closedasciidoctor/asciidoctor-intellij-plugin

Following fatal error found in Intellij EAP log:

java.lang.NoSuchMethodError: 'void com.intellij.util.FileContentUtil.reparseFiles(com.intellij.openapi.vfs.VirtualFile[])'
at org.asciidoc.intellij.editor.AsciiDocPreviewEditor$MyUpdatePanelOnSettingsChangedListener.onSettingsChange(AsciiDocPreviewEditor.java:467) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:549) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:143) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:472) at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:432) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:420) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:404) at com.intellij.util.messages.impl.MessageBusImpl.lambda$createTopicHandler$3(MessageBusImpl.java:243) at com.sun.proxy.$Proxy333.onSettingsChange(Unknown Source)
at org.asciidoc.intellij.settings.AsciiDocApplicationSettings.setAsciiDocPreviewSettings(AsciiDocApplicationSettings.java:54)
at org.asciidoc.intellij.settings.AsciiDocPreviewConfigurable.apply(AsciiDocPreviewConfigurable.java:59)
at com.intellij.openapi.options.ex.ConfigurableWrapper.apply(ConfigurableWrapper.java:174)
at com.intellij.openapi.options.newEditor.ConfigurableEditor.apply(ConfigurableEditor.java:324)
at com.intellij.openapi.options.newEditor.SettingsEditor$5.apply(SettingsEditor.java:172) at com.intellij.openapi.options.newEditor.SettingsEditor.apply(SettingsEditor.java:356) at com.intellij.openapi.options.newEditor.SettingsDialog.applyAndClose(SettingsDialog.java:190) at com.intellij.openapi.options.newEditor.SettingsDialog.doOKAction(SettingsDialog.java:186) at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction(DialogWrapper.java:1888)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed(DialogWrapper.java:1841) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:270)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6651)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6416)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5026)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4858)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:778)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:933) at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.java:871) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:803) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:433) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:702) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:432) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117) at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.desktop/java.awt.Dialog.show(Dialog.java:1063)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:708) at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:437) at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1705) at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1664) at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:80) at com.intellij.ide.actions.ShowSettingsAction.perform(ShowSettingsAction.java:54) at com.intellij.ui.mac.MacOSApplicationProvider$Worker.lambda$null$1(MacOSApplicationProvider.java:75)
at com.intellij.ui.mac.MacOSApplicationProvider$Worker.lambda$submit$7(MacOSApplicationProvider.java:172) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:192)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:467) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:443)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:420) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:933)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:806)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:433)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:713)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:432)


No misbehaviour detected though.

AsciiDoc Plugin Version: 0.30.31

IntelliJ IDEA 2020.1 EAP (Ultimate Edition) Build #IU-201.4865.12, built on February 5, 2020 IntelliJ IDEA EAP User Expiration date: March 6, 2020 Runtime version: 11.0.6+8-b702.1 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.3 GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 16 Registry: ide.editor.tabs.open.at.the.end=true, terminal.buffer.max.lines.count=10000, documentation.show.toolbar=true, analyze.exceptions.on.the.fly=true Non-Bundled Plugins: Key Promoter X, LimitedWIP, String Manipulation, Lombook Plugin, com.dubreuia, org.jetbrains.plugins.hocon, org.sonarlint.idea, com.atlassian.bitbucket.references, io.protostuff.protostuff-jetbrains-plugin, net.seesharpsoft.intellij.plugins.csv, org.asciidoctor.intellij.asciidoc, org.intellij.scala, Karma, izhangzhihao.rainbow.brackets

closed time in 13 days

goerge

issue commentasciidoctor/asciidoctor-intellij-plugin

Thanks for reporting this. To use the plugin with the EAP version, please upgrade to version 0.30.33 or later that is available as a pre-release.

The pre-releases of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

goerge

comment created time in 13 days

issue commentasciidoctor/asciidoctor-intellij-plugin

• only add "leveloffset" if the included document is an AsciiDoc document AND starts with a heading
• adjust the "+x" that the effective level of the heading at the start of the included document matches the of the current paragraph's level +1
danhaywood

comment created time in 13 days

issue commentasciidoctor/asciidoctor-intellij-plugin

A new pre-release 0.30.36 of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

slonopotamus

comment created time in 13 days

issue commentasciidoctor/asciidoctor-intellij-plugin

A new pre-release 0.30.36 of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

luvarqpp

comment created time in 13 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 13 days

released time in 13 days

delete tag asciidoctor/asciidoctor-intellij-plugin

delete tag : 0.30.36

delete time in 13 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha 62d390cef7fa5be87bb163b6987c41c6f327330d

finalizing

push time in 13 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 13 days

released time in 13 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha bf44435a8b7f5ac7d7b991541c01b1fdbcb10d7a

italic and monospaced inline text references Java classes and packages

push time in 13 days

issue closedasciidoctor/asciidoctor-intellij-plugin

Implement "go to declaration" for tags in include macro. I would like to use "ctrl+click" on given tag (showcaseMethod) in include line (at the end). For example, see this document part:

Sample code showing how to get all TestCages-s (sorted and paginated).
[source,java]
.Java code from tests to show how to get all TestCages
----
include::{testsourcedir}/sk/qpp/TestCageHttpTest.java[tags=showcaseMethod]
----


In included file (TestCageHttpTest.java), there is tagged some part of code like this:

public void method1() {
}
// tag::showcaseMethod[]
public void sampleMethod() {
doNothingAndShowItToTheWorld();
}
// end::showcaseMethod[]


Similar things had happened in #320 issue (with draft proposal also for this request).

closed time in 14 days

luvarqpp

issue commentasciidoctor/asciidoctor-intellij-plugin

I've reworked the discovery of tag/end so that it works in plain-text files as well. I'll update this ticket once the pre-release is available.

luvarqpp

comment created time in 14 days

push eventasciidoctor/asciidoctor-intellij-plugin

rework tags for include to make them work in any file, even plain text (#322)

push time in 14 days

issue closedasciidoctor/asciidoctor-intellij-plugin

Happy to open a new issue about this but I get 100% CPU all the time when I use the Asciidoctor Plugin (version 0.30.31).

I have the preview window disabled and even just typing in a regular mid-size Asciidoc takes up 100% CPU, it seems as if the syntax checks or something take up lots of CPU. It is so bad that typing actually lags.

I'm happy to provide any logs you might need but I'm not sure what'd help here.

The asciidocs are plain and simple asciidoc files with no images or anything in them.

Originally posted by @lfrancke in https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues/339#issuecomment-577583282

closed time in 18 days

ahus1

issue commentasciidoctor/asciidoctor-intellij-plugin

Alright, let's close it for now. Feel free to comment if you run into troubles again and I'll reopen it.

ahus1

comment created time in 18 days

delete branch ahus1/pretix

delete branch : case_intensitive_file_comparison

delete time in 18 days

issue commentasciidoctor/asciidoctor-intellij-plugin

The next preview-release will recognize the tags in comments and provides find-references, Ctrl+B/Ctrl-click and rename.

Limitation: the line with the tag needs to be a a comment recognized by IntelliJ. I've tested it successfully with Java, XML and AsciiDoc comments in the respective files.

Doesn't work (yet) with plain-text files as plain-text files don't have comments.

luvarqpp

comment created time in 19 days

push eventasciidoctor/asciidoctor-intellij-plugin

support tags for include for rename and go-to-declaration (#322)

push time in 19 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha 87961965c97bcfb73cfb2b045da9068bdd756f57

Revert "show editor notification to user to enable soft wrap in IDE settings when toggling soft wrap in the editor toolbar multiple times (#395)" This reverts commit ed7a120e

commit sha fd0357c593bac508e01454e0b2d5419b2f36fb1b

show editor notification to user to enable soft wrap in IDE settings when toggling soft wrap in the editor toolbar multiple times (#316)

push time in 20 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha ed7a120eced0328447f836e4dd294e26daf08c04

show editor notification to user to enable soft wrap in IDE settings when toggling soft wrap in the editor toolbar multiple times (#395)

push time in 20 days

issue closedasciidoctor/asciidoctor-intellij-plugin

# Situation

A user performs the "activate word wrap" in the tool bar several times. She/he might not know that IntelliJ has a setting to make this permanent.

# Options

1. when the user toggles this multiple times, show a EditorNotification similar to "JavaFX could be enabled" (JavaFxCouldBeEnabledNotificationProvider) or "Preview might be blurry" (JavaFxMightBeBlurredNotificationProvider). The user could directly trigger "activate word wrap". In newer versions of IntelliJ the word wrap can be restricted to specific asciidoc extensions. By default this already contains "adoc", but the action should make sure that "adoc" (and all other AsciiDoc filename suffixes and/or the suffix of the current file) are included

2. make the "word wrap" permanent within AsciiDoc (?) this would actually provide to places to do the same, this should be avoided AFAIK.

3. The state could be persisted on a per-file base; to me it is unclear how this would behave if the global setting changes; would that clear all file-specific settings? If we would implement this, we could put it into MyFileEditorState that already preserves some of the state.

# Suggestion

Implement Option 1 (please discuss if you think differently)

(this has been created after a user shared his experience in #314)

closed time in 20 days

ahus1

issue commentasciidoctor/asciidoctor-intellij-plugin

Will be part of next release.

ahus1

comment created time in 20 days

issue closedasciidoctor/asciidoctor-intellij-plugin

Given the following diagram.adoc file:

= Diagrams
:imagesdir: a

[ditaa, "a"]
....
+--+
|A |
+--+
....

:imagesdir: b

[ditaa, "b"]
....
+--+
|B |
+--+
....

:imagesdir: c

[ditaa, "c"]
....
+--+
|C |
+--+
....

:imagesdir: d


I expect all three images to be shown in preview.

In fact, only the last image is shown, first two are empty:

asciidoctor -D output/ -r asciidoctor-diagram diagram.adoc properly handles this file, so this is asciidoctor-intellij-plugin specific problem:

<!-- go to File -> Settings -> Plugins -> AsciiDoc and type in the version number you see --> AsciiDoc Plugin Version: 0.30.31

<!-- go to Help -> About, click on 'Copy to Clipboard' and paste the contents of your clipboard here --> IDE Name and Version: IntelliJ IDEA 2019.3.1 (Ultimate Edition) Build #IU-193.5662.53, built on December 18, 2019

closed time in 20 days

slonopotamus

issue commentasciidoctor/asciidoctor-intellij-plugin

Thank you for providing a minimal example to reproduce it.

TL;DR: The pre-release 0.30.35 supports this example as long as your diagram names are distinct.

As an alternative to multiple imagesdir definitions I'd recommend to add the path to the filename of the diagram like [ditaa, "a/a"]

Some background and history: I've changed the behavior how to display preview images as part of #345 to improve support of imagesdir containing ".." that was traversing outside of the temporary preview image folder.

I've defined imagesoutdir with the temporary image folder. This lead to a solution where only one definition of imagesdir per document was supported in the preview, and duplicate diagram names would overwrite each other. This was first released as part of 0.30.31 (first pre-release was 0.30.25).

In this ticket I'm changing it again to support the case you describe with multiple definitions of imagesdir inside the same document. You'll still run into problems when two diagrams have the same name as the preview will create all diagrams in the same folder as the plugin specifies imagesoutdir to direct the output of the images to a separate temporary folder.

A new pre-release 0.30.35 of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

slonopotamus

comment created time in 20 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 20 days

released time in 20 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha aee139198439bb068a85c6a5a387027b1cc3df5f

support multiple definitions of imagesdir in document for the preview (#395)

push time in 20 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha 9a99a1e80198e457750eeb43e8b91151620ca2bd

exclude generated files from MathJax

push time in 20 days

issue closedahus1/keycloak-dropwizard-integration

I have a desire to override the createRequestAuthenticator method in the KeycloakAuthFilter class, so that I can provide a slightly modified version of the JettyRequestAuthenticator, however the way that the class is written makes this very hard to do (private constructor, private builder). I still haven't found a way to do this, do you have a recommended course of action?

closed time in 21 days

steve-thousand

issue commentahus1/keycloak-dropwizard-integration

If I recall it correctly the two classes were necessary to handle different situation with authenticated/un-authenticated requests.

steve-thousand

comment created time in 21 days

Small change to the JaxrsHttpFacade to read the host information from the incoming request, instead of trying to look it up via dns hostname. The old way caused issues if the developer's own hostname was not defined in the /etc/hosts file.

+4 -5

1 changed file

dieterrosch

pr closed time in 21 days

pull request commentahus1/keycloak-dropwizard-integration

I was hesitant back when you opened the PR, sorry to leave it open for so long.

This plugin uses the same code like its ancestor JaxrsHttpFacade. Using the host name given in the request could case a security problem IMHO. Therefore I will not merge this PR.

dieterrosch

comment created time in 21 days

push eventasciidoctor/asciidoctor-intellij-plugin

close streams thing might otherwise stay open

commit sha 2e9cfdba4fe28061459b8c88e89c658fe0e8571e

exclude generated files from MathJax

push time in 21 days

push eventahus1/keycloak-dropwizard-integration

commit sha a981918b71be0414156aa64dae518fb6ca0a9658

tune travis

push time in 21 days

issue openedSemmle/ql

Description of the false positive

Using next() and myBuilder.eof() will advance the cursor, and will trigger the callback setWhitespaceSkippedCallback, that will increment newLines, therefore this is a false positive.

https://lgtm.com/projects/g/asciidoctor/asciidoctor-intellij-plugin/snapshot/4f6083a0115577e6f8b12b0fbc95fe67e2263673/files/src/main/java/org/asciidoc/intellij/parser/AsciiDocParserImpl.java?sort=name&dir=ASC&mode=heatmap#xa2e95b28c87f047c:1

created time in 21 days

push eventahus1/keycloak-dropwizard-integration

commit sha 01b83d7502cfea8397809a7c435a107a0139dd54

commit sha 1a22fc50fd785af059acb6b711e57ab8bae74281

cleanup documentation and typos

commit sha 87853c7689f51be62c217a7e21140716409e3604

push time in 21 days

issue commentasciidoctor/asciidoctor-intellij-plugin

Raised issue with IntelliJ to support language injection for JavaDoc-comments. AFAIK this is a pre-requisite to implement this.

pniederw

comment created time in 22 days

issue closedasciidoctor/asciidoctor-intellij-plugin

I want to set soft-wrap for all projects and all AsciiDoc files. But I can not find the setting options. How to do it?

closed time in 22 days

diguage

issue commentasciidoctor/asciidoctor-intellij-plugin

Happy to hear this worked for you. I'll close this issue and see after issue #316 to be implemented.

diguage

comment created time in 22 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha e49a373fe6292a8a0369f50d7c50815da6c93cbe

instrument parser for debug and trace logging (#394)

commit sha d644b1d553fcc19f16241b9f8b4c4e8d8b68063c

finalize preview release

commit sha e17c7a3a1c4889008fb848a2c4c7ceae7b57118a

fix typo

commit sha cd89b28867ee83101aa3d30a609b983ae21124e3

document debugging and logging

commit sha d87f64bbdfe99d36d1d2834a9b94d074c1931624

preventing unbalanced tree error when parsing a block without a delimiter by allowing for example the parsing an URL to complete its block before closing the undelimited block (#394)

commit sha 1a15e7b2dde9001e965f53981d4fd3363743d109

[WIP] working towards a dynamic plugin

push time in 23 days

issue closedasciidoctor/asciidoctor-intellij-plugin

I do get the following exception since my upgrade to 0.30.32 (probably a re-incarnation of #119):

Following exceptions happened soon after this one, most probably they are induced.

2020-01-27T11:54:44.539
java.lang.Throwable: Unbalanced tree. Most probably caused by unbalanced markers. Try calling setDebugMode(true) against PsiBuilder passed to identify exact location of the problem
language: Language: AsciiDoc,
context: '<none>'
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.lang.impl.PsiBuilderImpl.reportUnbalancedMarkers(PsiBuilderImpl.java:1112)
at com.intellij.lang.impl.PsiBuilderImpl.assertMarkersBalanced(PsiBuilderImpl.java:1104)
at com.intellij.lang.impl.PsiBuilderImpl.prepareLightTree(PsiBuilderImpl.java:1073)
at com.intellij.lang.impl.PsiBuilderImpl.buildTree(PsiBuilderImpl.java:929)
at com.intellij.lang.impl.PsiBuilderImpl.getTreeBuilt(PsiBuilderImpl.java:924)
at org.asciidoc.intellij.parser.AsciiDocParser.parse(AsciiDocParser.java:23)
at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.java:75)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:53)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:198)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:564)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:197)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:246)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:40)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:190)
at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:733)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40)
at com.intellij.psi.util.PsiFilter$Visitor.visitElement(PsiFilter.java:69) at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:34) at com.intellij.psi.PsiRecursiveElementVisitor.visitFile(PsiRecursiveElementVisitor.java:59) at org.asciidoc.intellij.psi.AsciiDocFileUtil.findSections(AsciiDocFileUtil.java:50) at org.asciidoc.intellij.psi.AsciiDocChooseByNameContributor.getNames(AsciiDocChooseByNameContributor.java:15) at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel.processContributorNames(ContributorsBasedGotoByModel.java:127) at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:86)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:80) at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:28) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57) at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:28) at com.intellij.concurrency.JobLauncherImpl.lambda$null$0(JobLauncherImpl.java:46) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704) at com.intellij.concurrency.JobLauncherImpl.lambda$invokeConcurrentlyUnderProgress$1(JobLauncherImpl.java:46) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116) at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:99) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)

2020-01-27T11:54:45.488
java.lang.Throwable: Unbalanced tree. Most probably caused by unbalanced markers. Try calling setDebugMode(true) against PsiBuilder passed to identify exact location of the problem
language: Language: AsciiDoc,
context: '<none>'
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.lang.impl.PsiBuilderImpl.reportUnbalancedMarkers(PsiBuilderImpl.java:1112)
at com.intellij.lang.impl.PsiBuilderImpl.assertMarkersBalanced(PsiBuilderImpl.java:1104)
at com.intellij.lang.impl.PsiBuilderImpl.prepareLightTree(PsiBuilderImpl.java:1073)
at com.intellij.lang.impl.PsiBuilderImpl.buildTree(PsiBuilderImpl.java:929)
at com.intellij.lang.impl.PsiBuilderImpl.getTreeBuilt(PsiBuilderImpl.java:924)
at org.asciidoc.intellij.parser.AsciiDocParser.parse(AsciiDocParser.java:23)
at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.java:75)
at com.intellij.psi.tree.IFileElementType.parseContents(IFileElementType.java:53)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:198)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:564)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:197)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:246)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:40)
at com.intellij.psi.impl.source.tree.SharedImplUtil.acceptChildren(SharedImplUtil.java:190)
at com.intellij.psi.impl.source.PsiFileImpl.acceptChildren(PsiFileImpl.java:733)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:40)
at com.intellij.psi.util.PsiFilter$Visitor.visitElement(PsiFilter.java:69) at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:34) at com.intellij.psi.PsiRecursiveElementVisitor.visitFile(PsiRecursiveElementVisitor.java:59) at org.asciidoc.intellij.psi.AsciiDocFileUtil.findSections(AsciiDocFileUtil.java:50) at org.asciidoc.intellij.psi.AsciiDocChooseByNameContributor.getNames(AsciiDocChooseByNameContributor.java:15) at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel.processContributorNames(ContributorsBasedGotoByModel.java:127) at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:86)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:80) at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:28) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:932) at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57) at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:28) at com.intellij.concurrency.JobLauncherImpl.lambda$null$0(JobLauncherImpl.java:46) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:704) at com.intellij.concurrency.JobLauncherImpl.lambda$invokeConcurrentlyUnderProgress$1(JobLauncherImpl.java:46) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59) at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116) at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:99) at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)

Please provide a minimal Asciidoctor example.
Sorry, no idea where this happens and how to reproduce it on a minimal example.
But willing to install custom builds and perform regressions ;-)


Thanks! -->

<!-- go to File -> Settings -> Plugins -> AsciiDoc and type in the version number you see --> AsciiDoc Plugin Version: 0.30.32

<!-- go to Help -> About, click on 'Copy to Clipboard' and paste the contents of your clipboard here --> IDE Name and Version: IntelliJ 2019.2.3 (Ultimate Edition)

closed time in 24 days

ascheman

issue commentasciidoctor/asciidoctor-intellij-plugin

@ascheman provided a stack trace that lead to solving this case:

2020-01-28 15:24:01,856 [24640980]  ERROR - lij.lang.impl.MarkerProduction - Another not done marker added after this one. Must be done before this.
java.lang.Throwable: Another not done marker added after this one. Must be done before this.
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
at com.intellij.lang.impl.MarkerProduction.doHeavyChecksOnMarkerDone(MarkerProduction.java:174)
at com.intellij.lang.impl.PsiBuilderImpl.doValidityChecks(PsiBuilderImpl.java:905)
at com.intellij.lang.impl.PsiBuilderImpl.processDone(PsiBuilderImpl.java:877)
at com.intellij.lang.impl.PsiBuilderImpl.access$1100(PsiBuilderImpl.java:50) at com.intellij.lang.impl.PsiBuilderImpl$StartMarker.done(PsiBuilderImpl.java:393)
at org.asciidoc.intellij.parser.AsciiDocParserImpl.endBlockNoDelimiter(AsciiDocParserImpl.java:514)
at org.asciidoc.intellij.parser.AsciiDocParserImpl.lambda$parse$0(AsciiDocParserImpl.java:128)
at com.intellij.lang.impl.PsiBuilderImpl.onSkip(PsiBuilderImpl.java:802)
at com.intellij.lang.impl.PsiBuilderImpl.skipWhitespace(PsiBuilderImpl.java:794)
at com.intellij.lang.impl.PsiBuilderImpl.eof(PsiBuilderImpl.java:853)
at com.intellij.lang.impl.PsiBuilderImpl.calcTokenType(PsiBuilderImpl.java:711)
at com.intellij.lang.impl.PsiBuilderImpl.getTokenType(PsiBuilderImpl.java:692)
at org.asciidoc.intellij.parser.AsciiDocParserImpl.at(AsciiDocParserImpl.java:624)
at org.asciidoc.intellij.parser.AsciiDocParserImpl.parseUrl(AsciiDocParserImpl.java:435)
at org.asciidoc.intellij.parser.AsciiDocParserImpl.parse(AsciiDocParserImpl.java:234)
at org.asciidoc.intellij.parser.AsciiDocParser.parse(AsciiDocParser.java:20)
at com.intellij.psi.tree.ILazyParseableElementType.doParseContents(ILazyParseableElementType.


I was able to synthesize a test case and fix the bug. This is part of the 0.30.34 pre-release.

Again thank you very much for running the EAP pre-releases regularly. 👏👏 This help to spot these kind of bugs before we publish releases to the regular repo.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

ascheman

comment created time in 24 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 24 days

released time in 24 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha cd89b28867ee83101aa3d30a609b983ae21124e3

document debugging and logging

commit sha d87f64bbdfe99d36d1d2834a9b94d074c1931624

preventing unbalanced tree error when parsing a block without a delimiter by allowing for example the parsing an URL to complete its block before closing the undelimited block (#394)

push time in 24 days

issue commentasciidoctor/asciidoctor-intellij-plugin

I've looked at the AsciiDoc lexer and did some small optimizations for the pre-release 0.30.33. It's strange to me that high CPU load happens even with empty files.

Via the menu item "Help | Activity Monitor..." you can open an activity monitor. It updates every second. For bigger documents the lexer will trigger a high CPU load, but for smaller files it shouldn't. Please let me know what you see. I hope it shows some clues; AFAIK this option doesn't write information to disk.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

ahus1

comment created time in 25 days

issue commentasciidoctor/asciidoctor-intellij-plugin

I've looked at the code changes and didn't find a code example to reproduce it. I'd be happy if you could upgrade to the next pre-release 0.30.33 that allows extended debug and trace options:

After you installed the release, go to "Help | Debug Log Settings..." and enter (including the hash at the beginning):

#org.asciidoc.intellij.parser.AsciiDocParserImpl


This will log additional information once an unbalanced tree is been created. It will slow down the parser a bit, but will only log information when there is a problem.

To trace also the contents, change it to the following setting. This will log the contents on each parsing attempt. Beware: this will create a lot of logs!

#org.asciidoc.intellij.parser.AsciiDocParserImpl:trace


The logging settings can be changed at run time, no restart of the IDE is required.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

ascheman

comment created time in 25 days

created tagasciidoctor/asciidoctor-intellij-plugin

AsciiDoc plugin for products on the IntelliJ platform (IDEA, RubyMine, etc)

created time in 25 days

released time in 25 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha e17c7a3a1c4889008fb848a2c4c7ceae7b57118a

fix typo

push time in 25 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha d644b1d553fcc19f16241b9f8b4c4e8d8b68063c

finalize preview release

push time in 25 days

push eventasciidoctor/asciidoctor-intellij-plugin

commit sha e49a373fe6292a8a0369f50d7c50815da6c93cbe

instrument parser for debug and trace logging (#394)

push time in 25 days

issue commentasciidoctor/asciidoctor-intellij-plugin

Sorry that you experience this problem. Did you recently upgrade from a previous release? This would allow me to review the changes between the previous release and the current release you use. Thanks!

ascheman

comment created time in a month

issue commentasciidoctor/asciidoctor-intellij-plugin

There is a functionality in the general settings of IntelliJ. Please go to Editor -> General. You have to scroll down quite a bit to find this setting:

Please let me know if this solves your issue. Can you suggest where we should put this information so users find this information better?

There is a pending idea to open an editor notification if after a user clicked wrap several times (see #316).

diguage

comment created time in a month

This tracks work-in-progress of the implementation. This branch will be rebased regularly.

fix #391

+10 -69

0 comment

5 changed files

pr created time in a month

issue openedasciidoctor/asciidoctor-intellij-plugin

Starting in IntelliJ 2020.1 JetBrains introduced dynamic plugins.

http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/dynamic_plugins.html

Once this plugin is a dynamic plugin users will not need to restart their IDEs on initial install and subsequent updates.

created time in a month

more