-
Notifications
You must be signed in to change notification settings - Fork 0
ADB/iDevice path not found in IntelliJ plugin #10
Comments
Can you go the the IntelliJ settings -> Other settings -> Moor inspector. There should be a button to test/adapt your configuration. |
Didn't see this before. Same thing there. My colleague has the same result in the settings but he can connect to a device. |
Does it say anything specific in the test configuration results? Can you include it here? |
No but now I configured the correct ADB path and installed
|
Curious, perhaps he had it installed as a transitive dependency from somewhere else. As I don't have a readily available iPhone or iPad lying around I can't really check right now. When working with the inspector I am usually running on an ios simulator anyway. I will have to find some time/devices to see if I can reproduce it |
@kuhnroyal can you provide me the output of: |
I have restarted everything, disabled MacOs firewall but no success.
I have 2 iOS simulators running and one attached device. This is the device that is returned.
|
It also is not showing any Android emulator or devices. |
Ok, so it is finding the connected device (idevice_id never finds simulators, they work differently). |
Yes the app is running, I also verified that the "server started with port number" appears in the logs.
|
If you try to connect directly to the ipad by entering the port number you see in the logs and it's IP address, does it work then? |
No, I have tried this but I will try again with the disabled firewall. |
I don't know about your network setup, but on LAN the firewall should not kick in. |
Well, it does not help that I was trying to parse the IP address as the port number 🤦 I will fix this in a new release but this takes time as it needs to be reviewed by JetBrains. If you still happen to have an ios simulator running could you run the following command: Eg: |
Hmm that worked for the simulator, also seems to work every time I reinstall. |
Ok, so it seems the library is working, that's something. So now we need to figure out why it is not showing up on your device explorer... In IntelliJ -> Help -> Diagnostic Tools -> Debug Log Settings (that the path for the most recent IntellIJ version at least). You can add categories to log. Add: |
Need to clarify my last statement. After I executed the command, the device shows up in the plugin. And it works with this simulator afterwards without the command. Gonna test more tomorrow. |
That's great to hear, even though it makes zero sense to me why that would have worked 🤔 |
Tested again with real devices and 0.1.3 of the plugin but no success. There is nothing in the logs after enabling logging, just some Git/Sonar plugins.
|
If your devices are on the same network, can you execute |
Yes it does:
But nothing in the plugin window and no manual connection with ip/port possible. |
Do you have a proxy set in your IntelliJ by any chance? That's the only thing I can imagine right now why it would not work on your setup: sockets created from inside the IDE cannot access your localhost (that does not make any sense to me though) |
Nope, does the plugin start the announcement server and the devices register with it or how does this work? |
The devices themselves run a single announcement server per device (using automatic master/slave primary/secondary architecture). The plugin loops over all found devices (adb devices, idevices, localhost) and asks the announcement server about all the running clients on that device (this echo -e '\x01' | nc ...). The way it connects to the announcement server is by creating a TCP proxy to the target device (using iproxy, adb forward or without proxy for localhost) to the announcement port (6395). This proxy forwards localhost connections to that port so plugin and device can communicate directly. That means that if for some reason, the plugin cannot connect a TCP socket on the address returned by the JVM's |
Thanks for the explanation. I will try tu run some tests with real android devices tomorrow. |
I have just released another update to the plugin, I am afraid it does not address the issues you have been having as I am still not sure how/why this is happening. Any luck during testing? |
Hi, does this plugin work on Windows? I am using Android Studio 4.2 Beta4 and use only for Android app development. How should I configure the 'select a device to connect to' options. I was able to get the emulated devices IP from Phone status but not sure what port I should use. |
@rajumb502 please do not highjack an unrelated ticket to ask for help, create a new one instead. |
I tried this again today with 0.2.0 but no luck.
Starting Nmap 7.91 ( https://nmap.org ) at 2021-04-26 13:33 CEST
Nmap scan report for 192.168.178.125
Host is up (0.0061s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
49152/tcp open unknown
62078/tcp open iphone-sync
Nmap done: 1 IP address (1 host up) scanned in 14.47 seconds |
I didn't find a place to report problems with the IntelliJ plugin so i'll post here for now.
When I try to connect, the IntelliJ dialog displays
ADB/iDevice path not found
with a yellow warning sign.I am not sure what to do, this worked previously at some point.
Any ideas?
The text was updated successfully, but these errors were encountered: