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

Parser Error: Could not find type "Synthesizer" in the current scope. #1

Open
Kovadon opened this issue Jul 3, 2024 · 3 comments
Open

Comments

@Kovadon
Copy link

Kovadon commented Jul 3, 2024

image

@ricmzn
Copy link
Owner

ricmzn commented Jul 4, 2024

That can happen if the GDExtension is not loaded, either because the compiled version is missing, or there was an issue loading it.

The compiled version is not included in the repository, so you need to compile it yourself, using a rust compiler and the instructions in the readme. Can you try it?

If you did compile it already, the next thing to check is if Godot reports any errors in the editor's output console. Can you show that?

@Kovadon
Copy link
Author

Kovadon commented Jul 5, 2024

@Kovadon
Copy link
Author

Kovadon commented Jul 6, 2024

As for errors, it just shows this:

image

I was getting an issue with bash not running, as I'm on Windows 11. Someone else tried to get around this by making this compile-synth.bat instead:

:: Compile synth/synth.ts into build/synth/synth.js and dependencies
npx tsc -p tsconfig_synth_only.json || exit /b %ERRORLEVEL%

:: Combine build/synth/synth.js and dependencies into website/beepbox_synth.js
npx rollup build/synth/synth.js ^
    --file website/beepbox_synth.js ^
    --format iife ^
    --output.name beepbox ^
    --context exports ^
    --sourcemap ^
    --plugin rollup-plugin-sourcemaps ^
    --plugin @rollup/plugin-node-resolve || exit /b %ERRORLEVEL%

:: Minify website/beepbox_synth.js into website/beepbox_synth.min.js
npx terser ^
    website/beepbox_synth.js ^
    --source-map "content='website/beepbox_synth.js.map',url=beepbox_synth.min.js.map" ^
    -o website/beepbox_synth.min.js ^
    --compress ^
    --mangle ^
    --mangle-props regex="/^_.+/;" || exit /b %ERRORLEVEL%

which almost worked but then it couldn't find beepbox_synth.js:

image

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

No branches or pull requests

2 participants