cli icon indicating copy to clipboard operation
cli copied to clipboard

FIX: Generating ts-client is broken

Open vladimir-trifonov opened this issue 1 year ago • 4 comments

Describe the bug Generating ts-client is broken.

I have such lines for dependencies:

import { Api } from "./rest";
import { QueryModuleAccountsRequest } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
import { Bech32PrefixResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
import { AddressBytesToStringResponse } from "./types/../../../../../../../go/pkg/mod/github.com/cosmos/[email protected]/proto/cosmos/auth/v1beta1/query";
...

The paths are wrong, the ./rest.ts is missing among other issues.

To reproduce Steps to reproduce the behavior:

  1. ignite generate ts-client

What version are you using? Any version after v0.27 is broken.

🐹 ignite version Ignite CLI version: v28.5.1-dev Ignite CLI build date: 2024-08-05T12:50:47Z Ignite CLI source hash: 2a968e8684cae0a1d79ccb11f0db067a4605173e Ignite CLI config version: v1 Cosmos SDK version: v0.50.8 Your OS: darwin Your arch: arm64 Your go version: go version go1.22.6 darwin/arm64 Your uname -a: Darwin Vladimirs-MBP 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64 arm Darwin Your cwd: /Users/vladimirtrifonov/src/cli Is on Gitpod: false

vladimir-trifonov avatar Aug 16 '24 14:08 vladimir-trifonov

Facing same issue due to which client side generation fails, have you tried using prior versions to v0.27 and are they working?

ag-wnl avatar Aug 17 '24 08:08 ag-wnl

Thanks for reporting this issue. The team is currently investigating and it seems related to recent rate limit changes on buf.build (https://github.com/ignite/cli/issues/4303), which are affecting typescript generation.

salmad3 avatar Aug 23 '24 04:08 salmad3

we need to uncomment the test after we authenticate the buf into the ci

https://github.com/ignite/cli/pull/4322/files#diff-d67e5049a6cca2da4aa5c9b9082783f567040c945416ff81a65e37312f317a6dR16

Pantani avatar Aug 28 '24 21:08 Pantani

Yes, I had a call with @clockworkgr to fix this (following error after https://github.com/ignite/cli/issues/4259). He found the issue in the path resolving. A patch should be coming soon!

julienrbrt avatar Sep 02 '24 07:09 julienrbrt

Still having this issue, can't utilize the ts-client even after buf registry login and can't use any of the generated frontends also (be it react, or vue)

arthur404dev avatar Oct 24 '24 21:10 arthur404dev

@julienrbrt, do you have any updates for #4347 ?

YuriyHab avatar Nov 19 '24 10:11 YuriyHab

@julienrbrt, do you have any updates for #4347 ?

Hey, we are currently developing an ignite app that will be a workaround for this. It will setup telescope and a frontend. It was easier than fixing the above. The above will eventually get fixed as well. The app will be ready this week to use in all ignite 28 versions.

https://github.com/ignite/apps/pull/140

julienrbrt avatar Nov 19 '24 11:11 julienrbrt

@julienrbrt, do you have any updates for #4347 ?

Hey, we are currently developing an ignite app that will be a workaround for this. It will setup telescope and a frontend. It was easier than fixing the above. The above will eventually get fixed as well. The app will be ready this week to use in all ignite 28 versions.

ignite/apps#140

Any update on this ignite app?

I'm stuck at generating a typescript client for my chain.

Any alternative?

I have already tried telescope and it also gave me faulty code

cenwadike avatar Feb 17 '25 13:02 cenwadike