GithubHelp home page GithubHelp logo

BUG: compilation about mattermost HOT 13 CLOSED

ThePsina avatar ThePsina commented on June 15, 2024
BUG: compilation

from mattermost.

Comments (13)

ThePsina avatar ThePsina commented on June 15, 2024

failed on go1.22

from mattermost.

agnivade avatar agnivade commented on June 15, 2024

@ThePsina - I'd suggest to please give clear repro steps and mention clearly what you have done, what you expect, and what did you see. Thanks.

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

step: try to compile app with "github.com/mattermost/mattermost-plugin-apps/apps" lib
in go.mod i have this:

	github.com/mattermost/go-i18n v1.11.1-0.20211013152124-5c415071e404 // indirect
	github.com/mattermost/ldap v3.0.4+incompatible // indirect
	github.com/mattermost/logr/v2 v2.0.21 // indirect
	github.com/mattermost/mattermost-plugin-api v0.1.1 // indirect
	github.com/mattermost/mattermost-server/v6 v6.7.2 // indirect

step: run with goland
after this i receive compile error:
image

expect: compilation without errors from non-write files (files like github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go)

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

image

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

@agnivade forgot to tag you

from mattermost.

agnivade avatar agnivade commented on June 15, 2024

I'm sorry, I don't understand "step: try to compile app with "github.com/mattermost/mattermost-plugin-apps/apps" lib". Please mention clear steps, without any screenshots, how should one reproduce this.

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

@agnivade
i use goland, because it's comfort for me. All code are written in this ide
go version: 1.22

step 1: write code with using library github.com/mattermost/mattermost-plugin-apps/apps (i write bot-app for mattermost)
step 2: install all dependencies in your go.mod - after go mod tidy you will see in go.mod something like this:

module <your module>

go 1.22

require (
...

	github.com/mattermost/ldap v3.0.4+incompatible // indirect
	github.com/mattermost/logr/v2 v2.0.21 // indirect
	github.com/mattermost/mattermost-plugin-api v0.1.1 // indirect
	github.com/mattermost/mattermost-server/v6 v6.7.2 // indirect
...
)

...

step 3: write all creds/envs/configs in your app to prepare for run
step 4: run your code by run-button in goland
step 5: receive compile error:

go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:87:11: cannot use generic function logr.Int without instantiation
go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:96:12: cannot use generic function logr.Uint without instantiation
go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:105:14: cannot use generic function logr.String without instantiation
go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:130:12: cannot use generic function logr.Bool without instantiation
go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:143:13: cannot use generic function logr.Array without instantiation
go/pkg/mod/github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go:146:11: cannot use generic function logr.Map without instantiation

i expected:
run without compile error from library github.com/mattermost/mattermost-server/v6

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

i found that https://github.com/mattermost/mattermost/blob/v6.7.2 on go1.16 and library that is exported here is on go1.18

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

i used libraries from example

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

@agnivade ping

from mattermost.

ThePsina avatar ThePsina commented on June 15, 2024

@agnivade ping

from mattermost.

agnivade avatar agnivade commented on June 15, 2024

Unfortunately, I still don't understand what you are trying to do. I will leave it to someone else.

from mattermost.

amyblais avatar amyblais commented on June 15, 2024

I'll close this for now as our team is not sure about this issue. Would you instead be open to posting about this on one of our troubleshooting forums, either at https://community.mattermost.com/core/channels/peer-to-peer-help or at https://forum.mattermost.com/?

from mattermost.

Related Issues (20)

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.