cli icon indicating copy to clipboard operation
cli copied to clipboard

Spotify `1.1.80` React Hooks - "Cannot find symbol for Custom app React"

Open Daksh777 opened this issue 4 years ago • 25 comments

🔍 Have you checked Spicetify.app page for your issue?

  • [X] I have checked the FAQ

🔍 Is there already an issue for your problem?

  • [X] I have checked older issues, open and closed

ℹ Environment / Computer Info

- Spotify version: Spotify for Windows 1.1.80.699.gc3dac750
- Spicetify version: spicetify v2.9.1

📝 Description

Running spicetify apply throws the Cannot find symbol for Custom app React symbols error but the theme does get applied.

The following hooks are the ones that need to be updated:

  • [x] Custom App React symbols (#1517)
  • [x] Spicetify.React (#1517)
  • [x] Spicetify.Platform (#1517)
  • [x] Spicetify.ReactComponent.RightClickMenu (#1517)
  • [x] Spicetify.ReactComponent.ContextMenu (#1517)
  • [x] Spicetify.Menu(https://github.com/spicetify/spicetify-cli/pull/1548)
  • [x] Spicetify.ReactComponent.Menu(https://github.com/spicetify/spicetify-cli/pull/1548)
  • [x] Spicetify.ReactComponent.MenuItem(https://github.com/spicetify/spicetify-cli/pull/1548)
  • [ ] Spicetify.ReactComponent.AlbumMenu
  • [ ] Spicetify.ReactComponent.PodcastShowMenu
  • [ ] Spicetify.ReactComponent.ArtistMenu
  • [ ] Spicetify.ReactComponent.PlaylistMenu
  • [ ] Home config

Daksh777 avatar Mar 01 '22 07:03 Daksh777

It seems like a new Spotify version... Here we go updating the regex 😅

afonsojramos avatar Mar 01 '22 09:03 afonsojramos

It seems like a new Spotify version... Here we go updating the regex 😅

when it will be resolved then?

abhi0-tech avatar Mar 01 '22 18:03 abhi0-tech

@Basic6969 when someone finds the time to do it :)

afonsojramos avatar Mar 01 '22 19:03 afonsojramos

@afonsojramos updates regex a lil but couldn't figure out rest of issue. I thunk meow is working on it

CharlieS1103 avatar Mar 02 '22 15:03 CharlieS1103

Hook refers to a path not in my system...

error Cannot find symbol for Custom app React symbols
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/khanhas/spicetify-cli/src/apply.insertCustomApp.func1(0xc0006be000, 0x205807, 0x205807, 0xc0006be000)
        C:/Users/Afonso/GitHub/spicetify-cli/src/apply/apply.go:215 +0xda6
github.com/khanhas/spicetify-cli/src/utils.ModifyFile(0xc0000122c0, 0x3d, 0xc000211910)
        C:/Users/Afonso/GitHub/spicetify-cli/src/utils/utils.go:191 +0xdb
github.com/khanhas/spicetify-cli/src/apply.insertCustomApp(0xc0000122c0, 0x3d, 0xc00045a680, 0x7, 0x8, 0xc000042280, 0x3, 0x4, 0x10101, 0xc00000ab11, ...)
        C:/Users/Afonso/GitHub/spicetify-cli/src/apply/apply.go:188 +0xc5
github.com/khanhas/spicetify-cli/src/apply.AdditionalOptions(0xc000010b10, 0x30, 0xc00045a680, 0x7, 0x8, 0xc000042280, 0x3, 0x4, 0x10101, 0xc00000ab11, ...)
        C:/Users/Afonso/GitHub/spicetify-cli/src/apply/apply.go:37 +0x57d
github.com/khanhas/spicetify-cli/src/cmd.Apply(0x928d14, 0x5)
        C:/Users/Afonso/GitHub/spicetify-cli/src/cmd/apply.go:72 +0x68c
main.main()
        C:/Users/Afonso/GitHub/spicetify-cli/spicetify.go:194 +0x4f9

TheMayhem6328 avatar Mar 02 '22 17:03 TheMayhem6328

@TheMayhem6328 Yeah, this is because of how Golang builds its binaries, the debug info indicates the lines of where the package was built, aka, my machine 😅 We could remove this, but it would remove ALL debug info, so not exactly ideal... With the new automated release introduced in #1513 the paths should be a bit more generic!

afonsojramos avatar Mar 02 '22 18:03 afonsojramos

For me, it's a lot more critical. It does not apply anything from Spicetify. Not even the theme.

Considering just downgrading to .79 at the moment, to make it work again. Any idea?

DanBeast1337 avatar Mar 02 '22 20:03 DanBeast1337

That is expected, just hold on for a bit on spicetify restore

afonsojramos avatar Mar 02 '22 23:03 afonsojramos

Did this error get fixed yet?

githubmodssuck avatar Mar 03 '22 19:03 githubmodssuck

Did this error get fixed yet?

No, wait for the fix if you want to use custom app(s).

xerta555 avatar Mar 03 '22 20:03 xerta555

yeah me too getting the prob

parthkhxndelwal avatar Mar 03 '22 20:03 parthkhxndelwal

same issue with backing up too

jvrring avatar Mar 03 '22 21:03 jvrring

So can we expect this to be fixed in a few days or how long will we not have custom apps?

JamesGordonII avatar Mar 03 '22 23:03 JamesGordonII

So can we expect this to be fixed in a few days or how long will we not have custom apps?

Check again in arround 24 hours.

xerta555 avatar Mar 03 '22 23:03 xerta555

kk

JamesGordonII avatar Mar 03 '22 23:03 JamesGordonII

https://github.com/spicetify/spicetify-cli/pull/1517 works for me

If anyone needs a `PKGBUILD` for it
# Maintainer: Francesco Minnocci <ascoli dot mimnnocci at gmail dot com>

_gitname=spicetify-cli
pkgname="${_gitname}-git"
pkgver=2.8.0.r97.g93cf89d
pkgrel=1
pkgdesc='Command-line tool to customize Spotify client - Git master branch'
arch=('x86_64' 'i686')
url="https://github.com/itsmeowForks/${_gitname}"
license=('GPL')
makedepends=('git' 'go')
source=("git+${url}.git")
sha256sums=('SKIP')
provides=("${_gitname}")
conflicts=("${_gitname}")

pkgver() {
	cd "$srcdir/${_gitname}"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "$srcdir/${_gitname}"

  git checkout 80-fixes
}

build() {
	cd "$srcdir/${_gitname}"

  export GOPATH="$srcdir"
  go build -o spicetify
}

check() {
	cd "$srcdir/${_gitname}"

  ./spicetify -v
}

package() {
	cd "$srcdir/${_gitname}"

  install -Dm755 ./spicetify "$pkgdir"/usr/share/${_gitname}/spicetify
  cp -r ./Themes ./css-map.json ./Extensions ./CustomApps ./jsHelper ./globals.d.ts -t "$pkgdir"/usr/share/${_gitname}

  rm -f ./shortcut
  echo "#!/bin/sh
/usr/share/${_gitname}/spicetify \"\$@\"" >> ./shortcut
  install -Dm755 ./shortcut "$pkgdir"/usr/bin/spicetify

  # Clean up deps
  go clean -modcache
}
# vim:set ts=2 sw=2 et:

D3SOX avatar Mar 03 '22 23:03 D3SOX

I keep seeing new releases pop up then 10 minutes later they are gone? are those patches being released then taken down due to a new bug they make?

JamesGordonII avatar Mar 04 '22 01:03 JamesGordonII

Sorry for the spam @JamesGordonII. Due to the new release process there was some stuff that wasn't 100% tested, but it is fully working now!

afonsojramos avatar Mar 04 '22 02:03 afonsojramos

Marking this issue as stale.

Let someone know if I'm wrong, after all, I'm just a bot!

github-actions[bot] avatar Mar 19 '22 04:03 github-actions[bot]

Patched a few more hooks, Menu functionality is working normally now. (Should we close this issue @afonsojramos )

CharlieS1103 avatar Mar 25 '22 20:03 CharlieS1103