SRN midterm not running

3 views
Skip to first unread message

Stephen Read

unread,
Oct 26, 2025, 8:03:03 PM10/26/25
to Michael J Frank, emergent-users

The srn exercise works with my installation of go 1.23.1, but it does not work for my students who have just installed go and have go 1.25.1 or so. I’m wondering if the problem is that they need to revert to 1.23.1 or is it possible to revise this and the relevant go.mod to work on go 1.25.1.

   I just gave this out and the students are discovering this weekend that they can’t get it to run. 

They get the following message.

 

Hello Professor, when I try to run the initial version of srn it gives me "go build -ldflags -s -w -X cogentcore.org/core/system.CoreVersion=v0.3.3-0.20240902230139-2dc02ce70fcc -o /Users/allysonle/Desktop/Psych450/SRN_midterm_CogentCore/srn/srn
golang.org/x/tools/internal/tokeninternal
../../../../go/pkg/mod/golang.org/x/to...@v0.24.0/internal/tokeninternal/tokeninternal.go:64:9: invalid array length -delta * delta (constant -256 of type int64)
core run failed: error building app: build: error building for platform darwin/arm64: failed to run "go build -ldflags -s -w -X 
cogentcore.org/core/system.CoreVersion=v0.3.3-0.20240902230139-2dc02ce70fcc -o /Users/allysonle/Desktop/Psych450/SRN_midterm_CogentCore/srn/srn: exit status 1"".

which is an incompatibility between a specific older version of the golang.org/x/tools dependency (v0.20.0) and the Go compiler.

 

 

 

 

Thanks, Steve

 

 

Stephen J. Read

Mendel B. Silberberg Professor of Social Psychology

Department of Psychology

University of Southern California

Los Angeles, CA 90089-1061

Website: www.stephenjread.com

 

 

 

SRN_midterm_CogentCore 2rev 2.zip
Reply all
Reply to author
Forward
0 new messages