Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bunam opened this issue Feb 23, 2024 · 7 comments
Open

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

bunam opened this issue Feb 23, 2024 · 7 comments

Comments

@bunam
Copy link

bunam commented Feb 23, 2024

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
Copy link

vanowm commented Feb 26, 2024

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
Copy link
Author

bunam commented Feb 26, 2024

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
Copy link
Author

bunam commented Feb 26, 2024

i have to add :

  • i only have files in that folder
  • i have tried on W10 : same trouble

@vanowm
Copy link

vanowm commented Apr 3, 2024

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.

@bunam
Copy link
Author

bunam commented Sep 10, 2024

Ok sometimes this form was working :
#include "mylibrary.au3"
i'm using now
#include <mylibrary.au3>
thank's !!!

@bunam
Copy link
Author

bunam commented Sep 30, 2024

At this time it's go back to KO

  • VSC : Version : 1.93.1
  • Autoit VSC extension : Version : v1.0.12
  • Autoit exe : 3.3.16.1

I have double check the presence of my include folder there :
Get-ItemPropertyValue -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\AutoIt v3\Autoit\" -Name "Include"
and in the autoit.includePaths in
code %APPDATA%\Code\User\settings.json

Function code located in
#include <mylibrary.au3>
couldn't be reached by hitting F12 or Ctrl + Click

@vanowm
Copy link

vanowm commented Sep 30, 2024

Not sure why I couldn't reproduce this previously, it sure reproducible now.
It seems to be tight up with whatever is displayed in secondary side bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants