Go Fmt File not working after upgrade to Goland 2026.1 when running in WSL

Environment:

Win11 Pro HyperV VM on Win11 Pro Host, WSL backend is Ubuntu 24.04 LTS.

After upgrading Goland to 2026.1 any attempt to format a Go file (either using Ctrl-Alt-Shif-F or Tools > Go Tools > Go Fmt File) fails with 

stat /main.go: directory not found

It seems that Goland does not prefix the file with the full path.

After downgrading to 2025.3.4 everything works as expected again. I see this behavior on my private installation at home as well as on my company issued system (Windos AVD, same setup). 

Am I missing some required configuration?

 

 

0

Hi there! Thank you for your report. This is a known issue mentioned here - GO-20273. Please follow the task to get updated once there is any news on the matter. Thank you!

0

请先登录再写评论。