From 80a42c082226596dd6fd17367aeddad13c1629e4 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 17 Oct 2023 13:35:45 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20log=20prepackaging=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/preview.yaml | 156 +++++++++++++-------------- extension/scripts/prepackage.js | 5 +- intellij-extension/gradle.properties | 2 +- 3 files changed, 83 insertions(+), 80 deletions(-) diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index b9a0bae71..60a96d462 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -6,47 +6,47 @@ on: - preview jobs: - pypi-deployment: - runs-on: ubuntu-20.04 - permissions: - contents: write - steps: - - name: Check out code - uses: actions/checkout@v2 + # pypi-deployment: + # runs-on: ubuntu-20.04 + # permissions: + # contents: write + # steps: + # - name: Check out code + # uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10.8" + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: "3.10.8" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install poetry + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install poetry - - name: Install project dependencies - run: cd server && poetry install + # - name: Install project dependencies + # run: cd server && poetry install - - name: Configure Poetry Token - run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} + # - name: Configure Poetry Token + # run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }} - - name: Bump the version - run: cd server && poetry version patch + # - name: Bump the version + # run: cd server && poetry version patch - - name: Build and publish the package - run: cd server && poetry publish --build + # - name: Build and publish the package + # run: cd server && poetry publish --build - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -am "ci: 🏷 Update PyPI version [skip ci]" + # - name: Commit changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git commit -am "ci: 🏷 Update PyPI version [skip ci]" - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # branch: ${{ github.ref }} build: strategy: @@ -94,64 +94,64 @@ jobs: - name: Check-out repository uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10.8" + # - name: Set up Python + # uses: actions/setup-python@v4 + # with: + # python-version: "3.10.8" - - name: Install Pyinstaller - run: | - pip install pyinstaller + # - name: Install Pyinstaller + # run: | + # pip install pyinstaller - - name: Install Dependencies - run: | - pip install -r server/requirements.txt + # - name: Install Dependencies + # run: | + # pip install -r server/requirements.txt - - name: Install tiktoken vocab file - run: | - mkdir .tiktoken_cache - curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 + # - name: Install tiktoken vocab file + # run: | + # mkdir .tiktoken_cache + # curl -o .tiktoken_cache/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 https://s3.us-west-1.amazonaws.com/s3.continue.dev/tiktoken/9b5ad71b2ce5302211f9c61530b329a4922fc6a4 - - name: Build PyInstaller Executable - run: pyinstaller continue_server.spec + # - name: Build PyInstaller Executable + # run: pyinstaller continue_server.spec # 1.5 Place the binary in extension/exe directory - - name: Make sure extension/exe directory exists - run: | - mkdir -p extension/exe + # - name: Make sure extension/exe directory exists + # run: | + # mkdir -p extension/exe - - name: Copy binary to extension (non-Windows) - run: | - cp dist/continue_server extension/exe/continue_server - if: matrix.os != 'windows-latest' + # - name: Copy binary to extension (non-Windows) + # run: | + # cp dist/continue_server extension/exe/continue_server + # if: matrix.os != 'windows-latest' - - name: Copy binary to extension (Windows) - run: | - cp dist/continue_server.exe extension/exe/continue_server.exe - if: matrix.os == 'windows-latest' + # - name: Copy binary to extension (Windows) + # run: | + # cp dist/continue_server.exe extension/exe/continue_server.exe + # if: matrix.os == 'windows-latest' # 1.8 Set permissions and upload binary - - name: Set permissions - run: | - chmod 777 extension/exe/continue_server + # - name: Set permissions + # run: | + # chmod 777 extension/exe/continue_server - - uses: actions/upload-artifact@v2 - if: matrix.os == 'macos-latest' && matrix.arch == 'x64' - with: - name: macOSBinary - path: extension/exe/continue_server + # - uses: actions/upload-artifact@v2 + # if: matrix.os == 'macos-latest' && matrix.arch == 'x64' + # with: + # name: macOSBinary + # path: extension/exe/continue_server - - uses: actions/upload-artifact@v2 - if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' - with: - name: LinuxBinary - path: extension/exe/continue_server + # - uses: actions/upload-artifact@v2 + # if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux' + # with: + # name: LinuxBinary + # path: extension/exe/continue_server - - uses: actions/upload-artifact@v2 - if: matrix.os == 'windows-latest' && matrix.arch == 'x64' - with: - name: WindowsBinary - path: extension/exe/continue_server.exe + # - uses: actions/upload-artifact@v2 + # if: matrix.os == 'windows-latest' && matrix.arch == 'x64' + # with: + # name: WindowsBinary + # path: extension/exe/continue_server.exe # 2. Install npm dependencies - name: Use Node.js 19.0.0 diff --git a/extension/scripts/prepackage.js b/extension/scripts/prepackage.js index c55df802d..e60e330f3 100644 --- a/extension/scripts/prepackage.js +++ b/extension/scripts/prepackage.js @@ -17,7 +17,10 @@ exec("npm install", (error) => { console.log("npm install in react-app completed"); exec("npm run build", (error) => { - if (error) throw error; + if (error) { + console.log("Error running npm run build in react-app: ", error); + throw error; + } if (!fs.existsSync(path.join("dist", "assets", "index.js"))) { throw new Error("react-app build did not produce index.js"); } diff --git a/intellij-extension/gradle.properties b/intellij-extension/gradle.properties index d8775b9ca..5e0642774 100644 --- a/intellij-extension/gradle.properties +++ b/intellij-extension/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.continuedev.continueintellijextension pluginName = continue-intellij-extension pluginRepositoryUrl = https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion = 0.0.11 +pluginVersion = 0.0.12 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223