{ "id": "171215", "key": "TIMOB-25823", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-02-28T14:03:39.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "57075", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "171520", "key": "TIMOB-25968", "fields": { "summary": "Liveview: Write more information to pidfile, such as port and ip data", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "eboateng", "key": "eboateng", "displayName": "Ebenezer Boateng", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-02-19T10:48:23.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h5.Description\r\n\r\nOn Windows it is generally necessary to use define a custom IP for liveview to use due to the number of network interfaces that can be defined on a developers machine (docker vethernet, windows mobile emulator vethernet etc.), however when the liveview hook attempts to stop running servers it uses a hardcoded value of {{http://localhost:8324/kill}}, this should be dynamic using the defined port/ip\r\n\r\nh5.Steps to reproduce\r\n\r\nYou need to define a custom port for liveview usage using {{--liveview-fport 1234}} (you can define this in the liveview config section of Studio too if not using the cli)\r\n# Build with liveview enabled and a custom port\r\n# Build with liveview enabled and a custom port again\r\n\r\nh5.Actual\r\n\r\nOn the second build the log {{Address in use, retrying...}} will repeatedly be shown in the console as the liveview server couldn't be killed\r\n\r\nh5.Expected\r\n\r\nLiveview server should be killed between runs", "attachment": [], "flagged": false, "summary": "Liveview: Server not stopped when using a custom ip or port", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Liveview: 1.2.1", "comment": { "comments": [ { "id": "445587", "author": { "name": "zo0m", "key": "zo0m", "displayName": "Igor Kalashnikov", "active": true, "timeZone": "Europe/Helsinki" }, "body": "My workaround is to use command:\r\n\r\npowershell -Command \"Stop-Process -Id (Get-NetTCPConnection -LocalPort *liveview-fport*).OwningProcess -Force\"", "updateAuthor": { "name": "zo0m", "key": "zo0m", "displayName": "Igor Kalashnikov", "active": true, "timeZone": "Europe/Helsinki" }, "created": "2019-01-23T21:01:04.000+0000", "updated": "2019-01-23T21:01:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }