- Debugging
- Progress indicator while zig is compiling the debuggable exe
- The entire plugin has been re-implemented in Kotlin
- Most of the internals have been rewritten to be fully asynchronous, so freezes should happen way less
- Toolchains, Run Configurations
- Direnv support
- Zig
- Missing description for string conversion intentions
- Zig
- Enter key handling in strings and multi line strings
- Intentions for converting between multi line and quoted strings
- Zig
- Multiline string language injections broke when editing the injected text
-
Zig
- Language injections in strings
- Syntax highlighting for escape sequences in strings
-
LSP
- Option to toggle inlay hints on/off
- Compacted error{...} blocks in inlay hints
- Runner
- The process execution pipeline is now fully asynchronous
- Error output is no longer redirected to standard output
- Debugger
- Zig compilation will no longer cause IDE freezes
- Debugging with GDB no longer causes internal IDE warnings
- Debugging
zig run
configurations is now possible
- LSP
- Rare error when checking LSP presence
- No more error spam when zig or zls binary is missing
- Zig
- Labeled switch statements
- LSP
- Updated to LSP4IJ 0.7.0
- Zig
- Structure view
- LSP
- Updated to LSP4IJ 0.6.0
- Project
- CLion will no longer prompt you to import zig projects as CMake
- IDEA 2024.3 support
- Project
- Safer standard library path resolution
- Project
- Relative paths in zig toolchain configuration would break the entire IDE
- ZLS
- Obsolete config options which are no longer used since migrating to LSP4IJ
- Project
- Zig Build integrated into an IDE tool window. Currently only supports running single steps, for more complex steps, create a custom build configuration as before.
- Project
- Increased internal zig tool timeout to 10 seconds. Note that tasks don't have timeout, this is only used for ZigBrains getting metadata about the compiler and the buildscript.
- Project
- Toolchain working directory was not set when requesting compiler metadata
- Debugger (Windows)
- MSVC debugger metadata download now requires consent from the user
- Metadata download is now cached after the first fetch
- Metadata download timeout has been set to 3 seconds, after which it reverts to the fallback file
- Zig
- Comptime struct fields not being parsed properly
-
Zig
- Standard library override always auto-enabling
- Better toolchain autodetect
-
ZLS
- Better language server autodetect
- Zon
- Support for .lazy dependency property
- Comment/uncomment hotkey support
- Zon
- More reliable autocomplete
-
Debugger
- Added fallback metadata for windows debugger downloading
- Automatic exe path discovery for zig build run debugging on windows
-
Zig
- Color settings has more accurate color preview text.
- Better builtin indentation
- LSP
- Migrated to Red Hat's LSP4IJ LSP adapter.
- Project
- Modifying the standard library path now also applies to ZLS
- Project
- PTY emulation is now opt-in in run configurations
- Project
- PTY emulation for non-debug runs. Fixes colored output in Ziglings.
- Zig
- More autocomplete fixes
- Zig
- Autocomplete not working when the caret is placed right after a "("
- Zig
- Trailing commas in struct initializers showed an error
- Debugging
- Major update, debugging on linux now works outside CLion (confirmed working in RustRover, IDEA Ultimate)
- Windows debugging has been made much more streamlined, user doesn't need to download random files manually anymore (except the visual studio debugging sdk of course)
- debugging support on macOS with LLDB
- Project
- Updated new project templates to the latest Zig 0.13.0 init files
- Zig
- Fixed inconsistent caret indenting for switches and function parameters
- More robust highlighting when auto-formatting
- Fixed multiple grammar errors
- LSP
- Notification spam about ZLS missing in non-zig projects
- Zig
- Fixed indentation to be more consistent with zig fmt
- Code completion now works correctly on the first line in a file too
- Project
- Extra compiler arguments field for zig test/run tasks
-
Debugging
- The debugger no longer freezes the IDE while zig is compiling
-
Project
- Exe args for zig run not visible in the GUI
- Zig
- External Libraries support for zig stdlib
- Debugging (Windows)
- Variables sometimes don't show up in the variable inspector when in breakpoint state
-
Debugging
- Huge rework for starting the various debugging runs, and more robust compilation error visualization instead of a tiny popup
-
LSP
- No more notification popup about zig env not being detected when not in a zig projects.
-
Project
- ZLS should now be detected more reliably when creating new projects
- Zig
- If statements without a block always showed an error
-
LSP
- The status widget now auto-hides itself when the selected editor is not a zig file in the current window
-
Project
- Completely overhauled the configuration system and the new project creation window. All the configs have been unified into a single screen, and project creation has been fully integrated as a mainline feature, instead of just a "nice to have".
-
LSP
- The injection of the various language actions (Go to declaration/implementation, reformat, etc.) has been reimplemented from the ground up to be much more reliable and compatible in the presence of other languages and plugins.
-
Zig, ZLS
- The configurations have been unified into a single cohesive interface
- Improved auto-detection for both Zig and ZLS
-
LSP
- Putting the caret on a diagnostics error now no longer highlights the whole file
-
Project
- Fixed invalid --colored command line argument for zig tasks
-
Zig
- More robust indentation logic, also works with semi-invalid syntax now
-
Debugging
- For Zig build tasks, the target executable is now auto-detected in
zig-out/bin
if not specified. Autodetect fails if multiple executables are present for consistency's sake. - You can specify custom command line arguments for the debugged executable.
- For Zig build tasks, the target executable is now auto-detected in
-
Project
- The line marker generated
zig build
now defaults to therun
step.
- The line marker generated
- Project
zig build
steps are now specified separately from miscellaneous command line arguments. This is needed for the debugger to work properly.- The zig build debug executable target configs are now hidden from Zig build tasks in IDEs without native debugging support.
- Native Application (Zig) is now hidden in IDEs without native debugging support.
- Debugging
- Debugger locks up when trying to debug
zig build run
tasks.
- Debugger locks up when trying to debug
-
Project
- Creating new project throws a write access error when git is enabled
-
Zig
- Accidental regression while renaming the action IDs that broke "find usages"
- Zig
- Parameter info (CTRL + P) is now properly integrated
- Parser error recovery (completion will still work even with missing semicolons in a statement)
-
LSP
- The registry IDs of some of the LSP handlers were colliding with the Rust intellij plugin
- Autocompletion insertion is now fully handled by intellij, this should fix some of the weirdness
-
Zig
- Indent support for function parameters and struct initializers
- Updated to latest grammar spec (https://github.com/ziglang/zig-spec/commit/78c2e2e5cfa7090965deaf631cb8ca6f405b7c42)
- Fixed multiple critical null safety problems that caused plugin crashes on some systems
- Splitting the editor now no longer breaks semantic highlighting
The rest of the 13.0.0 changes are available below:
-
Debugging
- Debugging support for tests when launched using the ZigTest task type (and with the gutter icons in the editor)
- Debugging support on Windows systems
-
Project
- Added
zig init
as a new project creation option - New projects will now have the project name in the build files instead of "untitled"
- Added
-
Zig
- Updated semantic highlighting to latest ZLS protocol
-
ZLS
- ZLS configuration is now partially editable through the GUI
-
Project
- Fixed build.zig and build.zig.zon getting placed in src/ during project creation
-
Plugin
- Removed a bunch of write action locking, the editor should feel more responsive now
-
Zig
- Error highlighting was breaking all the time
- Project
- !!!BREAKING CHANGE!!! There is now no arbitrary "zig execution" task, all zig tasks have been categorized into Zig run/build/test tasks respectively.
-
Debugger
- Now uses the toolchains you set in Settings | Build, Execution, Deployment | Toolchains
- Standard library stack frames are now automatically filtered from the debug stack trace
-
Zig
- Go to Declaration/Usages now functions as expected, taking you to the declaration of a symbol instead of its resolved implementation.
- For the time being, the "Quick Definition" (CTRL+Shift+I) action has been repurposed as Go To Definition. This will be replaced with a properly integrated solution once a way to couple the PSI symbol system and the LSP has been found.
-
LSP
- Diagnostics race condition
- Code action annotations no longer lose range
-
Zig
- Syntax highlighting no longer breaks after refactoring or reformatting
- Go to Usages no longer freezes the IDE
- Zig
- Updated to latest language grammar (destructuring syntax)
-
Zon
- Updated autocompletion to latest as per the zig spec
-
The versioning scheme used for ZigBrains has been revamped. See the plugin's GitHub repo for more information.
-
Zig
- Autocomplete now uses the LSP
- Auto-indentation is now more accurate when creating new {...} blocks
-
Zon
- Fixed auto-indent for strings and comments
- Zig
- Code style settings. The official zig formatter is not configurable either, and ZigBrains aims to minimize divergence from any official or ZLS-supplied features where possible.
- Zig
- Code formatter and code style settings
- Project generation
- Now actually populates the project directory with example files instead of just creating an empty directory
-
Zig
- Commenter
-
Zon
- Can now parse the .paths attribute properly
- Maximum compatible IDE version 232.* -> 233.*
-
Dev env
- nix jbr points to the correct path
-
LSP
- Crash in huge projects
- LSP
- Dulled the colors of the status indicator, and added a gray "idle" color when ZLS is disconnected but not due to an error.
-
Actions
- Blocking other languages' run tasks
- Files not autosaving before actions run
-
Documentation
- No longer breaks the documentation of other languages
-
Editor
- Race condition causing IllegalArgumentException
-
LSP
- Occasional NullPointerException when LSP returns blank data for inlay hints
-
Editor
- Compatibility with 0.11 for loop ranges
- Gutter icons for:
- Launching a file with a
main
top level function - Launching a file with tests in it
- Running
zig build
from a build.zig file
- Launching a file with a
-
Toolchain
- Debugging Support
- Toolchain
- Zig run configurations now save properly
- Toolchain
- Zig compiler toolchain integration and run actions (no debugging support yet, see the readme)
- Zig
- Inlay hints
- Breakpoints (CLion/IDEA Ultimate)
- File creation prompt
- LSP
- ZLS is now auto-detected on project startup from PATH
- (You can also manually auto-detect it in the config menu)
- ZLS is now auto-detected on project startup from PATH
- Accessibility
- The LSP status icon now has symbols in it instead of just colors:
- Stopped(Red): X
- Starting(Yellow): Refresh arrow
- Started(Green): Empty
- The LSP status icon now has symbols in it instead of just colors:
- LSP
- NullPointerException in folding range provider when closing editors quickly
- Config
- Changes to the ZLS configuration no longer require an IDE restart
- Separate timeout category for syntax highlighting
- Basic "dumb" syntax highlighting when LSP is not connected
- Go to usages now works properly
- Color scheme preview now works properly
- Better "smart" syntax highlighting when LSP is connected
- Brace/Parenthesis/Bracket matching
- IDE no longer freezes when ZLS responds slowly
- Updated dependencies
- Integrated LSP4IntelliJ directly into ZigBrains
- NullPointerException when clicking the red circle when the LSP is not connected
- Proper documentation view (CTRL+Q) instead of the janky hover thing
- IDEA 2022 support (Necessary change for the new documentation backend in lsp4intellij)
- Error highlighting now works on IDEA 2023
- Basic parser and PSI tree
- Basic syntax highlighting
- Color settings page
- Brace and quote matching
- Code completion
- Code Folding
- Indentation
- Updated the LSP backend, it should be more resilient now
- Basic diagnostics info from LSP (mostly just trivial syntax errors)
- Asynchronous folding (Enable it in the settings!)
- Made the logic even more asynchronous, should lead to much less UI stuttering
- Better folding regions instead of just
{...}
...
for the general case///...
for doc comments
- Race condition on IDE startup throwing exceptions
- Folding ranges not appearing on Windows
- Typo in the bounds checking code
- Support for Semantic Token Deltas (more compact way for the LSP server to send back data when typing fast)
- Temporary "increase timeout" toggle (currently, it bumps all timeouts to 15 seconds)
- Occasional NPE in LSP4IntellIJ
- Last token in file not getting highlighted
- (Windows) ZLS binary not executing if the file path has weird characters
- Code completion
- Code folding
- More ZLS config options
- Initial prototype. Lots of important stuff not yet implemented, but basic syntax highlighting and go to definition works.