Mattermost, Inc.

Panic: Failed to load system translations for 'en'

I’m running a clean install and when I try to build with Webstorm I keep getting this error.

How do I fix it?

ps building this thing is a pain in the ass.

thanks

Hi mike,

Actually im using Webstorm as my IDE and I don’t seem to have any problems.

This is my environment

  • OS: OSX El Capitan 10.11.4
  • Go version 1.6.2
  • Node version 5.10.1
  • npm version 3.8.3
  • $GOPATH set as env varible
  • WebStorm 2016.1.2

to run the project just type make run

If this doesn’t point you in the right direction I’ll be more than happy to help

Hi

All the tests pass. Make run, runs correctly and I can navigate to the localhost:8065 URL and use the app normally. But when I go on Webstorm and hit run, I get this error:

/usr/local/go/bin/go run /Users/<username>/go/src/github.com/mattermost/platform/mattermost.go
panic: Failed to load system translations for 'en'

goroutine 1 [running]:
panic(0x77f280, 0xc82014b8b0)
	/usr/local/go/src/runtime/panic.go:464 +0x3e6
github.com/mattermost/platform/utils.GetTranslationsBySystemLocale(0xc82014b88b)
	/Users/<username>/go/src/github.com/mattermost/platform/utils/i18n.go:48 +0x18b
github.com/mattermost/platform/utils.InitTranslationsWithDir(0x9a8ba0, 0x4)
	/Users/<username>/go/src/github.com/mattermost/platform/utils/i18n.go:33 +0x2ee
github.com/mattermost/platform/utils.InitTranslations()
	/Users/<username>/go/src/github.com/mattermost/platform/utils/i18n.go:19 +0x2c
main.main()
	/Users/<username>/go/src/github.com/mattermost/platform/mattermost.go:80 +0x2c
exit status 2

Process finished with exit code 1

My system config is exact same as yours, except I’m running Node v5.4.1.

When inside the /platform directory the command go run mattermost.go works perfect.

But inside Webstorm when I hit run the following command runs (which is actually same):
/usr/local/go/bin/go run /Users/<username>/go/src/github.com/mattermost/platform/mattermost.go

But I get the above error.

To hell with Webstorm, I got it working with VSCode.

hahaha ok, but just in case.

Go plugin for jetbrains version 0.11.1295
and check that GOPATH is shown under Languages & Framworks -> Go -> Go Libraries

This is what I have in run config
Run kind: File
Filename: path to mattermost.go
Working directory: Path to cloned repo
Program arguments: -config=config.json

Hope it helps

1 Like