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

"Failed to get environment variables" on startup #551

Open
Martin-Milbradt opened this issue Oct 18, 2024 · 17 comments
Open

"Failed to get environment variables" on startup #551

Martin-Milbradt opened this issue Oct 18, 2024 · 17 comments
Assignees
Labels
AHK v2 exclusive to AHK v2 bug something isn't working

Comments

@Martin-Milbradt
Copy link

Description

On VSCode startup, "Failed to get environment variables" is displayed as an error.
image

Reproduction steps

Steps to reproduce the behavior:

  1. Open VSCode
  2. Open any .ahk file
  3. See error

Expected behavior

The error doesn't show up or specifies how to fix it.

Additional context

  • I've reinstalled the extension and reset all settings to default already.
  • There is no output regarding that error from the AHK++ plugin in the Output tab.
  • The plugin seems to work fine otherwise.
@Martin-Milbradt Martin-Milbradt added the bug something isn't working label Oct 18, 2024
@mark-wiemer
Copy link
Member

I may need some more details. Please refer to thqby/vscode-autohotkey2-lsp#349 for a similar issue as this is likely related to v2 support.

Does your ahk++.v2.file > interpreterPath resolve to an exe (not a symlink?)

image

Are you able to uninstall AHK++ and use thqby's "AutoHotkey v2 language support extension" without issue? If so, can you validate the version of thqby's extension for reference (to the right of the extension name)?

image

@mark-wiemer mark-wiemer added the question needs more clarity in order to take action label Oct 18, 2024
@Martin-Milbradt
Copy link
Author

I have a hard time understanding what I need to do, please point me in the right direction if I'm not understanding you correctly:

Environment variables are set

MsgBox A_Desktop "`n" A_MyDocuments "`n" A_AhkPath "`n" A_ProgramFiles "`n" A_Programs

image

interpreterPath is exe

image
image
I don't have an AutoHotkey64.ahk for some reason, though (reinstalling didn't help).

AutoHotkey v2 Language Support

Works, but keeps complaining as I still have a mix of v1 and v2 scripts.
image
It also sometimes takes ages to save because of "getting code actions".
image

@mark-wiemer
Copy link
Member

Ah, the problem here is that your .exe is a symlink, I'm assuming you downloaded from the store? Regardless, working with symlinks is a known issue and I'm working to resolve it in #496. Feel free to continue the discussion in that issue, I'm closing this one as a duplicate for now :)

I'd recommend changing your AHK++.v2.file > interpreterPath to point to AutoHotkey64.exe in the short term as a workaround, please let me know if that doesn't resolve your issue.

@mark-wiemer mark-wiemer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2024
@github-project-automation github-project-automation bot moved this to Done in AHK++ Oct 24, 2024
@mark-wiemer mark-wiemer added duplicate this item already exists AHK v2 exclusive to AHK v2 and removed question needs more clarity in order to take action labels Oct 24, 2024
@Martin-Milbradt
Copy link
Author

  • I downloaded it from the ahk website (https://autohotkey.com/).
  • interpreterPath already points to AutoHotkey64.exe (see screenshots above), or am I misunderstanding you

Happy to wait for the other fix, and thanks for your work!

@fade2gray
Copy link

Just a thought, is it possible you've used the same path for both the v1 and v2 interpreters?

I have ...
v1: C:\Program Files\AutoHotkey\AutoHotkeyU64.exe
v2: C:\Program Files\AutoHotkey\v2\AutoHotkey64.ex

@Martin-Milbradt
Copy link
Author

My v1 interpreter is C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkeyU64.exe

@fade2gray
Copy link

It seems you may have installed AutoHotkey v2 before v1, hence why v1's installation path includes the 'v1.1.37.02' version directory. You need to edit the default v1 paths in the AHK++settings.

Screenshot 2024-10-24 204212

@mark-wiemer
Copy link
Member

Hi @Martin-Milbradt, the issue is that the file you're pointing to is a symlink file, and AHK v2 support doesn't parse those in a very friendly way right now. Here is the specific part of the screenshot you shared:

AHK exe has "symlink" in the file type

Changing AutoHotkey.exe to AutoHotkey64.exe in your v2 interpreterPath should resolve the issue for you, please let me know if it does not :) you'll see the ...64.exe file in your screenshot isn't a symlink, that's why it should work. Symlink issues will be resolved in #496

