FalsePattern / ZigBrains

The zig language plugin for intellij
https://plugins.jetbrains.com/plugin/22456-zigbrains
Other
116 stars 7 forks source link

CLion / MacOS: Setup is not functioning the way it should #71

Closed ashajjar closed 2 hours ago

ashajjar commented 2 hours ago

I installed Zig with brew, and followed the instructions. however autocomplete only works when I give the full path of the executable.

image

which works only for autocompleting but does not work for other stuff like when I try to run from the IDE

image

MacOS: 15.0.1 (24A348)

CLion 2024.2.2

Build #CL-242.22855.75, built on September 18, 2024

Runtime version: 21.0.3+13-b509.15 aarch64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

.NET Core v8.0.4 ARM64 (Server GC)

ashajjar commented 2 hours ago

I solved the issue by pointing the plugin to the actual path not the link

image

/opt/homebrew/Cellar/zig/0.13.0/bin instead of /opt/homebrew/bin/zig

Because Homebrew creates a link:

image
FalsePattern commented 2 hours ago

For the symlink, you can just point it at /opt/homebrew/bin, ZigBrains will look for zig inside the directory. The standard library path itself is pulled from zig env

ashajjar commented 2 hours ago

For the symlink, you can just point it at /opt/homebrew/bin, ZigBrains will look for zig inside the directory. The standard library path itself is pulled from zig env

when I pointed it to /opt/homebrew/bin that did not work either. The screen shot is from the second attempt 😅