Set up Cursor Cloud dev environment for net4cpp#22
Draft
ruoka wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Kaius Ruokonen <ruoka@users.noreply.github.com>
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
Sets up the development environment for
net4cpp(a C++23 modules networking/HTTP library) in Cursor Cloud and documents the non-obvious startup caveats for future agents.What was done
clang-21,libc++-21-dev,libc++abi-21-dev,lld-21,clang-tools-21,clang-tidy-21,cppcheck,libssl-dev) from apt.llvm.org — onlyclang 18was present. Baked into the VM image.deps/testergit submodule (test framework + build core; the project's only external dependency).AGENTS.mdwith a## Cursor Cloud specific instructionssection capturing the key gotcha (see below).Update script
git submodule update --init --depth 1 deps/testerMinimal, idempotent dependency refresh. The LLVM toolchain lives in the VM image, so it is not reinstalled per session.
Verified working
./tools/CB.sh debug buildNET_DISABLE_NETWORK_TESTS=1 ./tools/CB.sh debug testcppcheck ... net/ tools/+clang-tidy-21net::acceptor/net::connect)Hello, net4cpp!echoed backKey gotcha (documented in AGENTS.md)
tools/CB.shonly auto-disables network tests whenCURSOR_SANDBOXis set, which it is not in this cloud environment. So network tests run by default and a few fail against the restricted sandbox network. UseNET_DISABLE_NETWORK_TESTS=1for a fully-green run. Loopback networking works, so echo/HTTP demos run fine.