Sorry for the confusion earlier.

And @fade2gray, your suggestions are good, but this issue is specific to the v2 interpreter, especially if you look at Martin's earlier screenshots.

@Martin-Milbradt
Copy link
Author

I still feel like I'm missing something, I think it alrady points to the ...64.exe:
image

@mark-wiemer
Copy link
Member

mark-wiemer commented Oct 25, 2024

I'm so sorry, it was me that was missing something! I didn't notice that. Hmm, I'll reopen this one and think about it some more, sorry for the inconvenience.

@mark-wiemer mark-wiemer reopened this Oct 25, 2024
@mark-wiemer mark-wiemer removed the duplicate this item already exists label Oct 25, 2024
@mark-wiemer
Copy link
Member

mark-wiemer commented Oct 25, 2024

OK, looking at the code I see server.ts#initpathenv runs multiple times to get the env vars, and if it fails to get a_vars.mydocuments, it shows the "Failed to get environment variables" warning.

I'll see if I can add logs and push those to a future release so that folks can send in log files for analysis. The function is pretty complicated!

@mark-wiemer mark-wiemer moved this from Done to Todo in AHK++ Oct 25, 2024
@mark-wiemer
Copy link
Member

Hey @Martin-Milbradt, I know you shared it earlier, but can you run this specific script to get the contents of the a_mydocuments value? It's the script the extension uses to extract variable contents:

#Requires AutoHotkey v2.0

#NoTrayIcon
#Warn All, Off
s := "", FileAppend
for _, k in ["a_mydocuments"]
    try if SubStr(k, 1, 2) = "a_" && !IsObject(v := %k%)
        s .= SubStr(k, 3) "|" v "\`n"
MsgBox(s)

@Martin-Milbradt
Copy link
Author

Martin-Milbradt commented Oct 26, 2024

image

mydocuments|C:\Users\TrueM\OneDrive\Documents\

@mark-wiemer
Copy link
Member

Alright, the logs will help and when 6.3.1 comes out I'll ping you again asking for the log info :D sorry for the delay, but I've also confirmed that this logic isn't critical to the app.

When you get this error, it just means that AHK++ isn't able to automatically pull from your user library. It shouldn't stop you from doing just about everything else though :)

I'll downgrade this to a warning as well.

@mark-wiemer
Copy link
Member

Hi @Martin-Milbradt, I released 6.4.0 which should include more logs. Can you open the output view (Ctrl+Shift+U), go to the "AHK++ (v2)" channel, and paste the output here as plaintext? There may be a lot, but that's OK. You're welcome to link to a GitHub gist or whatever else works too.

image

@Martin-Milbradt
Copy link
Author

Excluded files:
	(none)
Excluded folders:
	(none)
Starting initpathenv(false, true)
runscript executePath c:/Program Files/AutoHotkey/v2/AutoHotkey64.exe
runscript result 
data: 
Starting initpathenv(false, false)
runscript executePath c:/Program Files/AutoHotkey/v2/AutoHotkey64.exe
runscript result 
data: 
a_vars { space: ' ', tab: '\t' }
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/clean_prompts.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/immer_v2.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/group_test.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/telegram.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/metr.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/ctrlvconsole.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/modules/utils_v1.ahk
Document opened: file:///c%3a/program%20files/autohotkey/ux/templates/minimal%20for%20v2.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/test.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/bahnfahrten.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/regular_popup.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/modules/utils.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/obsidian.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/hearthstone.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/modules/window_manager.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/regular_popup_v1.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/translate.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/immer.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/null_movement.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/ferrero%20reisefieber.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/ferrero%20reisefieber_checknotepad.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/nutella%20bahnsinn.ahk
Configuration changed
[Info  - 12:27:45 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/CtrlVConsole.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:45 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Modules/utils_v1.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:46 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/Bahnfahrten.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/translate.ahk
Configuration changed
Configuration changed
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/valheimklickspam.ahk
[Info  - 12:27:46 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/regular_popup_v1.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:48 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Immer.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/archiv/vwfs.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/bahncode%20copy%20pase.ahk
[Info  - 12:27:49 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/Ferrero%20Reisefieber.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/create_file.ahk
[Info  - 12:27:49 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/Ferrero%20Reisefieber_checkNotepad.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/dev/env.ahk
[Info  - 12:27:49 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/Nutella%20Bahnsinn.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/dev/guid.ahk
New configuration: {
  compiler: {
    compileIcon: '',
    compilerPath: 'C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe',
    useMpress: false
  },
  general: { showOutput: 'always' },
  menu: { showDebugButton: true },
  v1: {
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkeyU64.exe',
      templateSnippetName: 'AhkTemplateV1'
    },
    formatter: {
      allowedNumberOfEmptyLines: 1,
      indentCodeAfterIfDirective: true,
      indentCodeAfterLabel: true,
      preserveIndent: false,
      trimExtraSpaces: false
    },
    intellisense: { maximumParseLength: 10000 }
  },
  v2: {
    completionCommitCharacters: { Class: '.(', Function: '(' },
    debugConfiguration: {
      port: '9002-9100',
      useAnnounce: 'detail',
      useAutoJumpToError: true,
      useDebugDirective: true,
      usePerfTips: true
    },
    diagnostics: { classNonDynamicMemberCheck: true, paramsCheck: true },
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey64.exe',
      maxScanDepth: 2,
      templateSnippetName: 'AhkV2Milli'
    },
    formatter: {
      arrayStyle: 'none',
      braceStyle: 'One True Brace',
      breakChainedMethods: false,
      ignoreComment: false,
      indentString: '    ',
      indentBetweenHotIfDirectives: false,
      keywordStartWithUppercase: false,
      maxPreserveNewlines: 2,
      objectStyle: 'none',
      preserveNewlines: true,
      spaceBeforeConditional: true,
      spaceAfterDoubleColon: true,
      spaceInEmptyParen: false,
      spaceInOther: true,
      spaceInParen: false,
      switchCaseAlignment: false,
      symbolWithSameCase: false,
      whitespaceBeforeInlineComment: '',
      wrapLineLength: 120
    },
    general: {
      actionWhenV1Detected: 'SwitchToV1',
      commentTagRegex: '^;;\\s*(?<tag>.+)',
      completeFunctionCalls: false,
      librarySuggestions: 'Disabled',
      symbolFoldingFromOpenBrace: false,
      syntaxes: ''
    },
    workingDirectories: [],
    warn: {
      callWithoutParentheses: 'Off',
      localSameAsGlobal: false,
      varUnset: true
    }
  },
  exclude: []
}
Excluded files:
	(none)
Excluded folders:
	(none)
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/dev/run%20python.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/displayoff.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/e-mail_backup.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/excel%20kopieren/excel%20kopieren.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/experimente/andere%20dkx.ahk
[Info  - 12:27:50 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/Translate.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/experimente/automatic%20buttons.ahk
New configuration: {
  compiler: {
    compileIcon: '',
    compilerPath: 'C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe',
    useMpress: false
  },
  general: { showOutput: 'always' },
  menu: { showDebugButton: true },
  v1: {
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkeyU64.exe',
      templateSnippetName: 'AhkTemplateV1'
    },
    formatter: {
      allowedNumberOfEmptyLines: 1,
      indentCodeAfterIfDirective: true,
      indentCodeAfterLabel: true,
      preserveIndent: false,
      trimExtraSpaces: false
    },
    intellisense: { maximumParseLength: 10000 }
  },
  v2: {
    completionCommitCharacters: { Class: '.(', Function: '(' },
    debugConfiguration: {
      port: '9002-9100',
      useAnnounce: 'detail',
      useAutoJumpToError: true,
      useDebugDirective: true,
      usePerfTips: true
    },
    diagnostics: { classNonDynamicMemberCheck: true, paramsCheck: true },
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey64.exe',
      maxScanDepth: 2,
      templateSnippetName: 'AhkV2Milli'
    },
    formatter: {
      arrayStyle: 'none',
      braceStyle: 'One True Brace',
      breakChainedMethods: false,
      ignoreComment: false,
      indentString: '    ',
      indentBetweenHotIfDirectives: false,
      keywordStartWithUppercase: false,
      maxPreserveNewlines: 2,
      objectStyle: 'none',
      preserveNewlines: true,
      spaceBeforeConditional: true,
      spaceAfterDoubleColon: true,
      spaceInEmptyParen: false,
      spaceInOther: true,
      spaceInParen: false,
      switchCaseAlignment: false,
      symbolWithSameCase: false,
      whitespaceBeforeInlineComment: '',
      wrapLineLength: 120
    },
    general: {
      actionWhenV1Detected: 'SwitchToV1',
      commentTagRegex: '^;;\\s*(?<tag>.+)',
      completeFunctionCalls: false,
      librarySuggestions: 'Disabled',
      symbolFoldingFromOpenBrace: false,
      syntaxes: ''
    },
    workingDirectories: [],
    warn: {
      callWithoutParentheses: 'Off',
      localSameAsGlobal: false,
      varUnset: true
    }
  },
  exclude: []
}
Excluded files:
	(none)
Excluded folders:
	(none)
New configuration: {
  compiler: {
    compileIcon: '',
    compilerPath: 'C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe',
    useMpress: false
  },
  general: { showOutput: 'always' },
  menu: { showDebugButton: true },
  v1: {
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkeyU64.exe',
      templateSnippetName: 'AhkTemplateV1'
    },
    formatter: {
      allowedNumberOfEmptyLines: 1,
      indentCodeAfterIfDirective: true,
      indentCodeAfterLabel: true,
      preserveIndent: false,
      trimExtraSpaces: false
    },
    intellisense: { maximumParseLength: 10000 }
  },
  v2: {
    completionCommitCharacters: { Class: '.(', Function: '(' },
    debugConfiguration: {
      port: '9002-9100',
      useAnnounce: 'detail',
      useAutoJumpToError: true,
      useDebugDirective: true,
      usePerfTips: true
    },
    diagnostics: { classNonDynamicMemberCheck: true, paramsCheck: true },
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey64.exe',
      maxScanDepth: 2,
      templateSnippetName: 'AhkV2Milli'
    },
    formatter: {
      arrayStyle: 'none',
      braceStyle: 'One True Brace',
      breakChainedMethods: false,
      ignoreComment: false,
      indentString: '    ',
      indentBetweenHotIfDirectives: false,
      keywordStartWithUppercase: false,
      maxPreserveNewlines: 2,
      objectStyle: 'none',
      preserveNewlines: true,
      spaceBeforeConditional: true,
      spaceAfterDoubleColon: true,
      spaceInEmptyParen: false,
      spaceInOther: true,
      spaceInParen: false,
      switchCaseAlignment: false,
      symbolWithSameCase: false,
      whitespaceBeforeInlineComment: '',
      wrapLineLength: 120
    },
    general: {
      actionWhenV1Detected: 'SwitchToV1',
      commentTagRegex: '^;;\\s*(?<tag>.+)',
      completeFunctionCalls: false,
      librarySuggestions: 'Disabled',
      symbolFoldingFromOpenBrace: false,
      syntaxes: ''
    },
    workingDirectories: [],
    warn: {
      callWithoutParentheses: 'Off',
      localSameAsGlobal: false,
      varUnset: true
    }
  },
  exclude: []
}
Excluded files:
	(none)
