diff options
-rw-r--r-- | .github/workflows/main.yaml | 24 | ||||
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 17 |
2 files changed, 26 insertions, 15 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8610f363..67d248e2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -113,18 +113,18 @@ jobs: run: | cd extension npm run package - npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }} - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -am "ci: 💚 Update package.json version [skip ci]" - - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} + # npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }} + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "ci: 💚 Update package.json version [skip ci]" + + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} - name: Upload .vsix artifact uses: actions/upload-artifact@v2 diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index b25c7b82..6bfa7d07 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -139,16 +139,17 @@ export async function startContinuePythonServer() { // Check vscode settings const serverUrl = getContinueServerUrl(); if (serverUrl !== "http://localhost:65432") { + console.log("Continue server is being run manually, skipping start"); return; } // Check if server is already running if (await checkOrKillRunningServer(serverUrl)) { + console.log("Continue server already running"); return; } // Download the server executable - const bucket = "continue-server-binaries"; const fileName = os.platform() === "win32" @@ -189,14 +190,24 @@ export async function startContinuePythonServer() { ); } + console.log("Downloaded server executable at ", destination); // Get name of the corresponding executable for platform if (os.platform() === "darwin") { // Add necessary permissions - await runCommand(`chmod +x ${destination}`); - await runCommand(`xattr -dr com.apple.quarantine ${destination}`); + const [stdout, stderr] = await runCommand(`chmod +x ${destination}`); + console.log("Setting permissions for Continue server..."); + console.log(stdout); + console.log(stderr); + const [stdout1, stderr1] = await runCommand( + `xattr -dr com.apple.quarantine ${destination}` + ); + console.log("..."); + console.log(stdout1); + console.log(stderr1); } // Run the executable + console.log("Starting Continue server..."); const child = spawn(destination, { shell: true, }); |