Git Product home page Git Product logo

Comments (4)

mkeeter avatar mkeeter commented on May 26, 2024

Try updating to the newest Zig nightly – the constructor for ResetEvent changed recently!

from futureproof.

akiyosi avatar akiyosi commented on May 26, 2024

Thanks for the reply!
I have tried the nightly build and seem to get the following error.
Exporting the environment variables changed the error content.

bash-3.2$ zig build run
error(link): /Users/akiyosi/Downloads/zig-macos-x86_64-0.8.0-dev.762+af8eab546/zig terminated with stderr:

error: LLDCrashed
futureproof...The following command exited with error code 1:
/Users/akiyosi/Downloads/zig-macos-x86_64-0.8.0-dev.762+af8eab546/zig build-exe /Users/akiyosi/futureproof/src/main.zig -lglfw -lfreetype -lstdc++ -lwgpu_native -lshaderc_combined --cache-
dir /Users/akiyosi/futureproof/zig-cache --global-cache-dir /Users/akiyosi/.cache/zig --name futureproof -I /usr/local/Cellar/glfw/3.3.2/include -I /usr/local/opt/freetype/include/freetype
2 -I /Users/akiyosi/futureproof/vendor -I /Users/akiyosi/futureproof/vendor/shaderc/include -I /Users/akiyosi/futureproof -L /usr/local/Cellar/glfw/3.3.2/lib -L /usr/local/opt/freetype/lib
 -L vendor/wgpu -L vendor/shaderc/lib -F /System/Library/Frameworks -framework Foundation -framework AppKit --enable-cache
error: the following build command failed with exit code 1:
/Users/akiyosi/futureproof/zig-cache/o/ee7028f314564c4a13f82999d6958443/build /Users/akiyosi/Downloads/zig-macos-x86_64-0.8.0-dev.762+af8eab546/zig /Users/akiyosi/futureproof /Users/akiyos
i/futureproof/zig-cache /Users/akiyosi/.cache/zig run
bash-3.2$ export ZIG_SYSTEM_LINKER_HACK=1
bash-3.2$ zig build run
thread 10183113 panic: access of inactive union field
/Users/akiyosi/futureproof/src/rpc.zig:33:36: 0x10488b606 in rpc.Listener.run (futureproof)
                if (v.data.Array[0].UInt == RPC_TYPE_RESPONSE) {
                                   ^
/Users/akiyosi/Downloads/zig-macos-x86_64-0.8.0-dev.762+af8eab546/lib/zig/std/thread.zig:283:32: 0x10488fda1 in std.thread.MainFuncs.posixThreadMain (futureproof)
                        startFn(arg) catch |err| {
                               ^
???:?:?: 0x7fff64aca2ea in ??? (???)
???:?:?: 0x7fff64acd248 in ??? (???)
???:?:?: 0x7fff64ac940c in ??? (???)
Panicked during a panic. Aborting.
The following command terminated unexpectedly:
cd /Users/akiyosi/futureproof && /Users/akiyosi/futureproof/zig-cache/bin/futureproof
error: the following build command failed with exit code 1:
/Users/akiyosi/futureproof/zig-cache/o/ee7028f314564c4a13f82999d6958443/build /Users/akiyosi/Downloads/zig-macos-x86_64-0.8.0-dev.762+af8eab546/zig /Users/akiyosi/futureproof /Users/akiyos
i/futureproof/zig-cache /Users/akiyosi/.cache/zig run

My neovim version is the following:

bash-3.2$ nvim --version
NVIM v0.5.0-855-g74eed35f9
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /Library/Developer/CommandLineTools/usr/bin/cc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99
-Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVI
M_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/Users/akiyosi/n/build/config -I/Users/akiyosi/n/src -I/Users/akiyosi/n/.deps/usr/include -I/usr/include -I/usr/local/op
t/gettext/include -I/Users/akiyosi/n/build/src/nvim/auto -I/Users/akiyosi/n/build/include
Compiled by [email protected]

from futureproof.

mkeeter avatar mkeeter commented on May 26, 2024

Perhaps a Neovim version issue? I built against v0.4.4, rather than 0.5.0 beta, and I'm not sure whether APIs have changed.

from futureproof.

akiyosi avatar akiyosi commented on May 26, 2024

Thanks, I replaced neovim with 0.4.4 and the error went away.
I will close this issue.

from futureproof.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.