folke / polydock

✨ A shiny and hackable application dock
Apache License 2.0
193 stars 8 forks source link

Error trying to run polydock #44

Open clemencyworld1 opened 2 years ago

clemencyworld1 commented 2 years ago

I couldn't detect the required dependencies, so i installed everything containing the mentioned dependencies in their name. However when i try to run polydock i get the following error:

$ ./bin/polydock

(gjs:18188): Gjs-CRITICAL **: 11:54:23.095: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()' class_1@./bin/polydock:899:46 imports.gi.versions.GdkPixbuf<@./bin/polydock:951:15 @./bin/polydock:955:2

(gjs:18188): Gjs-CRITICAL **: 11:54:23.095: Script ./bin/polydock threw an exception

How do i get past this. Really want to try it. I am running Antix linux with debian sid sources

dmaahs2017 commented 2 years ago

I'm having the Same issue. Only started having this issue after updating. I would guess that GJS or some other dependency updated which caused braking changes. I'm guessing a PR is going to be required.

I'm considering opening and maintaining a fork of this project, since I do like it. It just seems to be unmaintained at the time.

MintArchit commented 1 year ago

same issue

dmaahs2017 commented 1 year ago

Gutentag @MintArchit, I never got around to building a working fork. And I haven't found a replacement dock that I love. Though I'd have more motivation to do it on the side if I knew someone else wanted to use it too.

MintArchit commented 1 year ago

Hey @dmaahs2017, up to now I have not found an alternative either. I would definitely prefer a fixed Polydock. Last Time I wrote, all versions did not work for me.

Exception Ver 1.4.0 ```js Gjs-Message: 01:12:49.090: JS WARNING: [polydock-bin-1.4.0/bin/polydock 890]: Requiring GdkX11 but it has 2 versions available; use imports.gi.versions to pick one (gjs:60174): Gjs-CRITICAL **: 01:12:49.090: JS ERROR: Error: Requiring GdkX11, version none: Requiring namespace 'Gdk' version '4.0', but '3.0' is already loaded @polydock-bin-1.4.0/bin/polydock:890:1 (gjs:60174): Gjs-CRITICAL **: 01:12:49.090: Script polydock-bin-1.4.0/bin/polydock threw an exception ```
Exception Ver 2.0.2 ```js (gjs:61844): Gjs-CRITICAL **: 01:20:47.079: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()' class_1@polydock-bin-2.0.2/bin/polydock:884:46 imports.gi.versions.GdkPixbuf<@polydock-bin-2.0.2/bin/polydock:936:15 @polydock-bin-2.0.2/bin/polydock:940:2 (gjs:61844): Gjs-CRITICAL **: 01:20:47.079: Script polydock-bin-2.0.2/bin/polydock threw an exception ```
Exception Ver 2.0.3 ```js (gjs:62159): Gjs-CRITICAL **: 01:22:12.689: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()' class_1@polydock-bin-2.0.3/bin/polydock:897:46 imports.gi.versions.GdkPixbuf<@polydock-bin-2.0.3/bin/polydock:949:15 @polydock-bin-2.0.3/bin/polydock:953:2 (gjs:62159): Gjs-CRITICAL **: 01:22:12.689: Script polydock-bin-2.0.3/bin/polydock threw an exception ```
Exception Ver 2.1.0 ```js (gjs:62269): Gjs-CRITICAL **: 01:22:43.812: JS ERROR: Error: Constructor called as normal method. Use 'new SomeObject()' not 'SomeObject()' class_1@polydock-bin-2.1.0/bin/polydock:899:46 imports.gi.versions.GdkPixbuf<@polydock-bin-2.1.0/bin/polydock:951:15 @polydock-bin-2.1.0/bin/polydock:955:2 (gjs:62269): Gjs-CRITICAL **: 01:22:43.812: Script polydock-bin-2.1.0/bin/polydock threw an exception ```

Just out of curiosity i tested them again and Ver. 2.0.0 and 2.0.1 are running !!!

Preview Ver 2.0.1 with default settings ![pd_2 0 1](https://user-images.githubusercontent.com/86726739/206327311-c4e23d8f-f574-4e5a-bfa2-dcf946dc4a82.png)

Tomorrow, I'll delve deeper into this.

P.s. current setup ubuntu22lts + i3 + polybar

dmaahs2017 commented 1 year ago

Well that's really cool to hear! Those working versions might be a good starting point for a fork. I'm running arch + bspwm + polybar

quiltedstars commented 1 year ago

Same issue is happening with me :( 2.0.1 threw some promising code at me, but it didn't launch because

(polydock:18496): Gjs-CRITICAL **: 15:36:39.283: JS ERROR: Error: Function Gdk.property_get() cannot be called: argument 'actual_property_type' with type interface is not introspectable because it has a type not supported for (out caller-allocates)
AndrewSwerlick commented 1 year ago

Was able to fix this issue with https://github.com/folke/polydock/pull/55