Repository navigation
Playground v2: multi-file CodeMirror editor, fls diagnostics, real bug fixes - #196
Merged
Merged
Conversation
Compared the C-shadowed name against literal "main" instead of the real Fun-level name, so it never matched and emitted a bogus prototype.
Resize let the overlay and textarea drift apart, misplacing the caret. Auto-growing grid overlap, line numbers, floating toolbar.
The clang-rejected throw wasn't a FunCompileError, so it fell through to the generic no-backend message instead of showing what failed.
Warms both modules on page idle instead of the first Run click, and hashes the frontend artifact so a new release busts stale caches.
…ror block Real file tree, CodeMirror 6 editing, and a compile pipeline that mounts every project file so cross-file imports resolve.
pub handle(), and a settable ImportCache.parallel_preload (the fork pool can't start in a browser sandbox) so a non-stdio embedder works.
Debounced CodeMirror linter backed by the new wasm_fls_main module, themed for both light and dark, plus the matching prebake/CI step.
Protocol-agnostic now - a JSON array of raw message bodies in, every response/notification out, instead of hardcoded to didOpen alone.
CodeMirror was using its own generic default style instead of this project's actual fun-web-color-theme.json/fun-web-light colors.
… help Real fls features now, not just diagnostics. Also fixes lint tooltip CSS that never matched since CodeMirror mounts tooltips on body.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
main's shadow-renamed C entry point got a bogus conflicting prototype, breaking everyasync fun main()program (native, not just the website).wasm_fls_main.fnreplays any sequence of raw LSP messages, reload-per-call - seedocs/platforms.mdfor why not a persistent server):Test plan
fun test .- 56/56 test files pass (native rebuild with the async-main fix and the generalized fls wasm entry point)scripts/run_examples.sh- no new failures (2 pre-existing environmental flakes: local OpenSSL arch mismatch, documented BitInt flake)examples/advanced/async_*/channel_async_composed.fnexample compiles and runs correctly with the async-main fixvite build) served under/fun/with real COI headers - multi-file sample run, new-file creation, and live diagnostics all verified end to end, zero console errors, zero failed requests