Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run compile fails in editors/vscode #260

Closed
astrale-sharp opened this issue May 8, 2024 · 1 comment · Fixed by #275
Closed

npm run compile fails in editors/vscode #260

astrale-sharp opened this issue May 8, 2024 · 1 comment · Fixed by #275

Comments

@astrale-sharp
Copy link

astrale-sharp commented May 8, 2024

Describe the bug
Howdy!
npm run fails with

src/features/symbol-view.detypify.ts:1:26 - error TS2307: Cannot find module '../../assets/detypify/infer.json' or its corresponding type declarations.

1 import inferSymbols from "../../assets/detypify/infer.json";
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Package/Software version:

tinymist extension version: v0.11.0#398f2afb043f523ec5b8de84bda0735e3370177b.

tinymist 
Build Timestamp:     2024-03-22T02:18:18.207134800Z
Build Git Describe:  v0.11.1-rc2-5-gf0a96cb-dirty
Commit SHA:          398f2afb043f523ec5b8de84bda0735e3370177b
Typst Version:       0.11.0
@Myriad-Dreamin
Copy link
Owner

The current CONTRIBUTING guide only includes instructions about developing the binary and the that relates to running editor/vsocde extension locally is missing. I'll add it later.

You can refer the steps in release.yaml before I adding it:

- name: Download detypify assets
run: |
apk --no-cache add curl
mkdir -p tools/editor-tools/assets/
curl -L https://github.com/QuarticCat/detypify/releases/download/0.2.3/train-out.zip -o train-out.zip
unzip -d tools/editor-tools/assets/ train-out.zip
mv tools/editor-tools/assets/train-out/ tools/editor-tools/assets/detypify/
rm train-out.zip
- name: Run rust-cache
uses: Swatinem/rust-cache@v2
- name: Install deps
run: yarn install
- name: Build vscode extension
run: |
yarn
yarn run compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants