ahkpp icon indicating copy to clipboard operation
ahkpp copied to clipboard

cant find file error whenever saving v1 script that includes other scripts

Open rsa17826 opened this issue 8 months ago • 0 comments

For troubleshooting assistance, refer to the troubleshooting guide

Description

2025-04-24T13:57:44.488Z buildPaths error building C:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\AutoXYWH.ahk 2025-04-24T13:57:44.488Z cannot open file:///c%3A/Users/User/Desktop/non%20constant%20ahk%20scripts/script%20manager/C%3A/Users/User/Desktop/non%20constant%20ahk%20scripts/script%20manager/AutoXYWH.ahk. Detail: Unable to read file 'c:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\AutoXYWH.ahk' (Error: Unable to resolve nonexistent file 'c:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\AutoXYWH.ahk') 2025-04-24T13:57:44.502Z buildPaths error building C:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\ShellContextMenu.ahk 2025-04-24T13:57:44.502Z cannot open file:///c%3A/Users/User/Desktop/non%20constant%20ahk%20scripts/script%20manager/C%3A/Users/User/Desktop/non%20constant%20ahk%20scripts/script%20manager/ShellContextMenu.ahk. Detail: Unable to read file 'c:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\ShellContextMenu.ahk' (Error: Unable to resolve nonexistent file 'c:\Users\User\Desktop\non constant ahk scripts\script manager\C:\Users\User\Desktop\non constant ahk scripts\script manager\ShellContextMenu.ahk')

it appears to be joining the directory that it looking for the script in with the full path of the script instead of the script name

Reproduction steps

Steps to reproduce the behavior:

  1. open a v1 script
  2. save it
  3. See error

Expected behavior

no error

Additional context

script i found the bug while editing

rsa17826 avatar Apr 24 '25 14:04 rsa17826