Excluded folders:
	(none)
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/experimente/dkx%20gui.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/experimente/test%20v1.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/experimente/test%20v2.ahk
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/ValheimKlickSpam.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/funktioniert%20nicht/tastaturbeleuchtung.ahk
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Archiv/vwfs.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Bahncode%20Copy%20Pase.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/DisplayOff.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/E-Mail_Backup.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Excel%20Kopieren/Excel%20Kopieren.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Experimente/andere%20dkx.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Experimente/automatic%20buttons.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Experimente/dkx%20gui.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Experimente/test%20v1.ahk This script requires AutoHotkey v1, continue parsing? Try switching to AutoHotkey v1.
[Info  - 12:27:51 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Funktioniert%20nicht/Tastaturbeleuchtung.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/a%20way%20out.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Games/A%20Way%20out.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/enshrouded.ahk
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/hots.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Games/HotS.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/slaythespire9.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Games/SlayTheSpire9.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/valheim/valheim.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Games/Valheim/Valheim.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/games/valheim/valheimtoggle.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Games/Valheim/ValheimToggle.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/hotkeytest.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/Hotkeytest.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/hotkey_help.ahk
[Info  - 12:27:52 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/hotkey_help.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Configuration changed
New configuration: {
  compiler: {
    compileIcon: '',
    compilerPath: 'C:/Program Files/AutoHotkey/Compiler/Ahk2Exe.exe',
    useMpress: false
  },
  general: { showOutput: 'always' },
  menu: { showDebugButton: true },
  v1: {
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v1.1.37.02/AutoHotkeyU64.exe',
      templateSnippetName: 'AhkTemplateV1'
    },
    formatter: {
      allowedNumberOfEmptyLines: 1,
      indentCodeAfterIfDirective: true,
      indentCodeAfterLabel: true,
      preserveIndent: false,
      trimExtraSpaces: false
    },
    intellisense: { maximumParseLength: 10000 }
  },
  v2: {
    completionCommitCharacters: { Class: '.(', Function: '(' },
    debugConfiguration: {
      port: '9002-9100',
      useAnnounce: 'detail',
      useAutoJumpToError: true,
      useDebugDirective: true,
      usePerfTips: true
    },
    diagnostics: { classNonDynamicMemberCheck: true, paramsCheck: true },
    file: {
      compileBaseFile: '',
      helpPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey.chm',
      interpreterPath: 'C:/Program Files/AutoHotkey/v2/AutoHotkey64.exe',
      maxScanDepth: 2,
      templateSnippetName: 'AhkV2Milli'
    },
    formatter: {
      arrayStyle: 'none',
      braceStyle: 'One True Brace',
      breakChainedMethods: false,
      ignoreComment: false,
      indentString: '    ',
      indentBetweenHotIfDirectives: false,
      keywordStartWithUppercase: false,
      maxPreserveNewlines: 2,
      objectStyle: 'none',
      preserveNewlines: true,
      spaceBeforeConditional: true,
      spaceAfterDoubleColon: true,
      spaceInEmptyParen: false,
      spaceInOther: true,
      spaceInParen: false,
      switchCaseAlignment: false,
      symbolWithSameCase: false,
      whitespaceBeforeInlineComment: '',
      wrapLineLength: 120
    },
    general: {
      actionWhenV1Detected: 'SwitchToV1',
      commentTagRegex: '^;;\\s*(?<tag>.+)',
      completeFunctionCalls: false,
      librarySuggestions: 'Disabled',
      symbolFoldingFromOpenBrace: false,
      syntaxes: ''
    },
    workingDirectories: [],
    warn: {
      callWithoutParentheses: 'Off',
      localSameAsGlobal: false,
      varUnset: true
    }
  },
  exclude: []
}
Excluded files:
	(none)
Excluded folders:
	(none)
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/kursanzeigen.ahk
[Info  - 12:27:53 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/KursAnzeigen.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/mousekeys.ahk
[Info  - 12:27:53 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/MouseKeys.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.
Document opened: file:///c%3a/users/truem/repos/scripts/ahk/stoplock.ahk
[Info  - 12:27:53 PM] file:///c%3A/Users/TrueM/Repos/Scripts/AHK/StopLock.ahk This appears be a v1 script, continue parsing? Try switching to AutoHotkey v1.

@mark-wiemer
Copy link
Member

Thanks, I'll check this out this weekend. The data: output is supposed to spit out a lot more, so it looks like the script isn't running correctly. Very strange, thanks for your patience and followups here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AHK v2 exclusive to AHK v2 bug something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

3 participants