hexya-erp / hexya

Hexya business application development framework
http://hexya.io
Apache License 2.0
422 stars 131 forks source link

hexya updatedb failed #112

Closed bandirsen closed 5 years ago

bandirsen commented 5 years ago

I'm trying to install hexya demo project, with follwoing step hexya installed fine less installed fine git clone https://github.com/hexya-erp/hexya-demo.git cd hexya-demo hexya generate . -c ./hexya.toml

All work fine until "hexya updatedb -c ./hexya.toml" I got following errors :

Please wait, Hexya is starting ...

github.com/hexya-erp/pool/q/account_account_tag

pool/q/account_account_tag/account_account_tag.go:118:28: undefined: models.NewFieldName pool/q/account_account_tag/account_account_tag.go:125:28: undefined: models.NewFieldName .... many similar error about models.NewFieldName

the postgres db is up and running, here are my hexya.toml configuration,

Modules = [
    "github.com/hexya-addons/account"
]
LogStdout = true
#LogFile = ""
LogLevel = "info"
Debug = true
Demo = true
DataDir = "./hexya-datadir"

[DB]
Driver = "postgres"
Host = "localhost"
Port = 5432
User = "dbuser"
Password = "dbuserpass"
Name = "hexya"
SSLMode = false
#SSLCert = ""
#SSLKey = ""
#SSLCA = ""

[Server]
Languages = ["all"]
#Interface = ""
Port = 8080
Domain = "localhost"
#Certificate = ""
#PrivateKey = ""

It seems models.NewFieldName not imported correctly ?

npiganeau commented 5 years ago

Hi, thanks for your interest in Hexya. I made quite a few breaking changes recently and the modules are not up to date with hexya.

Reinstalling hexya from tag v0.0.41 and then cloning hexya-demo and running it like you did should do the trick.

bandirsen commented 5 years ago

Thanks for explanation, I will close this issue. Thanks for the project, I'm in journey learning hexya.