Comments (13)
failed on go1.22
from mattermost.
@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.
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:
expect: compilation without errors from non-write files (files like github.com/mattermost/mattermost-server/[email protected]/shared/mlog/mlog.go)
from mattermost.
from mattermost.
@agnivade forgot to tag you
from mattermost.
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.
@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.
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.
i used libraries from example
from mattermost.
@agnivade ping
from mattermost.
@agnivade ping
from mattermost.
Unfortunately, I still don't understand what you are trying to do. I will leave it to someone else.
from mattermost.
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)
- Migrate tooltips of 'components/global_header/right_controls/saved_posts_button/saved_posts_button.tsx' to WithTooltip HOT 3
- Post messages look like they've been crushed HOT 3
- Bulk import does not work in 9.8.0 HOT 4
- custom status tooltip is positioned incorrectly in channel switcher items HOT 1
- Add support markdown for Attachment.Footer HOT 1
- Channel expand fail in Group channels HOT 4
- RN: The app fails to render hashtags with a minimum length of 2 after modifying the setting in the system console
- RN | Search text is behind the textbox while searching
- Migrate tooltips of "components/integrations/bots/add_bot/add_bot.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/copy_text.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/rhs_card_header/rhs_card_header.tsx" to WithTooltip HOT 2
- Migrate tooltips of "components/search/user_guide_dropdown/user_guide_dropdown.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/shared_channel_indicator.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/channel_members_rhs/header.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/channel_info_rhs/header.tsx" to WithTooltip HOT 2
- Migrate tooltips of "components/status_dropdown/status_dropdown.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/global_header/center_controls/user_guide_dropdown/user_guide_dropdown.tsx" to WithTooltip HOT 4
- Migrate tooltips of "components/file_preview_modal/file_preview_modal_main_actions/file_preview_modal_main_actions.tsx" to WithTooltip HOT 1
- Migrate tooltips of "components/admin_console/user_grid/user_grid_role_dropdown.tsx" to WithTooltip HOT 1
- Percona-XtraDB-Cluster doesn't recommend using SERIALIZABLE isolation with pxc_strict_mode = ENFORCING, caused by sql.LevelSerializable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost.