Error Message Errno ENOENT and no preview
Problems with folder names with non-US-ASCII characters. See below for the remedy.
When rendering a preview, an error message like the following appears in the console:
Error rendering asciidoctor: org.jruby.exceptions.RaiseException: (Errno::ENOENT) file:/C:/Users/....gemspec
The preview doesn’t show.
This seems to happen mostly on Windows systems as they don’t default to UTF-8 charsets. Linux systems usually default to UTF-8 and are not affected.
Running Microsoft Windows there seems to be a problem that JRuby can’t read a folder name when contains non-US-ASCII characters that would require an UTF-8 encoding.
This has been documented first in Issue 210
Upgrading to the latest version of IntelliJ and the plugin resolves this issue. For earlier versions changing the file encoding for IntelliJ solved the issue.
This issue seems can be resolved by upgrading to the latest version of IntelliJ and the AsciiDoc plugin.
This was tested successfully for the following environment:
IntelliJ version 2020.3.1,
AsciiDoc Plugin version 0.32.5,
Windows 10 with charset Windows-1252 and
Plugin folder containing umlauts.
Please put the following as a new line at the end of IDE’s VM options file:
You can open the file from your IDE via.
The online documentation of IntelliJ explains where to find this file in the local file system.