Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Fix build problems on fresh checkout #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

braunse
Copy link

@braunse braunse commented Apr 15, 2021

The extension does not build from a fresh checkout on my Debian in WSL2q, due to two problems:

  1. The vscode package is obsolete, and the postinstall script referenced in client/package.json does not exist anymore.
    See https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
    The typings are now provided by @types/vscode, so it is also unnecessary.
    This PR simply takes it out.

  2. npm run build calls imba build which complains that no script file is given to build.
    This PR changes the build process so that the two child projects are built one-by-one and explicitly.

I have no experience with the code base, and with imba, so there may be a better way to achieve a working build on my machine, but these two changes worked so I could build a functioning VSIX by

npm dev:bootstrap
npm run build
vsce package
code --install-extension ./vsimba-*.vsix

Still to do:

  • Update Development.md to give all necessary build steps to build a working package

The `vscode.d.ts` file is not installed by the `postinstall` script of
the `vscode` package anymore. It is now contained in `@types/vscode` on
NPM.

See https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
The `imba build` command referenced in the `build` script does not
work. What actually needs to be built seem to be the
`client/dist/src/index.js` and `server/dist/src/index.js` files.
This change builds these files explicitly.
@braunse braunse marked this pull request as ready for review April 15, 2021 06:59
@braunse braunse mentioned this pull request Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant