Skip to content

FAQ

Is struktJS a new programming language?

No. The surface syntax of Core programs is real Python, saved as .model.py files and parsed with tree-sitter. struktJS adds a projectional editing experience on top: you edit the tree directly instead of typing text that is re-parsed, plus a pluggable system for defining checks, constraints, a gradual type system, scope and data-flow analysis, and generators per language. See What is a projectional editor? and Editor basics.

What do I need installed?

Node.js 20 to 22, Yarn and git to build it; Python 3 on your PATH to run Core programs. Editing, checking and generating do not need Python. See Getting started.

Browser IDE or desktop app?

They are the same extension in two Theia shells. The browser IDE is served by npm start and opened in a browser tab; the desktop app (npm run start:electron, or a packaged installer) is a native window for Windows, macOS and Linux. Use whichever you prefer. There is no separate VS Code extension.

Can I define my own language instead of using Core?

Yes, that is the point. Start from Authoring languages. You can extend Core, compose with the other bundled language plugins, or define concepts from scratch, either in code or from inside the IDE with Tools > Language Editor.

How are programs stored? Can I diff them in git?

As plain text. A model is a folder containing a model.json and one .model.py (or .model.js) file per root, so normal git diff works. The IDE's own Source Control window goes further and diffs the parsed tree. See Projects and models.

Why does Run say "Not run: fix the reported errors first"?

Run, Run with Debugger and Open Preview refuse to start while the model has an error (warnings do not block). Open the Problems panel, fix or remove the error, and run again. Selecting a problem jumps to its node. F8 steps through issues.

Why does Run say no Python interpreter was found?

Core programs run on a real Python interpreter on the machine that hosts the IDE (python3, then python). Install Python 3 and make sure it is on that machine's PATH, then restart the IDE. Programs in other languages run on the built-in evaluator and do not need Python. See Running, debugging and generating.

The keyboard shortcut in the docs does nothing

Cell-level editing keys (Enter, Tab, Alt+R, ...) are handled by the editor and need focus in a cell. Application shortcuts (F5, Shift+F5, Shift+F9, ...) can be rebound under File > Preferences > Keyboard Shortcuts, and a browser or operating-system shortcut may swallow a combination before the IDE sees it. Every command is also reachable from the menus and the command palette. The lists are Editor basics for cell keys and Commands & shortcuts for application commands; Help > Keyboard Shortcuts… in the app is a quick cheat sheet.

Can I query or script the program tree?

Yes: the Model Console (View > Tool Windows > Console) lets you write queries such as nodes("Plus").where(...) and even change the live model.

Can several people edit the same model?

Yes, with a Live Model Session (Tools > Collaboration). It syncs the live tree, not text, over a relay server that you can run yourself. See Live collaboration and Running a collaboration relay. Theia's stock "Collaboration" feature only syncs text editors and does nothing useful for model files.

Is it safe to expose my IDE on a network?

Treat the IDE as having your user's full access: it includes a terminal and runs programs on the host. npm start binds to 127.0.0.1 for that reason. Read Security and privacy before putting it anywhere other people can reach.

Can I run checks and generators without the IDE?

Yes. The strukts command-line tool checks, generates, tests and packages models headlessly and reports results as JSON with meaningful exit codes, so it fits any CI system. See CLI exit codes and JSON and CI with Gradle and Bazel.

Is there an AI assistant? Does my code leave my machine?

There is an AI Chat panel, built for local models served by Ollama. Nothing is sent anywhere unless you point it at a remote model server; web search (DuckDuckGo) and program edits ask for your approval first. See AI features.

Why does strukts check --all exit with code 3?

Several shipped samples are deliberately illustrative and contain check findings. Exit 3 means "findings", not a crash; see CLI exit codes and JSON.

Where do I report a bug or request a feature?

Use Help > Report Issue on GitHub in the IDE (shortcut Ctrl/Cmd+K H I), which opens the issue tracker. Security problems should not be filed as public issues; the process is in Contributing.

Where is the in-app documentation?

These pages are the documentation; Help > Documentation opens the in-app documentation view. Language authors will also find the generated API reference.