tidev / vscode-titanium

Titanium SDK development tools and UI package for Visual Studio Code.
Apache License 2.0
38 stars 19 forks source link

"Titanium: Fetching environment information" goes on forever #1234

Open hrqmonteiro opened 3 months ago

hrqmonteiro commented 3 months ago

Screenshot 2024-05-05 at 1 33 13 PM Screenshot 2024-05-05 at 1 33 24 PM

It just never leaves this state, it is like this for two hours. I tried creating a lot of new projects using the Extension and on the CLI but when i open the folder the extension just keeps saying this forever.

It also doesn't detect any Android Emulator or iOS Simulator

ewanharris commented 3 months ago

👋🏻 @hrqmonteiro, if you try running ti info in the console does it return successfully?

hrqmonteiro commented 3 months ago

It returned this:

~/hello   ti info
Titanium CLI v6.1.1, SDK v12.3.0.GA, https://titaniumsdk.com
Copyright TiDev, Inc. 4/7/2022-Present. All Rights Reserved.

Want to help? https://tidev.io/donate or https://tidev.io/contribute

Operating System
  Name                        = macOS
  Version                     = 13.6.6
  Architecture                = 64bit
  # CPUs                      = 6
  Memory                      = 16.0GB

Node.js
  Node.js Version             = 18.20.2
  npm Version                 = 10.5.0

Titanium CLI
  CLI Version                 = 6.1.1
  node-appc Version           = 1.1.6

Titanium SDKs
  12.3.0.GA
    Version                   = 12.3.0
    Install Location          = /Users/hrq/Library/Application Support/Titanium/mobilesdk/osx/12.3.0.GA
    Platforms                 = iphone, android
    git Hash                  = 34a9edf14d
    git Timestamp             = 2/16/2024 15:06
    node-appc Version         = 1.1.6

Mac OS X
  Command Line Tools          = installed

Intel® Hardware Accelerated Execution Manager (HAXM)
  Not installed

Java Development Kit
  Version                     = 17.0.11_0
  Java Home                   = /usr/local/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home

Genymotion
  Path                        = not found
  Genymotion Executable       = not found
  Genymotion Player           = not found
  Home                        = not found

VirtualBox
  Executable                  = not found
  Version                     = unknown

Android SDK
  Android Executable          = not found
  ADB Executable              = /Users/hrq/Library/Android/sdk/platform-tools/adb
  SDK Path                    = /Users/hrq/Library/Android/sdk

Android NDK
  NDK Path                    = not found
  NDK Version                 = not found

Android Platforms
  1) android-33
    Name                      = Android 13
    API Level                 = 33
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      =
    Path                      = /Users/hrq/Library/Android/sdk/platforms/android-33
  2) android-34
    Name                      = Android 14 (not supported by Titanium SDK 12.3.0.GA, but may work)
    API Level                 = 34
    Revision                  = 1
    Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
    ABIs                      = x86_64
    Path                      = /Users/hrq/Library/Android/sdk/platforms/android-34

Android Add-Ons
  None

Android Emulators
  Pixel 3a API 34
    ID                        = Pixel_3a_API_34
    SDK Version               = Android 14 (API level 34)
    ABI                       = x86_64
    Skin                      = pixel_3a
    Path                      = /Users/hrq/.android/avd/Pixel_3a_API_34.avd
    SD Card                   = /Users/hrq/.android/avd/Pixel_3a_API_34.avd/sdcard.img
    Google APIs               = yes

Genymotion Emulators
  None

Connected Android Devices
  None

Xcode
  15.2 (build 15C500b) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 17.2
    iOS Simulators            = 17.2
    Watch SDKs                = 10.2
    Watch Simulators          = none
    Supported by TiSDK 12.3.0.GA = maybe
    EULA Accepted             = yes
    Teams                     = none

iOS Keychains
  login.keychain-db           = /Users/hrq/Library/Keychains/login.keychain-db
  System.keychain             = /Library/Keychains/System.keychain

iOS Development Certificates
/Users/hrq/Library/Keychains/login.keychain-db
  Apple Development: Henrique Rezende (T4Q56VAN42)
    Not valid before          = 5/6/2024 3:42 PM
    Not valid after           = 5/6/2025 3:42 PM

iOS App Store Distribution Certificates
  None

Apple WWDR Certificate
  Apple WWDR                  = installed

Development iOS Provisioning Profiles
  iOS Team Provisioning Profile: com.hisnek.ivi.IviMobile
    UUID                      = abbafbd5-e1cd-4232-abc9-c37a45025487
    App Prefix                = QVRWV83N5U
    App Id                    = com.hisnek.ivi.IviMobile
    Date Created              = 5/6/2024 3:52 PM
    Date Expired              = 5/6/2025 3:52 PM
    Managed                   = Yes and is NOT compatible with Titanium

App Store Distribution iOS Provisioning Profiles
  None

Ad Hoc iOS Provisioning Profiles
  None

Enterprise Ad Hoc iOS Provisioning Profiles
  None

iOS Simulators
17.2
  iPad Air (5th generation) (ipad)
    UDID                      = 9D9AC76F-E822-4803-A1CB-C45602058D2B
    Supports Watch Apps       = no
  iPad (10th generation) (ipad)
    UDID                      = 23AD62F2-4E8D-445F-8362-BB5AE6F35385
    Supports Watch Apps       = no
  iPad mini (6th generation) (ipad)
    UDID                      = 749DC194-8089-4C51-97E6-B22008BBAF35
    Supports Watch Apps       = no
  iPad mini (6th generation) (ipad)
    UDID                      = 06342DEC-DDDC-45C5-B5F3-93272F0A6A54
    Supports Watch Apps       = no
  iPad Pro (11-inch) (4th generation) (ipad)
    UDID                      = AE4AEF83-3727-45FC-84A7-306D56FCAE3A
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (6th generation) (ipad)
    UDID                      = D1A2C069-E0A3-4254-A777-FE0A524304B3
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (6th generation) (ipad)
    UDID                      = 37BDEC60-38E7-45CB-9E2C-C232454F768E
    Supports Watch Apps       = no
  iPhone SE (3rd generation) (iphone)
    UDID                      = B2C70BA1-E008-44C6-AC81-65C650F23F3E
    Supports Watch Apps       = yes
  iPhone SE (3rd generation) (iphone)
    UDID                      = D9E05D56-CBCB-4F27-A291-9509F5BD345E
    Supports Watch Apps       = yes
  iPhone 15 (iphone)
    UDID                      = 73F41884-B247-4269-93B0-FF31FC4B410B
    Supports Watch Apps       = yes
  iPhone 15 Plus (iphone)
    UDID                      = 08D22216-7B28-43C5-9EC3-EEB475DAD065
    Supports Watch Apps       = yes
  iPhone 15 Pro (iphone)
    UDID                      = E1F93998-DA39-44EF-AF57-31FB2B7EEAC3
    Supports Watch Apps       = yes
  iPhone 15 Pro Max (iphone)
    UDID                      = 782BFF95-0AC5-4869-9188-C0FDD8D69899
    Supports Watch Apps       = yes

WatchOS Simulators
  None

Connected iOS Devices
  None

Android Issues
  !  Android API Android 14 (android-34) is too new and may or may not work with Titanium SDK 12.3.0.
     The maximum supported Android API level by Titanium SDK 12.3.0 is API level 33.

iOS Issues
  !  Unable to find any valid iOS adhoc provisioning profiles.
     This will prevent you from packaging apps for adhoc distribution.
     You will need to log in to
     https://developer.apple.com/account/ios/certificate/certificateList.action?type=distribution
     with your Apple Developer account, then create, download, and install a profile.

  !  Unable to find any valid iOS distribution provisioning profiles.
     This will prevent you from packaging apps for AppStore distribution.
     You will need to log in to
     https://developer.apple.com/account/ios/certificate/certificateList.action?type=distribution
     with your Apple Developer account, then create, download, and install a profile.

  !  Unable to find any valid iOS production distribution certificates.
     This will prevent you from packaging apps for distribution.
     You will need to log in to
     https://developer.apple.com/account/ios/certificate/certificateList.action?type=distribution
     with your Apple Developer account, then create, download, and install a certificate.

  !  Xcode 15.2 may or may not work with Titanium SDK 12.3.0.
     The maximum supported Xcode version by Titanium SDK 12.3.0 is Xcode 14.x.

~/hello took 3s 
ewanharris commented 3 months ago

There doesn't look to be anything there that appears problematic, the extension simply runs ti info -o json and should report any errors that occur..

Usually we've seen that these issues tend to be environmental, potentially things like an issue with the Node.js install (tools like asdf can cause an issue) and although theoretically it shouldn't be an issue as far as I'm aware, VS Codium isn't really tested and I don't know how much usage this extension sees with it. The other possible thing is if it's choking generating completions data does /Users/hrq.titanium/completions/ exist?

gouldjw commented 2 months ago

Editing my previous attempt at a possible answer:

I initially had a lot of problems with both the Node & JDK versions installed on my Mac, including this issue with CLI v.6.x.x. I ended up getting it all to work (mostly through trial and error) with the following (I remember trying later versions of Node, but I don't remember if 18 was one of them):

JDK: 22.0.1_8-16 Node: 16.20.2

However, I would recommend, rather than downgrading Node, that you upgrade to CLI v7.1.0 and upgrade Node to version 20. Here's my current working magical combination:

CLI: 7.1.0 JDK: 22.0.1_8-16 Node: 20.14.0

I know CLI v.7.1.0 is supposed to work with Node 18, but I kept getting an error insisting it required v.20, so that's what I upped it to and it worked!