diff --git a/CHANGELOG.md b/CHANGELOG.md index cb7d7c6cb..8cdb8f184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,48 @@ ## [Unreleased] ### Added + +### Fixed + +## [0.9.9-alpha.9] - 2024-11-29 + +### Added + * Use theme foreground and background colors for equation preview +* Add support for \includesvg +* Support references in \subfix command +* Provide autocompletion for all relevant directories when using subfiles +* Do not format existing directories in the given path in the file creation quickfix dialog +* Disable Evince inverse search on Windows to avoid a UI freeze on opening a second project +* Use xdg-mime to choose a default pdf viewer in the run configuration template +* Don't insert the right brace when in front of text +* Add DeclareMathSymbol to indexed command definitions in installed packages +* Add support for TEXMFHOME for reference resolving +* Add diffcoeff and upgreek packages to autocompletion, by @Toseflo +* Improve reference resolving when using subfiles +* Add setting to disable auto-import of bibtex entries from remote libraries ### Fixed + * Disallow unmatched braces after \@ifnextchar +* Fix exception #3771 when a file referenced from cache is deleted +* Fix basic case of false positive of duplicate label inspection when user defined \if commands are used +* Fix a parse error when using \else with a user defined \if-command +* Fix relative path conversion in graphics insertion wizard by resolving relative to the root file +* Fix exception #3763 +* Fix 'missing import' false positive in subfiles +* Don't override the file icon for .txt files, by @Steve-Li-1998 +* Fix exceptions #3754 and #3326 +* Fix exceptions in structure view when command parameters are missing +* Improve error report submitter for long stacktraces +* Fix a parser issue with bidirectional arrow in TikZ +* Fix default Docker image name when running Dockerized TeX Live without a project SDK +* Always use content roots to resolve references +* Fix 'package not found' error when using texlive-full on Windows, and improve running of system commands, by @tristankretzer +* Fix rename of files when using subfiles +* Fix incorrect 'package already included' warning for the subfiles package +* Fix exception #3557 if using bibtex structure view when bibtex file type is reassignd to plain text +* Avoid referencing obsolete psifiles, fix exception #3635 ## [0.9.9-alpha.8] - 2024-11-28 @@ -558,7 +596,8 @@ Thanks to @jojo2357 and @MisterDeenis for contributing to this release! * Fix some intention previews. ([#2796](https://github.com/Hannah-Sten/TeXiFy-IDEA/issues/2796)) * Other small bug fixes and improvements. ([#2776](https://github.com/Hannah-Sten/TeXiFy-IDEA/issues/2776), [#2774](https://github.com/Hannah-Sten/TeXiFy-IDEA/issues/2774), [#2765](https://github.com/Hannah-Sten/TeXiFy-IDEA/issues/2765)-[#2773](https://github.com/Hannah-Sten/TeXiFy-IDEA/issues/2773)) -[Unreleased]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.8...HEAD +[Unreleased]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.9...HEAD +[0.9.9-alpha.9]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.8...v0.9.9-alpha.9 [0.9.9-alpha.8]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.7...v0.9.9-alpha.8 [0.9.9-alpha.7]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.6...v0.9.9-alpha.7 [0.9.9-alpha.6]: https://github.com/Hannah-Sten/TeXiFy-IDEA/compare/v0.9.9-alpha.4...v0.9.9-alpha.6 diff --git a/gradle.properties b/gradle.properties index 665ee2133..ff3693086 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -pluginVersion = 0.9.9-alpha.8 +pluginVersion = 0.9.9-alpha.9 # Info about build ranges: https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html # Note that an xyz branch corresponds to version 20xy.z and a since build of xyz.* diff --git a/src/nl/hannahsten/texifyidea/util/CommandRunner.kt b/src/nl/hannahsten/texifyidea/util/CommandRunner.kt index 80e364bcb..23e02fc3e 100644 --- a/src/nl/hannahsten/texifyidea/util/CommandRunner.kt +++ b/src/nl/hannahsten/texifyidea/util/CommandRunner.kt @@ -52,7 +52,24 @@ suspend fun runCommandNonBlocking( process.outputWriter().use { if (input != null) it.write(input) } val output = if (!discardOutput) async { process.inputReader().use { it.readText() } } else null - val error = if (!discardOutput) async { process.errorReader().use { it.readText() } } else null + val error = if (!discardOutput) { + async { + process.errorReader().use { + try { + it.readText() + } + catch (e: IOException) { + // In some case directly after IDE start, the stream may be closed already, so ignore that + if (e.message?.contains("Stream closed") == true) { + Log.info("Ignored closed stream: " + e.message) + e.message + } + else throw e + } + } + } + } + else null withTimeoutOrNull(1_000 * timeout) { process.awaitExit()