continue-custom/scripts/install-dependencies.ps1
Nate Sesti ca884b8212
fix ollama onboarding (#1539)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion

* continue proxy FIM support

* warn user if potentially dangerous command is generated

* tab autocomplete docs

* docs: update PR template (#1531)

* chore: add docs to install script (#1533)

* fix(extensions): schema for db ctx provider (#1534)

* fix(extensions): schema for db ctx provider

* fix: invalid enum

* prettierignore

* docs: add docs and schema for "OS" provider (#1536)

* tests (#1501)

* 👷 CI for jetbrains

* default working dir

* changelog

* build binaries

* binary testing setup

* idesettings

* core binary testing

* run binary tests in ci

* remove unused targets

* needs build

* console.log bin contents

* fix ci

* fix win32 binary download

* test

* no linux arm64

* macos latest

* macos-12

* binary permissions

* upload logs

* fix

* upload full folder as binary artifact

* test

* test macos only

* set full execute permissions

* copy sqlite binary

* cd

* it worked!

* build again in test job

* debug

* remove timeout

* info

* log

* log2

* more logs

* catch

* fewer logs

* test all platforms

* test downloaded artifact

* needs build

* updates

* build

* false

* release

* add tag and upload binaryes

* change tag name

* proper artifact upload

* jest updates

* ✅ generate a few unit tests with Continue

* fix imports related to IdeSettings

* run tsc on PRs

* remove shareSession command (unused)

* update release process

* update plugin version

* don't show ghost text when jetbrains completion visible

* run jetbrains ci in main

* check ts in dev

* ignore .env

* 🚑 fix constant warnings when onboarding with Ollama

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2024-06-21 11:09:03 -07:00

88 lines
2.7 KiB
PowerShell

# This is used in a task in .vscode/tasks.json when on windows
# Start developing with:
# - Run Task -> Install Dependencies
# - Debug -> Extension
# Everything needs node and npm
Write-Host "`nChecking for dependencies that may require manual installation...`n" -ForegroundColor White
$cargo = (get-command cargo -ErrorAction SilentlyContinue)
if ($null -eq $cargo) {
Write-Host "Not Found " -ForegroundColor Red -NoNewLine
Write-Host "cargo"
} else {
Write-Host "Found " -ForegroundColor Green -NoNewLine
& cargo --version
}
$node = (get-command node -ErrorAction SilentlyContinue)
if ($null -eq $node) {
Write-Host "Not Found " -ForegroundColor Red -NoNewLine
Write-Host "node"
} else {
Write-Host "Found " -ForegroundColor Green -NoNewLine
Write-Host "node " -NoNewLine
& node --version
}
if ($null -eq $cargo) {
Write-Host "`n...`n"
Write-Host "Cargo`n" -ForegroundColor White
Write-Host "Doesn't appear to be installed or is not on your Path."
Write-Host "For how to install cargo see:" -NoNewline
Write-Host "https://doc.rust-lang.org/cargo/getting-started/installation.html" -ForegroundColor Green
}
if ($null -eq $node) {
Write-Host "`n...`n"
Write-Host "NodeJS`n" -ForegroundColor White
Write-Host "Doesn't appear to be installed or is not on your Path."
Write-Host "On most Windows systems you can install node using: " -NoNewLine
Write-Host "winget install OpenJS.NodeJS.LTS " -ForegroundColor Green
Write-Host "After installing restart your Terminal to update your Path."
Write-Host "Alternatively see: " -NoNewLine
Write-Host "https://nodejs.org/" -ForegroundColor Yellow
}
if (($null -eq $cargo) -or ($null -eq $node)) {
return "`nSome dependencies that may require installation could not be found. Exiting"
}
Write-Host "`nInstalling Core extension dependencies..." -ForegroundColor White
Push-Location core
npm install
npm link
Pop-Location
Write-Output "`nInstalling GUI extension dependencies..." -ForegroundColor White
Push-Location gui
npm install
npm link @continuedev/core
npm run build
Pop-Location
# VSCode Extension (will also package GUI)
Write-Output "`nInstalling VSCode extension dependencies..." -ForegroundColor White
Push-Location extensions/vscode
# This does way too many things inline but is the common denominator between many of the scripts
npm install
npm link @continuedev/core
npm run prepackage
npm run package
Pop-Location
Write-Output "`nInstalling binary dependencies..." -ForegroundColor White
Push-Location binary
npm install
npm run build
Pop-Location
Write-Output "`nInstalling docs dependencies..." -ForegroundColor White
Push-Location docs
npm install