Closed jasonkneen closed 5 years ago
Looking at the code in debug mode, I was able to find the function that's failing and wrote out the version
variable which was coming back as:
_:"6.1.2.GA"
$:Object
platform:"android"
Changed the function (for testing) to:
function getSDKCompletionsFileName(version) {
console.error(version)
return "/users/jkneen/.titanium/completions/titanium/8.0.0.GA/completions.json"
//return path.join(os_1.homedir().toString(), '.titanium', 'completions', 'titanium', version, 'completions.json');
}
and works fine so not sure where 6.1.2.GA is coming from
Yeah I think it's down to that, I can get the same error when my sdk-version
is set like so <sdk-version platform="android">8.0.0.GA</sdk-version>
, the inspector seems to match what you pasted above too
Ahhh -- dammit -- got it -- stupid TiApp.xml has TWO sdk-version tags and one is for Android -- they've used the platform= attribute but that doesn't work for this tag so it's picking up the second one which is ANDROID and 6.1.2!
<sdk-version platform="android">6.1.2.GA</sdk-version>
<sdk-version platform="iPhone">7.5.1.GA</sdk-version>
doh!
That's a new one to me 😆, I'll reopen this though so we can improve the validation and error reporting rather than having node throw this
👍
Describe the Bug
Get the following error when launching a workspace with the extension installed:
"Error generating autocomplete suggestions. The "path" argument must be of type string. Received type object"
Steps to reproduce the Bug
Steps to reproduce the behavior, e.g.:
Screenshot of error
https://cl.ly/a4fc866015b4
Managed to get log output: