genius257 / vscode-autoit

AutoIt language extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=genius257.autoit
MIT License
4 stars 3 forks source link

Issue with standard include files #27

Closed Danp2 closed 1 year ago

Danp2 commented 1 year ago
#include <array.au3> ; this isn't working
#include "array.au3" ; this works fine, linking to "C:\Program Files (x86)\AutoIt3\Include\array.au3"

Settings.json file contains

        "autoit3.userDefinedLibraries": [
          "C:\\Users\\danpo\\Dropbox\\Autoit UDFs"
        ],
        "autoit3.installDir": "C:\\Program Files (x86)\\AutoIt3\\"

Observations when using <> as delimiters --

P.S. I wanted to investigate this myself, but all my breakpoints appeared as unbound. Can you provide guidance on this?

genius257 commented 1 year ago

https://github.com/genius257/vscode-autoit/blob/8116ca85d9f21ccbd255d174d193ffde335db4d2/server/src/autoit/Workspace.ts#L135

Seems to be caused by this line returning null instead of x, if a match was found previously. I will try to fix and verify later today :)

P.S. I wanted to investigate this myself, but all my breakpoints appeared as unbound. Can you provide guidance on this?

Are you running the code using the "Client + Server" option from the drop-down list in the debug tab?

Danp2 commented 1 year ago

Are you running the code using the "Client + Server" option from the drop-down list in the debug tab?

No. I'll give that a shot again and report back.

Danp2 commented 1 year ago

@genius257 I tried "Client + Server", but something still seems amiss. I'm going to move this discussion to a separate issue.

genius257 commented 1 year ago

Should now be fixed with version 1.2.3 :smile: