Compare commits

...

4 Commits

Author SHA1 Message Date
doylet
3027594c7b linux: Add Go checksum for 1.20.1 2023-10-06 10:45:35 +11:00
doylet
68d4e6c177 Use installed MSVC 2023-10-06 10:45:35 +11:00
doyle
0c81ac3d18 Add go 1.20.1 2023-10-06 10:45:35 +11:00
doylet
df2cf4e977 Spawn remedy using vim-dispatch, add remedy script 2023-10-06 10:45:23 +11:00
4 changed files with 66 additions and 14 deletions

View File

@ -309,31 +309,31 @@ augroup persistent_settings
augroup end augroup end
function! RemedyBGOpenFile() function! RemedyBGOpenFile()
execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg open-file " . expand("%:p") . " " . line("."))
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
endfunction endfunction
command RemedyBGOpenFile call RemedyBGOpenFile() command RemedyBGOpenFile call RemedyBGOpenFile()
function! RemedyBGStartDebugging() function! RemedyBGStartDebugging()
execute("!start remedybg start-debugging " . expand("%:p") . " " . line(".")) execute("Spawn! start remedybg start-debugging " . expand("%:p") . " " . line("."))
endfunction endfunction
command RemedyBGStartDebugging call RemedyBGStartDebugging() command RemedyBGStartDebugging call RemedyBGStartDebugging()
function! RemedyBGStopDebugging() function! RemedyBGStopDebugging()
execute("!start remedybg stop-debugging " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg stop-debugging " . expand("%:p") . " " . line("."))
endfunction endfunction
command RemedyBGStopDebugging call RemedyBGStopDebugging() command RemedyBGStopDebugging call RemedyBGStopDebugging()
function! RemedyBGRunToCursor() function! RemedyBGRunToCursor()
execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg open-file " . expand("%:p") . " " . line("."))
execute("!start remedybg run-to-cursor " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg run-to-cursor " . expand("%:p") . " " . line("."))
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
endfunction endfunction
command RemedyBGRunToCursor call RemedyBGRunToCursor() command RemedyBGRunToCursor call RemedyBGRunToCursor()
function! RemedyBGAddBreakpointAtFile() function! RemedyBGAddBreakpointAtFile()
execute("!start remedybg open-file " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg open-file " . expand("%:p") . " " . line("."))
execute("!start remedybg add-breakpoint-at-file " . expand("%:p") . " " . line(".")) execute("Spawn! remedybg add-breakpoint-at-file " . expand("%:p") . " " . line("."))
execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')") execute("!powershell -Command Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::AppActivate(' - RemedyBG')")
endfunction endfunction
command RemedyBGAddBreakpointAtFile call RemedyBGAddBreakpointAtFile() command RemedyBGAddBreakpointAtFile call RemedyBGAddBreakpointAtFile()
@ -435,11 +435,11 @@ set errorformat+=%\\%%(CTIME%\\)%\\@=%m " ctime.exe -stat
" ============================================================================== " ==============================================================================
let s:running_windows = has("win16") || has("win32") || has("win64") let s:running_windows = has("win16") || has("win32") || has("win64")
if s:running_windows if s:running_windows
set makeprg=./build.bat set makeprg=build
nnoremap <C-b> :Make ./build.bat<cr>
else else
" Set vim terminal to enter normal mode using escape like normal vim behaviour " Set vim terminal to enter normal mode using escape like normal vim behaviour
tnoremap <Esc> <C-\><C-n> tnoremap <Esc> <C-\><C-n>
nnoremap <C-b> :Make ./build.sh<cr>
set makeprg=./build.sh set makeprg=./build.sh
endif endif
nnoremap <C-b> :Make<cr>

12
Win/Scripts/remedybg.bat Normal file
View File

@ -0,0 +1,12 @@
@echo off
setlocal
set desired_path=%devenver_root%\..\..\Cryptomator\Dev\Win\RemedyBG\0_3_9_4
set desired_exe=remedybg.exe
set path=%desired_path%;%path%
set exe_to_use=""
for /f "delims=" %%a in ('where "$desired_path:%desired_exe%"') do ( set "exe_to_use=%%a")
echo [DEVENVER] Executing script "%~dpnx0" with "%exe_to_use%"
call %desired_exe% %*
endlocal

View File

@ -1821,4 +1821,46 @@ def get_manifest(is_windows):
], ],
}) })
# --------------------------------------------------------------------------
version = "1.20.1"
download_url = ""
download_checksum = ""
exe_path = ""
checksum = ""
if is_windows:
exe_path = "bin/go.exe"
download_url = f"https://go.dev/dl/go{version}.windows-amd64.zip"
download_checksum = "3b493969196a6de8d9762d09f5bc5ae7a3e5814b0cfbf9cc26838c2bc1314f9c"
checksum = "89fc8e2c47f2a2a9138e60159781ce377167cf61e30d8136fbad0d77ac9303ed"
symlink = [f"go-{version}.exe"]
else:
exe_path = f"bin/go"
download_url = f"https://go.dev/dl/go{version}.linux-amd64.tar.gz"
download_checksum = "000a5b1fca4f75895f78befeb2eecf10bfff3c428597f3f1e69133b63b911b02"
checksum = "dfaaf2d9212757e0c305c9554f616cac6744de646ef6ef20f5eaf9d9634771c3"
symlink = [f"go-{version}"]
result.append({
"label": "Go",
"manifests": [
{
"download_url": download_url,
"download_checksum": download_checksum,
"version": version,
"unzip_method": 'default',
"executables": [
{
"path": exe_path,
"symlink": symlink,
"add_to_devenv_path": True,
"checksum": checksum,
}
],
"add_to_devenv_script": [],
}
],
})
return result return result

View File

@ -271,8 +271,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
clink_exe = string.format("%s\\\\..\\\\..\\\\{clink_exe_path_for_wezterm}", wezterm.executable_dir) clink_exe = string.format("%s\\\\..\\\\..\\\\{clink_exe_path_for_wezterm}", wezterm.executable_dir)
devenv_bat = string.format("%s\\\\..\\\\..\\\\{dev_env_script_name}.bat", wezterm.executable_dir) devenv_bat = string.format("%s\\\\..\\\\..\\\\{dev_env_script_name}.bat", wezterm.executable_dir)
msvc_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\msvc-{msvc_version}.bat", wezterm.executable_dir) msvc_bat = "C:\\\\Program Files\\\\Microsoft Visual Studio\\\\2022\\\\Community\\\\VC\\\\Auxiliary\\\\Build\\\\vcvarsall.bat"
win10_sdk_bat = string.format("%s\\\\..\\\\..\\\\msvc\\\\win-sdk-{win10_sdk_version}.bat", wezterm.executable_dir)
clink_profile = string.format("%s\\\\..\\\\..\\\\{clink_profile_path_for_wezterm}", wezterm.executable_dir) clink_profile = string.format("%s\\\\..\\\\..\\\\{clink_profile_path_for_wezterm}", wezterm.executable_dir)
-- Taken from: https://wezfurlong.org/wezterm/shell-integration.html -- Taken from: https://wezfurlong.org/wezterm/shell-integration.html
@ -283,8 +282,7 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
default_prog = {{"cmd.exe", "/s", "/k", default_prog = {{"cmd.exe", "/s", "/k",
clink_exe, "inject", "--profile", clink_profile, "-q", clink_exe, "inject", "--profile", clink_profile, "-q",
"&&", "call", devenv_bat, "&&", "call", devenv_bat,
"&&", "call", msvc_bat, "&&", "call", msvc_bat, "x64"}}
"&&", "call", win10_sdk_bat}}
end end
return {{ return {{