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

#Include tries to resolve relative path but adds script file name #432

Closed
stavros-k opened this issue Nov 6, 2023 · 5 comments
Closed

Comments

@stavros-k
Copy link

Plugin Version: v2.2.6

StartApps
├── exits
│   └── exit`.ahk
├── partials
│   ├── Constants.ahk
│   ├── FillAppList.ahk
│   └── WriteExample.ahk
├── StartApps2.ahk
└── StartApps2.ini

In StartApps2.ahk

#Include "partials/Constants.ahk"

Produce an problem on vs-code

'~/auto-start-apps-script/StartApps/StartApps2.ahk/patials/Constants.ahk' not exist

Notice the StartApps2.ahk in the path!

Note that this works fine when run.
I can get the error to go away by doing #Include "../partials/Constants.ahk"
But of course this does not work when run.

Thanks

@thqby
Copy link
Owner

thqby commented Nov 6, 2023

Cannot reproduce the issue.

@stavros-k
Copy link
Author

Hmm, I've tried on another Windows machine and I can't reproduce there.
Is there any chance that it does not work on Linux? (The extension, I know that AHK does not!)

@thqby
Copy link
Owner

thqby commented Nov 7, 2023

Different path slashes may produce unexpected results.

@stavros-k
Copy link
Author

Hmm, changed slashes to \ but same effect :/
I suppose we can close this, since I cant repro in a windows machine.
Might be something on my system

@thqby
Copy link
Owner

thqby commented Nov 12, 2023

This is handled differently in the internal function uriToFsPath.

@thqby thqby closed this as completed in b17d6c4 Nov 21, 2023
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