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

Why IntelliSense offers things from not included files? #352

Closed
Gh0sTG0 opened this issue Mar 20, 2023 · 3 comments
Closed

Why IntelliSense offers things from not included files? #352

Gh0sTG0 opened this issue Mar 20, 2023 · 3 comments
Assignees
Labels
bug something isn't working intellisense autocompletion, suggestions, etc.

Comments

@Gh0sTG0
Copy link

Gh0sTG0 commented Mar 20, 2023

Description

Hi.
Looks like it's some bug (feature? if feature then how turn it off?) with that IntelliSense somehow analyzes all files in folder and subfolders, and tries to give me things from other files ignoring if they are included or not.
I have only this thing activated. No other extensions active.

For example, when I'm trying to IntelliSense MsgBox, it shows me big list of functions with one that will add MsgBox(msg) (red pointer on pic) if pressed on top of lists. Correct msgbox, ... (green pointer) is somewhere close to bottom.

I'm not sure from where exact MsgBox() function is, but I see some number of functions from \MsgBox2_AHK\AHK1\TheArkive_MsgBox2_Example.ahk file, like MsgBox2ExClose(hwnd) (can be seen on pic, 2nd right after msgbox() one), so I'm going to use this one as an example.

I tried to work in new completely empty folder with only one file that is I'm working in and that thing not appears, only correct ones are shown there.

Reproduction steps

Steps to reproduce the behavior:

  1. In opened folder I have an empty .ahk file. In this file I will try to msgbox.
  2. Plus I have some number of other files, including \MsgBox2_AHK\AHK1\TheArkive_MsgBox2_Example.ahk file. TheArkive_MsgBox2_Example file is NOT #include into opened .ahk file, it's completely empty.
  3. Try to start writing ms
  4. See that for some reasons IntelliSense shows you things that are in one folder, but not included in current file.

Expected behavior

I expect, that only base ahk + opened file's content + #include's will be shown in IntelliSense offers.

Additional context

image

PS Just to make things clear: ~95% of my .ahk scripts are small one-file projects, that not need to be allocated to a separate project-folder, that's why they are in one big folder that contains things that can be not included in current one.

@Gh0sTG0 Gh0sTG0 added the bug something isn't working label Mar 20, 2023
@mark-wiemer
Copy link
Member

Yes, this is a long-standing issue, thanks for pointing it out. It's closely related to #338 and likely some other open issues.

@Gh0sTG0
Copy link
Author

Gh0sTG0 commented Mar 22, 2023

Yes, this is a long-standing issue, thanks for pointing it out. It's closely related to #338 and likely some other open issues.

Thanks for your answer. Hope that can be fixed without rewriting all intellisence function =)

@mark-wiemer mark-wiemer added the intellisense autocompletion, suggestions, etc. label Jun 21, 2023
@mark-wiemer mark-wiemer moved this to Todo in AHK++ Aug 18, 2024
@mark-wiemer
Copy link
Member

Closing as a dupe of #205

@mark-wiemer mark-wiemer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in AHK++ Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working intellisense autocompletion, suggestions, etc.
Projects
Status: Done
Development

No branches or pull requests

2 participants