loganch / AutoIt-VSCode

AutoIt Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Damien.autoit
MIT License
73 stars 24 forks source link

autoit.includePaths set but F12 didn't work any more #214

Open bunam opened 6 months ago

bunam commented 6 months ago

Hello,

To open the settings :

code %APPDATA%\Code\User\settings.json

i have my common lib folder there :

  "autoit.includePaths": [
    "C:\\DEV\\CODE\\processData\\Interfaces\\_Lib"
  ],

also the reg is set the same

PS C:\DEV\CODE\processData> (Get-ItemProperty -Path "HKCU:SOFTWARE\AutoIt v3\Autoit\").Include
C:\DEV\CODE\processData\Interfaces\_Lib

but F12 on a function stop working

i would like to test the extention but i didn't find how to build them

i'm on W11

vanowm commented 6 months ago

Confirming the issue. Also note, that Alt + I finds and opens included file just fine, however, if include path is not added to the registry, it shows as error in problems tab "can't open include file" and "function undefined". Might be related to #164

bunam commented 6 months ago

Confirming the issue. Also note, that Alt + I finds and opens included file just fine, however, if include path is not added to the registry, it shows as error in problems tab "can't open include file" and "function undefined". Might be related to #164

The same there for Alt + I

bunam commented 6 months ago

i have to add :

vanowm commented 4 months ago

I'm no longer able reproduce this issue. How do you include file in the script? As

#include <mylibrary.au3>

or as

#include "mylibrary.au3"

The first is to use include directory and second will use relative to script location.