Closed Danp2 closed 1 year ago
That is strange, I'm not getting any errors...
I get these errors when opening a project folder (even one not AutoIt related). To be clear, I didn't experience this with v1.0.10 but I do with v1.0.11.
Here are my smartHelp
settings since this error appears to be related --
"autoit.smartHelp": {
"_AD_": {
"chmPath": "C:\\Users\\danpo\\AppData\\Autoit.Advanced.Help\\AD.chm",
"udfPath": [
"AD.au3"
]
},
"_OL_": {
"chmPath": "C:\\Users\\danpo\\AppData\\Autoit.Advanced.Help\\OutlookEX.chm",
"udfPath": [
"OutlookEX.au3",
"OutlookEX_Base.au3"
]
},
"_TS_": {
"chmPath": "C:\\Users\\danpo\\AppData\\Autoit.Advanced.Help\\TaskScheduler.chm",
"udfPath": [
"TaskScheduler.au3"
]
},
"_WD_": {
"chmPath": "C:\\Users\\danpo\\AppData\\Autoit.Advanced.Help\\au3WebDriver.chm",
"udfPath": [
"C:\\Users\\danpo\\OneDrive\\Documents\\GitHub\\WebDriver\\wd_core.au3",
"C:\\Users\\danpo\\OneDrive\\Documents\\GitHub\\WebDriver\\wd_helper.au3",
"C:\\Users\\danpo\\OneDrive\\Documents\\GitHub\\WebDriver\\wd_cdp.au3",
"C:\\Users\\danpo\\OneDrive\\Documents\\GitHub\\WebDriver\\wd_capabilities.au3"
]
}
}
So the issue is because util.js
is using ai_config.js
and ai_config.js
is using util.js
The only way I could think of to fix this is to move findFilepath
function into ai_config.js
@vanowm Interesting find.
From the logs --
It appears to be coming from this line -- https://github.com/loganch/AutoIt-VSCode/blob/cc931607ae0b3fdae964e8caa940b159ae17eaae/src/ai_config.js#L159
This is what appears when debugging with Uncaught Exception breakpoints enabled --
Any thoughts @vanowm?