holepunchto / pear

combined Peer-to-Peer (P2P) Runtime, Development & Deployment tool
https://pears.com/
Apache License 2.0
84 stars 9 forks source link

Windows 11 pear dev not working #182

Open connor-davis opened 3 weeks ago

connor-davis commented 3 weeks ago

Hello, Excuse any improper knowledge as this is my first ever issue:

I have run into several issues with pear.

  1. When running pear dev after stock pear init - I get image

  2. Related to 1 - When I try again it gives image

  3. Another weird issue is that if I happen to have for example keet open, both of the above cases close/crash keet.

Pear Info: image

Windows Version: image

MrMasrozYTLIVE commented 3 weeks ago

Can confirm on Win 10 Pro 22H2 (19045.2728)

MrMasrozYTLIVE commented 3 weeks ago

Some additional information about Pear and NodeJS versions:

PS C:\> pear versions
Pear ~ Welcome to the Internet of Peers
pear: 0.3229.pqbzjhqyonxprx8hghxexnmctw75mr91ewqw5dxe1zmntfyaddqy

PS C:\> node --version
v20.5.1
MrMasrozYTLIVE commented 2 weeks ago

Somehow it fixed itself after running app from C:/Users/<User>/Desktop/<AppFolder> using pear dev Running app from E:/<AnotherPathHere>/<AppFolder> using same command is not possible due to 2nd error from OP

davidmarkclements commented 2 weeks ago

interesting, @MrMasrozYTLIVE are C and E different types of disk (e.g. SSD vs spinning)?. I'm assuming Pear is installed in your C:\ drive (see in [user]\AppData\Roaming\pear)?

@connor-davis are you always trying to run an app on a different drive to the one Pear is installed on?

connor-davis commented 2 weeks ago

I'm running my dev on my hard drive and pear is installed to the SSD yes... Is that what's going on here?

MrMasrozYTLIVE commented 2 weeks ago

interesting, @MrMasrozYTLIVE are C and E different types of disk (e.g. SSD vs spinning)?. I'm assuming Pear is installed in your C:\ drive (see in [user]\AppData\Roaming\pear)?

Yes, it is installed on my SSD C:/ drive while project is on HDD E:/ drive. Running that same project from Desktop folder on C:/ works just fine while from E:/ it doesn't work and errors with ipc.start not defined error

connor-davis commented 2 weeks ago

Yes, I just tried pear dev on the same drive as pear is installed and it runs without error...

MrMasrozYTLIVE commented 2 weeks ago

Yes, I just tried pear dev on the same drive as pear is installed and it runs without error...

Well i guess we found out the Issue. When running pears on different drive than its installed on - it doesn't work

MrMasrozYTLIVE commented 2 weeks ago

Well it doesnt work again. It works like 50/50 for some reason

davidmarkclements commented 2 weeks ago

@MrMasrozYTLIVE 50/50 on same drive or 50/50 on different drive?

MrMasrozYTLIVE commented 2 weeks ago

@MrMasrozYTLIVE 50/50 on same drive or 50/50 on different drive?

It did work yesterday but now it just doesn't work at all when trying to run app from C:/ drive

MrMasrozYTLIVE commented 2 weeks ago

C:\Users\<User>\Coding\NodeJS\LinkUp-P2P-Chat: pear dev

x An error occured
TypeError: ipc.start is not a function

C:\Users\<User>\Desktop\LinkUp-P2P-Chat: pear dev

x An error occured
TypeError: ipc.start is not a function

But it did work yesterday from desktop folder. So i'd say its 50/50 at all. On second drive I never got it to run but on C:/ drive it did ran once

MrMasrozYTLIVE commented 2 weeks ago

Oh also it does run on linux devices just fine. So it happens only on windows devices, when I use the app on Arch Linux it works

mafintosh commented 2 weeks ago

fix for path issue here: https://github.com/holepunchto/pear/pull/193

st10068305 commented 1 week ago

@mafintosh

Does that fix mean that pear will be able to be used on different drives to os?

mafintosh commented 1 week ago

of course!

st10068305 commented 1 week ago

Shweet, Im looking forward!