Jump to content

BETA: SciTE v5x & lua Dynamic_include and "Smart" AutoComplete for Vars/UDFs/Abbrevs


Recommended Posts

Posted (edited)

Woah. That would be an idea. I use VSCode and Github Copilot all the time.

Edit: Well holy shit, some people have it working and it even works with the shadow suggestions.

F5 Actually ran and returned console. I'm going to experiment with VSCode for a while, I hadn't realized that was an option.

https://app.screencast.com/URbDfl7s3Vdei

I like it! Thanks for the recommendation!

Edit: I forgot about Tidy... Maybe the way they "Format Document" will be good enough.

Edit: Check this out... CoPilot is making recommendations for my UDF to meet UDF-Spec.

https://app.screencast.com/cIO6jNdUM6mVi

Warning, though... It doesn't fully understand AutoIt but does a pretty good job of interpreting certain things. At least I can use it for header generation.

Last Edit: Gotta watch the Copilot with your code, though. It messed up some of my functions while adding the headers.

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted (edited)
12 minutes ago, BinaryBrother said:

I have VS Code installed, but it isn't detected.

I guess I was sort of expecting this to happen. Have you maybe installed VSCode for all users?

Could you check the existence of these registry keys? :

  • HKCU\Software\Classes\Applications\Code.exe\shell\open\command"   (This is the one currently checked)
  • HKLM\Software\Classes\Applications\Code.exe\shell\open\command"

I need the appropriate registry key for VSCode that you have for the Open command.

EDIT: Do you have this key, as that seems to be a standard one?:
 

Computer\HKEY_CLASSES_ROOT\*\shell\VSCode\command

Download and try the current version of the installer that contain the check for this last regkey and see if that works.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
2 minutes ago, Jos said:

HKCU\Software\Classes\Applications\Code.exe\shell\open\command"   (This is the one currently checked)

This one 👆 matches my installation path (*current_user).

Best regards
Sven

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Posted (edited)

HKCU\Software\Classes\Applications\Code.exe\shell\open\command FOUND

image.thumb.png.02e0eb3151fa4510acddd57859c334e5.png

 

HKLM\Software\Classes\Applications\Code.exe\shell\open\command NOT FOUND

image.thumb.png.af67946c128e753cf94f7711dcc0476c.png

 

I think you have it backwards... Your Scite install must be checking HKLM, but VSCode is found under HKCU. At least, with @SOLVE-SMART and I.

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Posted
1 minute ago, Jos said:

Does this key exist in your registry?: HKCR\Directory\shell\vscode\command 

Negative. I don't have the vscode key.

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted (edited)

How did you install VSCode? 
The regular VSCode installer as the last listed regkey is created by that installer.

Also the key that you show is the exact one I was using before while you say it didn't work?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
4 minutes ago, Jos said:

Does this key exist in your registry?: HKCR\Directory\shell\vscode\command 

Yes it does.

image.png.8c45c2807b4f32f5d08d5d78b9a74120.png

And I also do not get "Visual Studio Code not detected.", it's shown like in @Jos screenshot of post here.
In other words, works fine for me @BinaryBrother.

1 minute ago, BinaryBrother said:

I'm going to rerun the installer.

Good idea 👌 .

Best regards
Sven

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

  • Developers
Posted
1 minute ago, BinaryBrother said:

Hang on ...   as you are showing the proper key  here:

 

14 minutes ago, BinaryBrother said:

HKCU\Software\Classes\Applications\Code.exe\shell\open\command FOUND

image.thumb.png.02e0eb3151fa4510acddd57859c334e5.png

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

*shrug*. The HKCR\Directory\shell\vscode still does not exist for me.

I just re-ran the installer and used defaults.

I didn't opt for the two "Open with" checkboxes... I have a lot of drama in my context menus already, so I didn't want any more options. lol

image.png.3fa7545148eee7f6fd894fd3b25b5a36.png

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted (edited)

Just uploaded an changed installer testing for both these keys and it should work when either one exists:

 

ReadRegStr $R0 HKCR "*\shell\VSCode\command" ""

ReadRegStr $R0 HKCU "Software\Classes\Applications\Code.exe\shell\open\command" ""

... but as I said: With the screen capture you shown it should have worked as long as you run the installer with your own userid.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted
9 minutes ago, BinaryBrother said:

I didn't opt for the two "Open with" checkboxes... I have a lot of drama in my context menus already, so I didn't want any more options. lol

Ok, that explains the generic key not existing!:

ReadRegStr $R0 HKCR "*\shell\VSCode\command" ""

... but the other one should still exist during installer run as long as it is ran by the same user as this is a "per user" installation.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

My VSCode is installed in the user context. Your new ScITE installer requests Admin privs before running. I'm not sure if that's relevant or not.

Did you update the installer?

SIGNATURE_0X800007D NOT FOUND

  • Developers
Posted (edited)
7 minutes ago, BinaryBrother said:

Did you update the installer?

yes:

23 minutes ago, Jos said:

ust uploaded an changed installer testing for both these keys and it should work when either one exists:

 

ReadRegStr $R0 HKCR "*\shell\VSCode\command" ""

ReadRegStr $R0 HKCU "Software\Classes\Applications\Code.exe\shell\open\command" ""

.

15 minutes ago, Jos said:

... but the other one should still exist during installer run as long as it is ran by the same user as this is a "per user" installation.

 

7 minutes ago, BinaryBrother said:

My VSCode is installed in the user context. Your new ScITE installer requests Admin privs before running. I'm not sure if that's relevant or not.

Correct and I do the same, and it prompts for Admin rights  (UAC) for me as well, but I don't have that issue, but my account is part of the Admin group.
Is your username on your computer part of the Administrators group or is it a restricted user only part of the users group?

Can you share your install.log from the SciTE directory?

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

It's a relatively fresh install of Windows 11 24H2, one primary administrative account. I haven't messed with ACLs, groups, or permissions.

I would assume that I'm in the admin group, since I can carry out administrative operations.

What is the fastest way to check? It's been a while since I messed with groups outside Linux.

Edit: I just re-downloaded the ScITE install from your link and tried again. It still doesn't detect my VSCode install.

I'll re-download it from a different browser to make sure caching isn't an issue.

It still doesn't work for me. 😕

I bet if I ticked those check boxes on the VSCode Installer it would. X) - It still didn't work. I'll try it on a fresh Win11 VM and see what happens.

I tried it in a fresh Win11 24H2 VM and it worked as expected. There must be something off about my setup... I have no idea what's going on, but the issue that I'm having appears to be a fluke relevant only to my particular setup and install.

Edited by BinaryBrother

SIGNATURE_0X800007D NOT FOUND

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...