Rogen

Diagnostics

Every error and warning Rogen reports, with its cause and fix

Updated

Every problem Rogen reports has a code, such as route.strayAt, with a section below on its cause and fix. rogen help <code> prints the same section in your terminal.

  • An error stops Rogen from writing the project file.
  • A warning never stops the write, but it always names something to fix.

Config

These diagnostics come from reading a .rogen.json, or a Rojo project file you name.

config.unreadable

Error. Rogen can't read the config. Either the file doesn't exist, or it exists and the read failed. The message says where Rogen looked, or why the read failed.

error: the config does not exist (looked for default.rogen.json). (config.unreadable)
error: the config could not be read: permission denied. (config.unreadable)

Fix the path or the file's permissions. Check that the path names a file, not a folder.

config.invalidSyntax

Error. The config isn't valid JSONC. Comments and trailing commas are allowed, but brackets and quotes must match.

error: invalid JSONC: expected '}'. (config.invalidSyntax)

Fix the syntax at the line and column that the message shows.

config.notAnObject

Error. The config holds a JSON value that isn't an object, such as an array or a string.

error: a config must be a JSON object. (config.notAnObject)

Wrap the fields in { }.

config.wrongType

Error. A field holds the wrong type of value, such as a string where sourcePaths needs an array.

error: "sourcePaths": expected an array, found a string. (config.wrongType)

Give the field the type that the message names.

The type includes what Rojo accepts. servePort is a whole number from 0 to 65535, placeId, gameId and the lists of place IDs hold whole numbers of 0 or more, and serveAddress is an IP address such as 127.0.0.1 or ::1. Put a host name in serveAllowedHosts. A key of syncbackRules gets this error too, or config.unknownField when Rojo doesn't know it. Without this check, rojo build fails later with "Failed to deserialize JSON".

null is never a valid value in a .rogen.json, and it doesn't remove anything. To remove a key, leave it out. To keep a mounted folder out of the project, list it in globIgnorePaths. A node of the tree must be an object, so "DevPackages": null in the tree gets this error too.

config.unknownField

Error. The config has a key that is neither one of Rojo's nor one of Rogen's. It is often a typo, or a key from Rogen 1. Rojo refuses a project file with a key it doesn't know, so Rogen leaves the project file as it was.

error: "sourcePath" is not a Rojo key and not Rogen's, and Rojo rejects a project file with a key it doesn't know. Did you mean "sourcePaths"? (config.unknownField)

Rename the key to the one that the message suggests, or remove it.

The message suggests a key only when one of Rojo's or Rogen's keys is close. A $ key of a node in the tree gets this error too when it isn't one of Rojo's fields, such as $clasName. The exception is a $ key whose value is an object that Rojo can read as a child, such as "$Thing": { "$className": "Folder" }. A misspelled field such as "$propertes": { "Anchored": true } is no child, so it gets this error. An unknown field in a sync rule gets this code as a warning instead. Rojo ignores that field, so the rule doesn't do what it seems to say. A config with Rogen 1 keys gets legacy.config instead.

config.duplicateSourcePath

Error. One folder appears twice in sourcePaths, so every file in it would belong to both entries.

error: source path "src" is listed twice; a file under it would belong to both. Remove one. (config.duplicateSourcePath)

Remove one of the entries.

config.duplicateKey

Error. A route key, or one of Rogen's own keys such as routes, is written more than once in one object. JSON keeps only the last copy, so the first is lost without a word, and a Server route written twice sends the folder wherever the second one says.

error: route "Server" is written more than once, and JSON keeps only the last, so this one is lost. Remove it. (config.duplicateKey)

The error points at each copy JSON drops, so remove the copies you don't mean or merge them into the last. Rojo keeps the last copy of its own keys, such as name or a child of the tree, without a word, so Rogen leaves those as Rojo reads them.

config.nestedSourcePath

Error. One source path is inside another, so the files in it would belong to both.

error: source path "src/shared" is inside source path "src"; a file under it would belong to both. Remove one. (config.nestedSourcePath)

Remove the inner source path, or move its folder out of the outer one.

config.identicalConfig

Error. Two configs in one folder are the same except for their file names. They have the same name, source paths, routes, tree and every other key. One of them is a copy that was never edited, and Studio would list two projects with one name that read the same code. Both configs report the error.

error: game.rogen.json and lobby.rogen.json are the same config: a copy that was not edited. Change "name", "sourcePaths" and what else the copy is for, or delete it. (config.identicalConfig)

Edit the copy so it describes the place or output it is for, or delete it. A second output of one game, such as dist or release, keeps the same name and changes only what differs.

config.bothExtensions

Error. A config has a twin with the other extension, such as default.rogen.json and default.rogen.jsonc. Both would write the same project file. A watch keeps the last valid version until one is deleted.

error: default.rogen.json and default.rogen.jsonc both write default.project.json. Keep one of them. (config.bothExtensions)

Delete one of the two files.

config.compiledPathOverlapsSourcePath

Error. The compiled path is a source path, is inside one, or contains one. Darklua or a compiler writes its output to the compiled path, so Rogen would read that output as source and write the project file from it.

error: the compiled path "src/out" is inside source path "src", so Rogen would read what the tools write as source. Set "compiledPath" to a folder outside the source paths. (config.compiledPathOverlapsSourcePath)

Set compiledPath to a folder beside the source paths, such as dist or out.

config.sourcePathsWithoutRoutes

Error. The config lists sourcePaths but declares no routes. Rogen scans source paths only to route their files, so without routes it routes nothing and scans no source path.

error: "sourcePaths" lists what routes scan, but the config declares no routes. Add "routes", or remove "sourcePaths". (config.sourcePathsWithoutRoutes)

Add a routes map. Or remove sourcePaths, and mount the folders in the tree with $path. rogen init writes the routes Server, Client, Shared and *. See Routing.

config.invalidSyncRule

Error. A rule in syncRules isn't one that Rojo can read. One of these is true:

  • The rule isn't an object.
  • The rule has no pattern or no use.
  • The rule's use isn't one that Rojo has.
  • The rule's exclude or suffix isn't a string.
error: "syncRules[0]": a sync rule needs a "use" of serverScript, clientScript, ... (config.invalidSyncRule)

Fix the rule as the message says.

config.invalidRouteKey

Error. A route key is neither a name nor a file-name pattern. A name is letters and digits that start with a letter, because it appears in folder and file names. A pattern such as *.tsx, *Controller or *[Ss]ervice is a glob in Rojo's syntax on the characters of a file name: *, ?, a closed [...] class and a closed {a,b} group with none nested, but no /, **, @ or parentheses, since it matches a file's name and never its path.

error: route key "ser-ver" is invalid: a name uses letters and digits only, starting with a letter, and a file-name pattern is a glob on the name, such as "*.tsx" or "*[Ss]ervice". (config.invalidRouteKey)

Rename the key, for example to server, or write the pattern on the file name alone. See Routing.

config.ambiguousKey

Error. Two declared keys differ only in letter case. A name spelled one way would read as a misspelling of the other, and Rojo's .server and .client would name both.

error: "SERVER" and "server" differ only in letter case, so a name spelled one way would read as a misspelling of the other; keep one of them. (config.ambiguousKey)

Keep one of the keys. See How Routing Works.

config.unnamedProjectFile

Error. A project file other than default.project.json has no name. It is either a Rojo project file that you named on the command line, as in rogen serve test.project.json, or the file a config such as dist.rogen.json writes, whose name comes from the config. Rojo names default.project.json after its folder. It crashes on a project file with any other file name and no name, so Rogen stops before Rojo does, in rogen write, rogen check and every Rojo command.

error: test.project.json has no "name", and Rojo can't read a project file without one unless it is default.project.json or default.project.jsonc. Add "name". (config.unnamedProjectFile)

Add a "name" to the file.

Routes

These diagnostics come from route targets, and from how file and folder names match route keys.

roblox.unsupportedService

Error. A route's target doesn't start with a Roblox service that Rojo can write to.

error: "StarterPlayerScripts" is not a supported service. Did you mean "StarterPlayer/StarterPlayerScripts"? (roblox.unsupportedService)

Start the target with a service, then any folders, such as "StarterPlayer/StarterPlayerScripts" or "ReplicatedStorage/Shared". See Routes.

roblox.invalidFolder

Error. A route's target has a folder whose name is empty, . or .., or one of Rojo's $ fields ($className, $path, $properties, $attributes, $ignoreUnknownInstances, $id). Rojo would make an instance with that name, or read the name as a field of the node.

error: the target "ServerScriptService/" has an empty folder name; write each folder between single slashes, such as "ServerScriptService/Folder". (roblox.invalidFolder)

Remove the extra slash, or name the folder. See Routes.

route.unrouted

Warning. No route matches the file, and the config has no * route, so Rogen leaves the file out of the project file.

warning: matched no route, so it is left out. Move it into a routing folder of its feature, as src/Shop/Server, end its name with a route's @ suffix (@Server, @Client or @Shared), or declare a "*" route. (route.unrouted)

Do one of these:

  • Move the file into a routing folder of its feature, as the message names one.
  • Add an @key suffix to the file's name.
  • Declare a "*" route, if every file like this one belongs in one place.

The message names the routing folders of the file's feature. The feature is the folder directly inside the source path that holds the file. For a file at the top of a source path, the feature is the source path. See Files Without a Route.

route.strayAt

Error. A name, folder or marker file has an @ that doesn't route. An @ can only mean a route, so Rogen stops rather than send the file where its route doesn't reach, such as server code to clients. This happens in two cases:

  • The text after the @ nearly spells a declared route key, with a typo or the wrong letter case, in a file, a folder or a marker file such as @SERVER.
  • The text spells a route key, but it isn't at the end of the name, as in Report@server.bak.luau.
error: 2 names have an "@" that misses its route, so Rogen stops until they are fixed: (route.strayAt)
  src/Inventory/Load@SERVER.luau ("@SERVER" names no route; did you mean "@server"?)
  src/Inventory/Report@server.bak.luau ("@server" must end the name to route it)

Rename the file to the spelling that the message suggests, or move the @key to the end of the name. In --json, fixes holds the rename when exactly one key is closest and nothing is at that name already. Inside a folder that another route already governs, an @ for another route would do nothing however it is spelled, so it is route.ignoredAt instead, with no rename to follow.

Rogen doesn't report an @ that is nowhere near a route key, such as the @ in a package name like @rbxts. See The @ Suffix.

route.dotRoute

Error. A name writes a route key after a dot where a dot can only have meant a route, so the key routes nothing, and Rogen stops until it is fixed. The name is one of these:

  • a dot-file named for a key, such as .server, which isn't a marker file
  • a dot-folder named for a key, such as .server/, which isn't a routing folder
  • Rojo's .server or .client where Rojo doesn't read it: in another letter case, as Main.Server.luau, which Rojo makes a ModuleScript named Main.Server; on a data file or model, as Config.server.json, since only a script has a class; or on a folder, as Net.server/

Rojo's .server and .client at the end of a script's name in lower case route, and Rogen never reports them. Any other key after a dot stays in the name with no report, since a tool's own suffix may spell it: Button.story.luau beside a Story route, or Types.shared.luau, is a module of that name.

error: 2 names write a route key after a dot, where only "@" routes, so Rogen stops until they are fixed: (route.dotRoute)
  src/Inventory/.server (write "@server")
  src/Inventory/Main.Server.luau (write "Main.server.luau")

Rename each one as the message says. A marker file becomes @server, a folder becomes Net@server/, a script takes Rojo's lower case, and a data file becomes Config@server.json. In --json, fixes holds the rename.

A name inside a folder that a route already governs gets no rename, because @server there would be a route.ignoredAt error. Its message says which route governs it, and tells you to move it out of that route's files.

See Marker Files.

route.markerClash

Error. Two marker files in one folder name different routes, such as @server beside @client. Both are at the same level, so nothing decides which one governs.

error: "@client" and "@server" route this folder to different places, and nothing decides between them. Keep one. (route.markerClash)

Delete the marker that you don't want. Or move part of the folder into a subfolder with its own marker.

Two markers for the same route are fine. An init script's route routes only the script, so init@server.luau beside init@client.luau doesn't clash. See Marker Files.

route.patternClash

Error. Two or more pattern routes match a file's name with as many characters that aren't *, and they send it to different places. The pattern with more such characters wins, so *.story.tsx beats *.tsx, where ? and a class such as [Ss] count as one character, but nothing decides a tie. Not even the order of the routes: an editor or tool may reorder a JSON object's keys.

error: "*.ts" and "*Ui.*" both match this name, are as long as each other, and send it to different places. Lengthen the pattern that should win, or route the file with a folder or an @ name. (route.patternClash)

Make the pattern that should win more specific, as in *Ui.ts, or route the file with a routing folder or an @ name, which beat every pattern. Patterns that send a file to the same place don't clash. See Routing by Pattern.

route.folderPattern

Warning. A folder with an init script goes to * though its name matches a pattern route, as InputController/init.luau under a *Controller pattern. A pattern routes files by name and never a folder, and an init script is its folder, so the script and every file in the folder go to *, which can ship server code to clients.

warning: matches the pattern "*Controller", but a pattern never routes a folder or its init script, so it goes to "*". Name it InputController@Client to route it there. (route.folderPattern)

A folder of plain files gets this warning too when a pattern without a * matches its name, as server/ under [Ss]erver. Such a pattern names a whole word, so a folder spelled that way was most likely meant to route its files, and those that no route takes go to * instead. Only the outermost such folder warns, and a folder that already has an error for its name, such as route.caseMismatch, doesn't. A pattern with a *, such as *Controller, doesn't warn about a folder of plain files, since ShopController/ may just be a feature's name.

Rename the folder with the @ of the route key that has the pattern's target, as InputController@Client/. In --json, fixes holds that rename when one route key has the target. When no name key has the target, add one to routes and name the folder for it, as a Server key and a Server/ folder. See Routing by Pattern.

route.ignoredAt

Error. A name or marker file has an @key that does nothing, so the name says the file goes somewhere that it doesn't. This happens in two cases:

  • The file is inside a folder that another route already governs. Only the outermost route acts. This is so for an @ that only nearly spells a key too, as Server/Up@client.luau, since fixing its spelling wouldn't route it.
  • The @key comes before another @key in the same name, as in Net@client@server/. Only the last @key in a name routes.
error: "@client" does nothing here, because the "server" route already governs this file. Remove it, or move the file out of the "server" route's files. (route.ignoredAt)

Remove the @key, or move the file out of the governing route's folder. Rogen offers no automatic fix, because the right choice depends on where the code should run.

An @ that restates the governing route is fine, as in Shared/Net/Remote@Shared.luau. Rogen also reports a file that another file replaces, because its name is wrong either way. See The Outermost Route Wins.

route.scriptSuffixBeforeAt

Warning. A script has .server, .client or .plugin before its @ suffix, as in Start.server@client.luau. Rojo reads a script suffix only at the end of a name, so it makes the file a ModuleScript, and the code in it never runs on its own. Rogen warns for any extension when the name without the @ part would be a Script. For an extension of your own, that takes a sync rule that reads the name.

warning: Rojo reads ".server" only at the end of a name, so this is a ModuleScript named "Start". For a Script, name it Start.server.luau in a folder that routes it; for a module, remove ".server". (route.scriptSuffixBeforeAt)

For a module, remove the script suffix, as in Start@client.luau. For a Script, end the name with the suffix and route the file with a routing folder or a marker file, because an @ suffix must end the name (route.strayAt).

When the suffix routes the file where the @ does, as .server does in Start.server@server.luau with a server route, the name without the @ part is enough. Rogen proposes Start.server.luau, and in --json, fixes holds the rename.

route.scriptClassMismatch

Warning. A script's name and its sync rule disagree on its class.

A rule makes a script named .server, .client or .plugin a ModuleScript, so it never runs. The name still routes it.

warning: the sync rule "*.lang" makes this file a ModuleScript, so it never runs. For a server script, add { "pattern": "*.server.lang", "use": "serverScript", "suffix": ".server.lang" } before that rule; for a module, remove ".server". (route.scriptClassMismatch)

Under a compiledPath, Rojo reads the class from the name of the .luau file the compiler writes, not from the rule's use.

warning: the sync rule "*.lang" asks for a server script, but Rojo reads the class from the compiled name Main.luau. Rename it Main.server.lang, or set the rule's "use" to "moduleScript". (route.scriptClassMismatch)

A pattern such as src/**/* also takes that .luau file, so Rojo reads it by the rule instead.

warning: the sync rule "src/**/*" also takes the compiled Main.server.luau, so Rojo reads it by the rule, not by its name. Narrow the pattern to the source extension. (route.scriptClassMismatch)

Do what the message says.

route.caseMismatch

Error. A folder matches a declared key except for letter case. Keys match exactly, so it routes nothing, and the files in it that nothing else routes would go to *, which can ship server code to clients. A folder that a route above it, or a marker in it, already routes is left alone, since its name places nothing there. A marker file or @ name in another case is route.strayAt.

error: "SHARED" differs from the route "shared" only in letter case, so it routes nothing, and the files in it that nothing else routes would go to "*". Spell it "shared". (route.caseMismatch)

Rename the folder to the key. In --json, fixes holds that rename unless a folder of that name is already beside it. To keep the folder's spelling, rename the key in routes instead, and every folder spelled the old way with it, since two keys can't differ only in case. In a script folder, such as a library's Net/server/ beside Net/init.luau, the folder may be a child the script requires, so the message also names the marker file that keeps it with the script, as @Shared in it, and fixes holds no rename. A marker needs a key that routes where * does; when no key does, the message says to add one to routes with the marker, and names it when the target's last name can be a key. rogen init renames a project's folders to one spelling when it lifts it. See How Routing Works.

route.serverCodeShipped

Warning. A file is in a plain folder named after a server route in any letter case, such as Server/, server/ or (Server)/, but an outer route outranks that folder. The outer route places the file, and that route replicates to clients. Server code under Shared/ ships to every client.

warning: ships to clients as ReplicatedStorage/Shared/Server/Datastore: move it out of the "Shared" route's files if it's server code, or keep it there with a "@Shared" marker file in its folder (route.serverCodeShipped)

Move the file out of the replicating route's folder, for example from Shared/Server/ to Server/.

If the folder should replicate, put a marker file in it for the route that places it, such as Shared/Server/@Shared, or @Shared in a library's Net/server/. The marker covers every file below it. To cover one file, name it like Secret@Shared.luau.

A route written with @, as in Shared/Data@Server.luau, gets the route.ignoredAt error instead. See The Outermost Route Wins.

Tree

These diagnostics come from the instance tree that Rogen writes: clashes between files and nodes, mounts, and scripts that land where they don't run.

tree.reservedName

Warning, or error. The project file gets an instance whose name starts with $, which Rojo reserves for its own fields. Rojo keeps the instance, but it warns about it on every build and every serve.

warning: Rojo reserves a leading $, so it warns about "ReplicatedStorage/shared/$Config" on every build. Rename the file without the $. (tree.reservedName)

Rename the file or folder without the $.

It is an error when the name is one of those fields, such as $className or $path, and the project file has to name the instance: a file or folder of that name that Rogen gives to Rojo whole, as part of one $path, is fine, but a node of that name would be read as a field and corrupt the file.

error: "ReplicatedStorage/Shared/Trade/$className" has "$className" in its path, which Rojo reads as a field of a node, so the project file can't name an instance of that name. Rename it. (tree.reservedName)

A key you write in the tree yourself, such as "$Shared": { "$path": "src/Shared" }, gets the same warning at that key in the config:

warning: "tree.ReplicatedStorage.$Shared": Rojo reserves keys that start with $ for its own fields, so it warns about this one on every build. Rename it without the $. (tree.reservedName)

A $ later in a name, as in Cost$, is fine. So is a file inside a folder that Rogen gives to Rojo whole, as one $path.

tree.instanceClash

Warning, or error. Two files in one source path become the same instance, such as Types.lua and Types.luau, or two ^ files that hoist to one place. Rojo would keep both, but the project file can name one, so the build would lose the other, and this stops the write.

error: becomes "ReplicatedStorage/shared/Inventory/Types", as src/Inventory/Types.luau does, which takes its place, so the build would lose it. Rename one of them to keep both. (tree.instanceClash)

Rename or delete one of the files. In --json, related names the file that takes the instance. rogen where shows the left-out file as replaced by.

Across source paths, the last file wins without a warning. That is how a later source path replaces a file of an earlier one.

Rojo reads one init file per folder, such as init.luau before init.server.luau, wherever their routes send them. As that is Rojo's own behaviour, the others only get this warning, and to give each side its own init script you name them with @, as in init@server.luau:

warning: is an init file of src/Net, as src/Net/init.luau is, and Rojo reads only that one. To give each side its own init script, name them with @, as init@server.server.luau. (tree.instanceClash)

It also warns when a file becomes an instance that files from elsewhere land in, so they become its children. That happens when a loose file, such as src/Server/Inv.luau, has the name of a feature folder, or when a ^ file hoists into a feature's name.

warning: becomes "ServerScriptService/Inv", where src/Inv/Server/Save.luau lands too, so that file becomes a child of this one. Rename one of them to keep them apart. (tree.instanceClash)

Rename the file. A script beside a folder of its own name, such as Dup.luau beside Dup/, is one script with the folder's files as its children, and raises no warning.

tree.nodeClash

Warning. The tree defines a node at the same instance path as a file or folder. Rogen keeps the tree's node and leaves the file out.

warning: the tree defines "ServerScriptService/Save" too, so its node is kept and this file is left out. Rename one of them to keep both. (tree.nodeClash)

Rename the file, or remove the node from the tree.

tree.mountClash

Warning. A route puts files at or below a node of the tree that has a $path, and the mounted folder holds an instance with the same name. Rojo reads the mount itself and adds the routed files beside what the mount holds. The game gets two instances with one name, and require can find either one.

warning: 2 files sit next to an instance of the same name that a mount of the tree holds, so Rojo builds two of each: (tree.mountClash)
  src/Combat/Hit.luau (makes a "Combat" next to the "Combat" that the mount of vendor/Lib at "ReplicatedStorage/Lib" holds)
  src/Combat/Miss.luau (makes a "Combat" next to the "Combat" that the mount of vendor/Lib at "ReplicatedStorage/Lib" holds)
Rename one of each pair, or route outside the mounted folder.

Rename one of each pair, or route the files somewhere that the mount doesn't cover.

rogen where shows the warning under each file. Files that the config ignores in the mounted folder don't count.

tree.initWithoutFolder

Error. An init script becomes the folder it is in, but that folder never becomes an instance. Source paths, plain routing folders and invisible folders never become instances.

error: an init script becomes the folder it sits in, but it sits in a routing folder, which never becomes an instance. Move it into a folder of its own, or rename it. (tree.initWithoutFolder)

Move the script into a folder of its own, or rename it so it isn't an init script.

tree.hoistedInit

Error. An init script's name starts with ^, but an init script can't be hoisted alone. The script is its folder, so only the folder can be hoisted.

error: ^init.luau starts with "^", but an init script is its folder, so the "^" can't hoist it alone. Put the "^" on the folder: ^Net. (tree.hoistedInit)

Rename the script back to init.luau, and rename the folder to ^Net. See Hoisted Names.

tree.deadScript

Warning. A Script or LocalScript lands in a service where Roblox never runs it, such as a LocalScript in ServerScriptService.

warning: 1 script will never run where it lands: (tree.deadScript)
  src/Shared/Secret.server.luau (a Script never runs in ReplicatedStorage)
A Script runs in ServerScriptService or Workspace, and a LocalScript in StarterPlayerScripts, StarterCharacterScripts, StarterGui, StarterPack or ReplicatedFirst. A Script with RunContext Client never runs in ServerScriptService, which clients can't see.

Move the script under a route whose target runs it. Or remove .server or .client from its name to make it a ModuleScript.

tree.runContextTarget

Warning. With emitLegacyScripts: false, a route puts a client script in StarterPlayerScripts or StarterCharacterScripts. Rojo makes it a Script with RunContext Client, which runs both there and in the copy each player gets.

warning: emitLegacyScripts: false makes client scripts in StarterPlayerScripts or StarterCharacterScripts Scripts with RunContext Client, which run twice there: (tree.runContextTarget)
  src/Hud.client.luau (lands in StarterPlayerScripts)
  src/Panel/init.client.luau (lands in StarterPlayerScripts)
Route client scripts to ReplicatedStorage, or remove emitLegacyScripts from the config.

Route client scripts to ReplicatedStorage, or remove emitLegacyScripts. A script whose meta sets RunContext, or that your own legacyClientScript or runContextClientScript rule reads, is skipped.

tree.mountsSourcePath

Error. A $path in the tree mounts a source path, or a folder that holds one. Rojo would read the whole folder, and Rogen could place nothing in it.

error: "ReplicatedStorage/All" mounts the source path src, so Rogen would place nothing there. Mount a folder inside it, or remove the source path. (tree.mountsSourcePath)

Mount a folder inside the source path instead, such as a vendored package. Or remove the source path from sourcePaths.

tree.rootNotDataModel

Error. The config declares routes, but the root of its tree isn't a DataModel. Route targets name services, and only a DataModel holds services. A root with a $path and no $className isn't a DataModel either.

error: routes name services, but the root of the tree is a Folder, not a DataModel. Give it "$className": "DataModel", or remove the routes. (tree.rootNotDataModel)

Give the root "$className": "DataModel". If the project is a model, remove the routes instead. Without routes, any root is valid.

tree.unreadableValue

Error. A value in the $properties or $attributes of a node in the config's tree is one that Rojo can't read without the property's type. Examples are a UDim2 written as nested lists, a CFrame written as an object with no type, a type Rojo doesn't know such as { "vector3": [1, 2, 3] }, and null. Rojo refuses the project, and rogen fmt-project refuses to format it, as rojo fmt-project does. Without this check, rojo build fails later with "Failed to deserialize JSON", and the message doesn't name the value.

error: "tree.StarterGui.Hud.Bar.$properties.Size": Rojo can't read this value. Write a boolean, number, string, list of numbers (2, 3, 4 or 12), list of strings, or { "Type": value }. (tree.unreadableValue)

Write the value with its type, such as { "UDim2": [[0, 0], [0.5, -5]] }, or remove the property.

Metadata

These diagnostics come from .meta.json files. Rogen reads a folder's init.meta.json itself, and checks the meta of each file before Rojo reads it.

meta.unreadable

Error. Rogen found a .meta.json file when it scanned, but it couldn't read the file. The file has the wrong permissions, is a folder, or was removed while the write ran.

error: the meta file could not be read: permission denied. (meta.unreadable)
error: the meta file does not exist any more; it was there when the write scanned and was removed while it ran. (meta.unreadable)

Fix the file's permissions, or run the write again.

meta.invalidSyntax

Error. A meta file that Rojo reads, a folder's init.meta.json or the meta of a file such as Save.meta.json, isn't valid JSONC.

error: invalid JSONC: expected '}'. (meta.invalidSyntax)

Fix the syntax at the line and column that the message shows.

Rojo refuses the whole project when it can't read a meta file. Rogen stops before it writes a project file that Rojo would fail on. rogen check on a file reports the errors of its meta too.

meta.byteOrderMark

Error. A meta file starts with a byte order mark, which Rojo can't read. A byte order mark is an invisible character that some editors, and PowerShell's Out-File, write at the start of a UTF-8 file. Rojo refuses the whole project when a meta file starts with one. Rogen stops before it writes a project file that Rojo would fail on.

error: starts with a byte order mark, which Rojo can't read, so it refuses the project. Save the file as UTF-8 without one. (meta.byteOrderMark)

Save the file as UTF-8 without a byte order mark.

meta.notAnObject

Error. A meta file that Rojo reads holds a JSON value that isn't an object.

error: a meta file must be a JSON object. (meta.notAnObject)

Wrap the fields in { }.

meta.wrongType

Error. A field in a meta file that Rojo reads holds the wrong type of value.

error: "attributes": expected an object, found an array. (meta.wrongType)

Give the field the type that the message names. It is the type that Rojo's meta format expects.

meta.unreadableValue

Error. A value in a meta file's properties or attributes is one that Rojo can't read, such as null, a list of numbers of the wrong length, a { "Type": value } of a type Rojo doesn't know, or an object of several keys that is neither attributes of types Rojo knows nor material colors of whole numbers from 0 to 255. Rojo refuses the meta. Without this check, the build fails later, with a message that doesn't name the file.

error: "properties.WorldPivotData": Rojo can't read this value, so it refuses this meta. Write a boolean, number, string, list of numbers (2, 3, 4 or 12), list of strings, or { "Type": value }. (meta.unreadableValue)

Write a value that Rojo can read, or remove the property.

meta.unknownField

Warning. A meta file has a field that looks like a misspelling of one that Rojo reads, such as classname for className in an init.meta.json. Rojo ignores an unknown field without a warning, so the property never applies.

warning: unknown field "classname"; Rojo ignores it. Did you mean "className"? (meta.unknownField)

Rename the field to the one that the message suggests, or remove it.

Rogen doesn't report a field that resembles none of Rojo's, such as $schema.

meta.unclaimed

Warning. A .meta.json file belongs to no file, so Rojo ignores it. A file's meta is named after the name that Rojo gives the file, which drops .server, .client and .plugin.

warning: belongs to no file, so Rojo ignores it. Rojo reads Save.meta.json. (meta.unclaimed)

Rename the meta file to the name that the message gives, or delete it. A folder's meta is init.meta.json, inside the folder.

meta.appliesToNothing

Warning. An init.meta.json is in a folder that never becomes an instance, such as a routing folder without an init script or an invisible folder.

warning: applies to nothing, because a routing folder never becomes an instance. Move the meta into the folder that should get it. (meta.appliesToNothing)

Move the meta file into the feature folder that should get it.

meta.sharedWithScript

Warning. A folder and a script become the same instance, and the folder has an init.meta.json. Rojo reads the script at that instance, so the folder's meta applies to nothing.

warning: this folder shares "ServerScriptService/Net" with Net.server.luau, which is what Rojo reads there, so its meta applies to nothing. Put it in Net.meta.json beside the script, or turn the folder into an init folder. (meta.sharedWithScript)

Put the fields in the script's own meta file, as the message names. Or make the folder an init folder.

meta.treePath

Warning. The tree gives the folder's instance its own $path, so Rogen can't copy the folder's meta to it.

warning: the tree gives "ServerScriptService/Combat" its own $path, so this meta isn't copied there. Set the fields on the tree's node instead. (meta.treePath)

Set $className, $properties or $attributes on the tree's node instead.

meta.treeClass

Warning. The tree and a folder's meta give one instance different classes. The tree's class wins.

warning: the tree makes "ServerScriptService/Combat" a Model, so its class is kept over this meta's Actor. (meta.treeClass)

Remove $className from the tree's node, or remove className from the meta.

meta.sameNode

Error. Two folders in one source path become the same instance, and both have an init.meta.json. An example is src/Combat/ and src/server/Combat/. Neither meta file ranks above the other.

error: src/Combat/init.meta.json and src/server/Combat/init.meta.json both apply to "ServerScriptService/Combat" from one source path, and neither ranks above the other. Keep one of them. (meta.sameNode)

Merge the two into one meta file.

meta.idOnSeveralNodes

Error. A folder's meta sets an id, but the folder's files are split across services. Rogen would copy the meta onto several instances, and a Rojo ref id must be unique.

error: id "combat" would be copied onto 2 instances (ServerScriptService/Combat, ReplicatedStorage/Combat), but a ref must be unique. Remove the id, or keep the folder's files in one service. (meta.idOnSeveralNodes)

Remove the id, or keep the folder's files in one service.

meta.runContextOnModule

Error. A meta file sets RunContext on a ModuleScript. A ModuleScript has no RunContext, so Rojo refuses the meta.

error: sets a RunContext, but init.luau is a ModuleScript, which has none, so Rojo refuses this meta. Name the script .server or .client to make it a Script, or remove RunContext. (meta.runContextOnModule)

Add .server or .client to the script's name to make it a Script, or remove RunContext. See Rojo's Script Suffixes.

meta.classNameOnScript

Error. A folder's init.meta.json sets className, but the folder holds an init script. The script is the folder's instance and decides its class, so Rojo refuses the meta. init.luau is a ModuleScript, init.server.luau is a Script, and init.client.luau is a LocalScript.

error: sets a className, but its folder holds an init script, which decides the class, so Rojo refuses this meta. Remove className, or rename the script to change its class. (meta.classNameOnScript)

Remove className, or rename the init script to make the class you want.

Scanning

These diagnostics come from reading the source paths: folders that are missing, names that Rojo or another system can't use, and files in places Rogen doesn't expect.

scan.missingSourcePath

Warning, or error. A folder in sourcePaths doesn't exist, or is a file.

  • It is a warning while another source path is a folder. The missing one contributes nothing.
  • It is an error when no source path is a folder, because the build would write an empty tree over your project file. rogen write, rogen build and rogen check fail, and the project file stays as it was.
warning: this source path does not exist or is not a folder, so it contributes nothing. (scan.missingSourcePath)
error: no source path of the config exists, so default.project.json was left as it was. Check the spelling in "sourcePaths". (scan.missingSourcePath)

Create the folder, fix the spelling, or remove the path from sourcePaths. Each path is relative to the .rogen.json that lists it.

A config with no sourcePaths uses the default, src. The error then tells you to create src, or to set sourcePaths to where your code is. A running rogen write --watch, rogen build --watch or rogen serve keeps the last good project file, and builds again when a source path is back.

scan.unmountedSource

Warning. The default src folder holds files that Rojo never syncs. The config declares no routes, so Rogen scans no source path, and nothing in the tree mounts the files.

warning: 3 files here are mounted by nothing in the tree (Main.client.luau, Util.luau, lib/Net.luau), and the config declares no routes, so Rojo never syncs them. Add "routes" to place them, or mount the folder with "$path". (scan.unmountedSource)

The message names the first three files. In --json, related lists every one.

Add routes so that Rogen places the files. Or mount the folder in the tree with a $path.

Files that globIgnorePaths matches don't count.

On a plain Rojo project, which has no config, only rogen check reports it. Rojo's commands run on that project as Rojo would, and Rojo says nothing about these files.

scan.noSyncedFiles

Warning. A source path holds files, but Rojo reads none of them, such as the files of a language that compiles to Luau.

warning: this source path places nothing: Rojo reads none of its files (client/main.client.lang, server/main.server.lang and shared/util.lang). Add a "syncRules" entry for their extension, and a "compiledPath" if a compiler turns them into Luau. (scan.noSyncedFiles)

Add syncRules for their extension, and compiledPath if a compiler turns them into Luau. Rogen then points the project file at the .luau files it writes. Otherwise, remove the folder from sourcePaths.

scan.extensionCase

Warning. A file's extension has capital letters, so Rojo ignores the file. Rojo reads an extension only in lowercase. Rogen leaves the file out of the tree, as Rojo does.

warning: Rojo reads an extension only in lowercase, so it ignores this file. Rename it to Save.luau. (scan.extensionCase)

Rename the file as the message says. This applies to .JSON, .MODEL.JSON and every other extension that Rojo reads.

scan.uncompiled

Warning. A .ts or .tsx file sits in a source path, but the config has no compiledPath. Rojo never reads TypeScript itself, only the Luau a compiler such as roblox-ts writes for it, so the file is left out.

warning: is TypeScript, which Rojo never reads itself, and the config has no "compiledPath", so it is left out. Set "compiledPath" to the folder roblox-ts writes, as "out", or remove the file. (scan.uncompiled)

In a roblox-ts project, set compiledPath to the outDir of your tsconfig.json. Otherwise remove the file, or move it out of the source paths. A source path that holds nothing else gets scan.noSyncedFiles instead. See Config.

scan.syncRuleSuffix

Warning. A sync rule takes a file, but the rule's suffix doesn't end the file's name. Rojo removes the suffix from a file's name to name the instance. When there is no suffix to remove, Rojo keeps the whole file name, extension included.

warning: the sync rule "*.md" cuts ".txt" off a file name, but this name does not end with it, so Rojo names the instance after the whole file name. Make the suffix end every file the pattern matches. (scan.syncRuleSuffix)

Change the suffix or the pattern, so that the suffix ends every file that the pattern takes.

scan.nestedProject

Warning. A default.project.json or default.project.jsonc is directly in a source path, not in a folder below it. Rojo reads such a file as the folder it is in. A source path never becomes an instance, so Rogen places the project on its own. The project is named by its name, or default if it has none.

warning: a source path never becomes an instance, so this project becomes ReplicatedStorage/Shared/Arena on its own. Move it into a folder. (scan.nestedProject)

Move the file into a folder of its own, or out of the source paths.

In a folder below the source path, the project file is that folder, as it is in Rojo. The folder becomes one instance, named by the project's name, and Rojo reads only what the project mounts.

scan.sourcePathNamedAfterKey

Warning. A source path is named after a route key, but its name routes nothing. Routing starts below a source path, so its files land where the * route sends them, or nowhere.

warning: 2 source paths are named after a route key, but routing starts below a source path, so their names route nothing: (scan.sourcePathNamedAfterKey)
  server (named after the "server" route: move it into a folder, such as src/server, and use "sourcePaths": ["src"])
  client (named after the "client" route: move it into a folder, such as src/client, and use "sourcePaths": ["src"])

If the source path has a parent folder inside the project, such as src/server, list the parent instead: "sourcePaths": ["src"]. The server folder then routes. If the source path is in the same folder as the .rogen.json, first move the folders into one code folder, because "." would scan the whole repository. See Routing.

The build still runs and writes the project file.

Warning. A symlink or junction in a source path points at nothing, or back at a folder that contains it.

warning: this link points at nothing, or back at a directory that contains it, so it contributes nothing. (scan.unresolvedLink)

Fix the link's target, or remove the link.

scan.unreadable

Error. Rogen can't list a folder in a source path, because the folder has no read permission. Rojo fails to build such a folder, so the project file isn't written.

error: this folder could not be read: permission denied, so Rojo can't build it. Fix the folder's permissions, or add it to "globIgnorePaths". (scan.unreadable)

Fix the folder's permissions. A folder that globIgnorePaths matches isn't read, by Rogen or by Rojo.

scan.emptyName

Warning. A script file's name is only its suffix, such as .server.luau, so it becomes an instance with an empty name. Rojo builds it the same way. Studio and require don't handle an empty name well.

warning: has no name once its suffix is taken off, so it becomes an instance with an empty name. Put a name before the suffix, as in Name.server.luau. (scan.emptyName)

Put a name before the suffix.

scan.outsideSourcePaths

Warning. rogen check <path> got a path that is in no source path, and the path's first folder is one edit from a source path, or differs from one only in letter case. The path is probably a typo.

warning: this path is in no source path, so Rogen leaves it out of the project file, and "scr" is one edit from the source path "src". Check the spelling. (scan.outsideSourcePaths)

Fix the path. If the typo is in sourcePaths, fix it there.

Any other path outside the source paths passes without a warning, because hooks give check every changed file.

scan.portableName

Warning. A file or folder name works on this machine, but fails on Windows or macOS, or Rogen can't read it. A name fails when it does one of these:

  • has one of <>:"|?* or a control character
  • is a Windows device name (con, prn, aux, nul, com1 to com9, or lpt1 to lpt9), with any extension
  • ends in a space or a dot
  • differs from a sibling only in letter case
warning: its name has ":", which Windows file names cannot hold. Rename it so a checkout works on every system. (scan.portableName)

Rename the file or folder, and update what requires it.

Rogen leaves nothing out, except a file whose name has a backslash. Rogen reads \ as a folder separator, so it leaves that file out. The check covers each file and folder that becomes an instance, and meta files and marker files. It skips files that Rogen ignores, but not meta files, which Rojo applies even when globIgnorePaths matches them.

Output

These diagnostics come from writing the project file, and from reading a compiler's output in compiledPath.

output.writeFailed

Error. Rogen couldn't write the project file. The message gives the reason, without the system's error code.

error: the project file could not be written: permission denied. (output.writeFailed)

Check that the folder is writable, and that no other program locks the file. Rogen creates the folder if it is missing.

output.differs

Warning. rogen check found a project file on disk that differs from what rogen write would write now, so the file is stale. Without paths, check compares the project file of every config in the folder. With paths, it compares the project files of the configs that those paths belong to. check writes nothing.

warning: this file is out of date: its sources changed. Run 'rogen write'; to change it, edit default.rogen.json. (output.differs)

Run rogen write. For a project other than default, run rogen write <project>. In --json, the diagnostic carries the command as a run fix. If git tracks the project file, commit the result. If git ignores it, a stale copy does no harm.

Rogen doesn't report a project file that doesn't exist yet.

output.nothingEmitted

Warning. The config has a compiledPath, but the compiled path holds nothing that the compiler or processor should have written for a source path. Rojo would find nothing to sync.

If the compiled path doesn't exist, as before the compiler or processor first runs, there is one warning for the config, however many source paths it has:

warning: the compiled path "out" doesn't exist yet, so Rojo has nothing to sync. Run your compiler or processor first. (output.nothingEmitted)

If the compiled path exists but a source path's part of it is missing, or holds only the placeholders Rogen creates for Rojo, the warning names that source path, and the nearest path that exists when its part is missing. If the output is there but rooted one level off, the warning says where it found the output:

warning: source path "src" has no output under "out/src". The nearest path that exists is "out" — has your compiler or processor run? (output.nothingEmitted)
warning: source path "core" has no output under "out/core". Found "out/Types.luau" — is the output of your compiler or processor rooted differently? (output.nothingEmitted)

Run the compiler or processor first. If the message found the files somewhere else, point compiledPath at the folder that mirrors the source paths.

output.metaNotSynced

Warning. Some .meta.json files have no copy in the compiled path, so Rojo doesn't apply them. Either the compiler didn't copy them, or a processor converted them. Darklua turns them into .meta.lua, which Rojo reads as a ModuleScript.

warning: 1 meta file has no copy under "dist" (src/Inventory/Save.meta.json), so Rojo doesn't apply it. The processor turned it into .meta.lua, a ModuleScript to Rojo. Darklua converts every .meta.json. (output.metaNotSynced)

After the compiler or processor runs, copy the .meta.json files unchanged into the compiled path.

output.dataFileConverted

Warning. A processor turned data files, such as .json or .txt files, into Lua modules in the compiled path. Rojo doesn't find them at the path that the write expects.

warning: 1 data file became a Lua module under "dist" (src/Inventory/Rates.json -> dist/Inventory/Rates.lua), so Rojo doesn't find it. Darklua converts data files and can't copy them. Copy data files into the compiled path unchanged after it runs, or require them as modules. (output.dataFileConverted)

After the processor runs, copy the data files unchanged into the compiled path. Or require them as modules.

compiled.orphan

Warning. The compiled path holds a file that no source file makes. A compiler or processor doesn't delete what it wrote on an earlier run, so a file whose source you removed or renamed stays there. Rogen gives one warning for each folder, and lists the first few files:

warning: dist/Inventory/Old.luau is in the compiled path and no source file makes it, so Rojo may still sync it. Delete it, or compile again from a clean folder. (compiled.orphan)

Delete the file. Or empty the compiled path, and run the compiler or processor again.

Where a folder collapses into one $path, Rojo syncs every file in it, including the stale one. In a folder that doesn't collapse, Rojo skips the stale file, but the file stays on disk.

Rogen matches a file to its source by the name a tool gives it. roblox-ts compiles .ts and .tsx to .luau, and index.ts to init.luau. Darklua turns a data file into .lua. A source that globIgnorePaths leaves out still counts as making its file. A file the tree mounts, such as a compiler's runtime library, is no orphan. When Rogen can't tell, it doesn't warn. rogen check exits 1 on this warning, and build only prints it.

Format

These diagnostics come from rogen fmt-project.

format.writeFailed

Error. rogen fmt-project couldn't write the formatted config. The message gives the reason, without the system's error code.

error: the config could not be written: permission denied. (format.writeFailed)

Check that the file is writable, and that no other program locks it.

Init

These diagnostics come from rogen init, which starts projects and lifts a hand-written default.project.json into a config.

init.configExists

Error. The folder already has a .rogen.json or .rogen.jsonc, either default or named. init never overwrites or changes a config, so it stops and writes nothing. With --agent-rules or --agent-hook, init adds only the agent files instead. A flag that shapes a config, such as --language, is then an error.

error: this config already exists, and init never changes one. Edit it and run 'rogen check'. For agent rules or the hook, run 'rogen init --agent-rules' or 'rogen init --agent-hook'. (init.configExists)

To change the config, edit it and run rogen check. For a new place, copy a config and edit the copy. To add the agent rules or the agent hook later, run rogen init --agent-rules or rogen init --agent-hook. See Working with Agents. To set up Rojo, see Installation.

init.fileExists

Error. A file that init would write already exists, such as a roblox-ts tsconfig.json. init never overwrites a file.

error: this file already exists, and init never overwrites one. Pick another name. (init.fileExists)

Move the file out of the way.

init.projectUnreadable

Error. init found a hand-written default.project.json to lift into default.rogen.json, but it couldn't read the file, or the file isn't a valid project file.

error: couldn't read this file to lift it: permission denied. Fix the file, or move it away to start a new project. (init.projectUnreadable)
error: this file does not exist, so it can't be lifted. (init.projectUnreadable)

Fix the file's permissions or its contents. To start a new project instead, move default.project.json away: init always lifts it when it is there.

init.mountNarrowed

Warning. init lifted a default.project.json with a node that mounts a whole source path, beside nodes that mount folders inside it. Rojo puts those folders in two places. For example, src/server is at ServerScriptService/Server, and also inside the node that mounts src. Rogen turns the folders into routes, and the node that mounts src into the * route. Each folder is then only where its route puts it.

warning: ReplicatedStorage/Common mounted all of src, so Rojo also put src/server inside it. Rogen routes that folder only to ServerScriptService/Server, so a require that reaches it through ReplicatedStorage/Common breaks. Check with 'rogen where src/server'. (init.mountNarrowed)

Change each require that reaches a folder through the mounted node, so that it uses the folder's own node.

init.settingsDropped

Warning. init couldn't keep the settings of a node that it lifted from default.project.json. The node mounts a folder of your source, and no route lands on it, so default.rogen.json has no place for its settings. A setting is any of $properties, $attributes, $className, $ignoreUnknownInstances, $id or a child node.

warning: Workspace/Map set $properties, which default.rogen.json doesn't carry, since no route lands on that node. Add them to the tree by hand. (init.settingsDropped)

Add the settings to the node in the tree of default.rogen.json.

init keeps the settings of a node that a route lands on.

init.codeOutsideSourcePaths

Warning. init found code that no source path holds and that the tree doesn't mount, so Rogen places none of it. Package folders and a compiler's output don't count. With no default.project.json, the source path is src, or the only folder that holds code if no route is named after it. When init lifts a default.project.json, the source path is the closest folder that holds every folder of code that the file mounts. When a route is named after that folder, such as src/server, the source path is its parent, src, if the routes put the code where the file did. If they don't, the tree keeps the mounts.

warning: game and lib hold code outside every source path and mount, so Rogen places none of it. Move it into src, or add its folder to "sourcePaths". (init.codeOutsideSourcePaths)

Move the code into a source path, or add its folders to sourcePaths in the config. If the code isn't part of the game, such as a script that a tool runs, you can leave it where it is.

init.noCodingAgent

Warning, or error. --agent-hook was given, and init found no coding agent in use in the folder. An agent is in use where its folder or file is, such as .claude, CLAUDE.md, .codex, .cursor or .gemini. In a new project it is a warning: init writes the project without the hook. Beside a config, where the hook is all that init was asked to add, it is an error, and init exits with 1.

warning: --agent-hook adds the hook to the coding agents in use here, and init found none, so it adds no hook. An agent is in use where its folder or file is: .claude, CLAUDE.md, .codex, .gemini, GEMINI.md, .cursor, .github/copilot-instructions.md or .github/hooks. Once one is, run 'rogen init --agent-hook'. (init.noCodingAgent)

Start the coding agent in the folder once, so that its folder is there, then run rogen init --agent-hook.

Serve

These diagnostics come from rogen serve and the Rojo server that it starts.

serve.portTaken

Error. Another process holds the port that a config would be served on. If that process is a Rojo server, the message names the project it serves. If a rogen serve started it, the message also names the config file it was started for.

Whether this is an error depends on what started the server:

  • A rogen serve for the same project file: not an error. rogen serve leaves that server running.
  • A rogen serve for another file, in this folder or another, such as a second place on the same port: an error.
  • Anything else, such as a rojo serve you ran yourself or an Argon server: an error, even when it serves a project with the same name. The message says that another process holds the port.
error: Port 34872 is taken by Rojo serving game, which rogen serve started for game.rogen.json, so lobby.rogen.json can't be served there. Stop it, set a servePort in lobby.rogen.json, or run 'rogen serve lobby --port <port>'. (serve.portTaken)

Stop what holds the port, give the config its own servePort in its .rogen.json, or pass a free port with --port. Serve a second place from a second terminal. In --json, fixes holds the command with a free port that Rogen found.

serve.serverExited

Error. A server stopped on its own with a non-zero exit code, or couldn't start. rogen serve then stops and exits 1.

error: Rojo stopped serving default with exit code 1; see what it said above. (serve.serverExited)

Read what the server printed just above the error. It usually says why the server stopped. If the server printed nothing, as when it was killed, the message ends with without saying why.

A Rojo that crashes after it started to serve isn't this error: Rogen starts it again, and reports rojo.crashed when it crashes again right away.

Rojo

These diagnostics come from the Rojo that Rogen runs: a Rojo that can't be found or started, a Rojo too old for what the project file uses, or a Rojo command that failed. Every command that runs Rojo reports them the same way.

rojo.notFound

Error. A command that runs Rojo, such as rogen serve or rogen build -o, found no Rojo. No rokit.toml, aftman.toml or foreman.toml in the folder or above pins it, and it isn't on the PATH. Rogen starts only Rojo, so a pinned Argon doesn't count. If Argon is pinned, the message says so.

error: No Rojo found in a toolchain file or on the PATH. Run 'rokit add rojo-rbx/rojo', then 'rogen plugin install'. (rojo.notFound)
error: No Rojo found in a toolchain file or on the PATH. Run 'rokit add rojo-rbx/rojo', then 'rogen plugin install'. Argon is pinned, but rogen serve only starts Rojo: run 'rogen write --watch' to keep the project files current, and 'argon serve' to serve them. (rojo.notFound)

Pin Rojo with your toolchain manager, then install Rojo's Studio plugin with rogen plugin install:

  • Rokit: rokit add rojo-rbx/rojo
  • Aftman: aftman add rojo-rbx/rojo
  • Foreman: add Rojo to foreman.toml by hand, because Foreman has no add command.

Rogen never installs Rojo. In a new project, rogen init writes the pin into your toolchain file, and you run the manager's install. See Installation. To serve with Argon instead, run rogen write --watch and argon serve.

rojo.notInstalled

Error. A toolchain file pins Rojo, but Rojo isn't installed, so its command isn't on the PATH.

error: rokit.toml pins Rojo as rojo, but it isn't installed. Run 'rokit install'. (rojo.notInstalled)

Run the manager's install command: rokit install, aftman install or foreman install.

rojo.unusable

Error. <tool> --version failed, so Rojo can't start. Rogen runs that command before it runs Rojo. The message ends with the first line that Rojo printed.

error: 'rojo --version' failed, so Rojo can't start: Failed to find tool 'rojo' in any project manifest file. If Rojo isn't pinned yet, run 'rokit add rojo-rbx/rojo'. To set Rojo up by hand, see https://rogen-roblox.vercel.app/docs/v2/installation. (rojo.unusable)

Pin the tool, or fix the install that the quoted line points at. To see the full output, run rojo --version yourself.

A toolchain shim on the PATH fails this way when its project doesn't pin the tool. The message then adds the command that pins it.

rojo.syncRulesUnsupported

Error. The Rojo that would run is older than 7.5.0, and a project file that Rogen wrote has syncRules. Rojo 7.5.0 is the first release that reads them, so an older Rojo would refuse the file. Rogen checks this before it serves anything.

error: Rojo 7.4.4 does not read "syncRules" before 7.5.0, and this file has 2. Change your Rojo pin to 7.5.0 or later, or update the Rojo on the PATH. (rojo.syncRulesUnsupported)

Change the pin to 7.5.0 or later, run the manager's install command, and run your command again. See Installation.

A project file with no sync rules runs on an older Rojo.

rojo.negationUnsupported

Error. The Rojo that would run is older than 7.7.0, and a project file that Rogen wrote has a globIgnorePaths glob that starts with !. Rojo 7.7.0 is the first release that reads such a glob. An older Rojo reads it as a name that starts with !, which matches nothing, so the files that the glob brings back stay ignored. Rogen checks this before it serves anything.

error: Rojo 7.6.1 reads no "!" glob before 7.7.0, so it ignores what this file's 1 re-includes: "!**/Keep.spec.luau". Change your Rojo pin to 7.7.0 or later, or update the Rojo on the PATH. (rojo.negationUnsupported)

Change the pin to 7.7.0 or later, run the manager's install command, and run your command again.

rojo.windowsRules

Error. On Windows, Rojo 7.7.0 applies no sync rule and no ignore glob to a file under a $path outside the project file's folder. rojo sourcemap would then list a tree that differs from the one Rogen wrote. This affects a project file that mounts a folder above its own, as a place that lists ../shared/src does, and that has any sync rule or ignore glob.

error: Rojo 7.7.0 on Windows applies no sync rule or ignore glob to a file under a "$path" outside this file's folder, and this file has 1: "../shared/src". Rojo 7.7.1 fixed it: change your Rojo pin, or update the Rojo on the PATH. (rojo.windowsRules)

Move to Rojo 7.7.1 or later.

Only sourcemap stops with this error. build and serve read the file correctly on 7.7.0. Rojo 7.7.1 fixed the bug, and Rojo 7.5.0 to 7.6.1 don't have it.

rojo.commandFailed

Error. Rojo exited with an error while Rogen ran it, such as rojo build for rogen build -o. The first line says what Rojo couldn't do. Each line that Rojo printed follows, indented, in Rojo's order, and each Caused by: line is one cause in Rojo's chain. In --json, the diagnostic's details array holds those lines.

default.project.json - error: Rojo couldn't build this project: (rojo.commandFailed)
  Unresolvable property in project at path default.project.json
  Caused by: Wrong type of value for property Workspace.Gravity. Expected Float32, got a string

When Rojo printed no error, the first line says how it exited, such as Rojo couldn't build this project (exit code 1).

Fix what Rojo reports, such as a property value of the wrong type or an output folder that doesn't exist, and run the command again.

Rogen had already written the project files when Rojo failed.

A command line that Rojo refuses, such as rogen upload --asset_id abc, is not this diagnostic: Rojo exits 2, and Rogen prints Rojo's lines under error: Rojo refused the command line: and exits 2.

rojo.crashed

Error. Rojo crashed again before it served after a restart, so Rogen stopped. When the Rojo that rogen serve started crashes while it serves, Rogen writes the project file again and starts Rojo again on the same address and port. Rogen then prints this line:

Rojo crashed, so Rogen restarted it on localhost:34872.
  In Studio, press Connect in the Rojo plugin.

If the new Rojo crashes before it serves, Rogen gives up and exits 1. The lines that Rojo printed about the crash follow, indented. In --json, the diagnostic's details array holds those lines.

default.rogen.json - error: Rojo crashed again right after a restart, so Rogen stopped serving default: (rojo.crashed)
  Rojo crashed! You are running Rojo 7.7.1.
  This is probably a Rojo bug.
  Details: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
  in file src/change_processor.rs on line 179

rogen build --watch and rogen sourcemap --watch do the same with Rojo's own watch. They print Rojo crashed, so Rogen restarted it., and give up when the new Rojo crashes before its first build.

Rojo 7.7.0 and 7.7.1 crash this way when you delete a folder that holds files inside a folder that the project file mounts. Rojo 7.6.1 doesn't. A crash after the new Rojo serves or builds gets a new restart, however soon it comes, so deleting several folders one after another keeps Rogen running. When the crashes come one after another, Rogen waits before each restart: half a second, then twice as long each time, up to 10 seconds. Once a Rojo has served for 10 seconds, the next restart comes at once again. Under --verbose, Rogen shows the crash lines of each restart as debug lines.

After a restart, press Connect in the Rojo plugin, because the plugin doesn't connect again by itself.

rojo.commandUnsupported

Error. The Rojo that would run doesn't have the command, because it is older than the release that added it. Today, only rogen syncback can get this error, because rojo syncback arrived in Rojo 7.7.0.

error: Rojo 7.6.1 has no 'syncback' command; Rojo 7.7.0 added it. Change your Rojo pin to 7.7.0 or later, or update the Rojo on the PATH. (rojo.commandUnsupported)

Pin a newer Rojo with your toolchain manager (rokit add rojo-rbx/rojo), or update the Rojo on the PATH.

Syncback

These diagnostics come from rogen syncback, which writes the changes made in a place back to your files.

syncback.busy

Error. Another rogen syncback is running in the same project folder, so this one stopped before it touched anything.

error: another rogen syncback (process 4242) is running in this folder, so this one stopped. Wait for it to end, or remove .rogen-syncback/lock if none is running. (syncback.busy)

Wait for the other run to end. A killed run's lock is taken over on the next run. If none is running, remove .rogen-syncback/lock.

syncback.compiledPath

Warning. The project has a compiledPath, and an instance that comes from it changed in the place, was removed, or is new: a script, or a folder or model the compiler copies there. A tool such as Darklua or rbxtsc writes the compiled path from your source files, so the next compile would replace anything syncback wrote there. Syncback leaves the instance out and writes the rest, such as the folders the tree mounts.

warning: ServerScriptService/Combat/Combat changed in the place, but it is compiled into dist, so syncback left it out. Make the change in the source files. (syncback.compiledPath)
warning: ServerScriptService/Combat/Hit was removed from the place, but it is compiled into dist, so syncback left it out. Remove it from the source files. (syncback.compiledPath)
warning: ServerScriptService/Combat/Loot is new in the place, but the project compiles into dist, so syncback left it out. Add it to the source files. (syncback.compiledPath)

Make the change in the source files the compiler reads.

syncback.removedFromProjectFile

Error. The place no longer holds an instance that a node of the config's own tree defines. Rojo's syncback changes the properties of a project file's nodes, but it never adds or removes a node, so it refuses. Nothing was written.

error: the place no longer holds Workspace/Map, and the tree of the config defines it, which syncback cannot remove. Remove its node from the tree, then run syncback again. (syncback.removedFromProjectFile)

Remove the node from the tree of the .rogen.json, or put the instance back in the place. Then run rogen syncback again.

Rogen syncs the files it placed through a mirror, so it can remove them, except where the project file it writes holds the instance as a node of its own: a folder with a nested project file in it, such as src/Shop/Server/Lib.project.json, and a service that a route makes when the place holds nothing in it. For those, the message names the files to delete, and renaming or deleting that feature in Studio has to wait until they are gone.

syncback.unplaced

Warning. The place holds an instance that no folder of the project can take, so syncback left it out. The message says why.

Syncback writes a new instance where routing would place a file for it, in the style of the nearest files. It can't decide where in these cases:

  • No route puts files where the instance's parent is.
  • Two routes do.
  • The project has several source paths, no file beside the instance and no feature folder of its name in one of them says which one, and no one of them is the place's own. A source path is the place's own when its last folder has the place's name, as src/game for game.rogen.json. When no source path or more than one has that name, the place's own is the one source path inside the config's folder, as src for projects/game/default.rogen.json beside ../common/src, else the one source path that no other config in the config's folder lists.
  • The files beside the instance are split evenly between two folders of one style.

A new instance under a node of the config's tree that has no $path and is not a service goes into the tree as a child node of that node when a node can describe it: a class, properties, attributes, and children that a node can describe too, such as a RemoteEvent, a StringValue or a folder of them. Anything else, such as a script or a model that Rojo writes as a .rbxm file, gets this warning. Give that node a $path, or create the file by hand. Under a service, a node that only routing made, or a node with "$ignoreUnknownInstances": true, syncback leaves a new instance out without a word, as Rojo does, since Studio puts instances of its own there, such as Workspace/Terrain and Lighting/Sky.

Syncback also uses this warning for changes that it can't write:

  • an instance where an ignore glob would put it
  • a property set on one of the instances a feature folder makes, such as ServerScriptService/Inventory for src/Inventory/Server beside src/Inventory/Shared, because the feature folder's init.meta.json sets it on each of them (a property set alike on all of them, or on a feature's only instance, goes into that init.meta.json)
  • a property set on a folder that matches no single folder of the project and that no feature folder makes
  • an instance named like an init file, such as init or init.server, in a folder that matches no single folder of the project, because Rojo reads its file as the folder itself (rename it in Studio)
  • a property set on a node that only routing made and no feature folder makes, because the tree has no node for it
  • a file the tree mounts at more than one node that was edited differently at two of them, or deleted at one while edited at another (Rogen writes the edit)
  • a change that Rojo itself can't sync back, such as a .json or .toml module, which Rojo skips, or a changed .yaml or .yml module, which makes Rojo's syncback fail
warning: ServerScriptService/Inventory/Mail was left out: files beside it are in more than one place, as many in each: src/Inventory/Server, lib/Inventory/Server. (syncback.unplaced)

Create the file where you want it, by hand, and run rogen syncback again. The other changes from the same run were written.

syncback.misplaced

Warning. After syncback, Rogen checked where the files it wrote land, and one of them lands at a different instance than the one in the place. A route for it is missing or ambiguous, or the file's name means something to routing.

warning: this file was written for ServerScriptService/Quest/Mail, and lands at ReplicatedStorage/Shared/Quest/Mail. Move it to where routing puts it at ServerScriptService/Quest/Mail. (syncback.misplaced)

Move or rename the file. Run rogen where on it to see which route places it. See Routing.

Migration

These diagnostics come from a config written for Rogen 1, and from rogen init when it migrates one. See Migrating from v1.

legacy.config

Error. A .rogen.json has keys from Rogen 1, such as source, aliases or a mode. It is a v1 config, which v2 doesn't read.

error: this looks like a config for Rogen 1, which v2 doesn't read. Run 'rogen init' to migrate it, as https://rogen-roblox.vercel.app/docs/v1/migrating-to-v2 says. (legacy.config)

Run rogen init in the config's folder. It writes a v2 config in its place and renames the v1 config to .rogen.json.v1.

legacy.projectUnreadable

Error. The v1 config's project names a file that init can't read as a project file, so init has no tree to start from. It writes nothing.

error: its "project" names base.project.json, which couldn't be read as a project file, so init can't take its tree. Fix the path or the file, then run 'rogen init' again. (legacy.projectUnreadable)

Fix the path in project, or the file it names, and run rogen init again.

legacy.aliasKey

Warning. An alias of the v1 config can't become a route. Its key isn't a route key, which is letters and digits that start with a letter, such as ui-kit. Or it sends files to something that isn't a service, where v1 couldn't place them either.

warning: the alias "ui-kit" can't be a route key, which is letters and digits that start with a letter, so it has no route. Add the route you want by hand, and rename the files that use the alias. (legacy.aliasKey)

Add the route you want to routes, under a key that is letters and digits, such as "UiKit": "StarterGui/client". Then rename the files and folders that used the alias, such as Menu_ui-kit.luau to Menu@UiKit.luau.

legacy.outputClash

Warning. Two modes of the v1 config wrote the same project file, or wrote project files that come out as the same config once v1's tags are gone, so init writes one config for them, from the first mode.

warning: its release mode wrote default.project.json, as an earlier mode did, so init writes only one default.rogen.json. To keep both, copy default.rogen.json, give the copy another name and edit it. (legacy.outputClash)

Copy the config under another name, such as release.rogen.json, and change what differs, such as its compiledPath. Modes that differed only in their tags need a folder for each tag's files, as legacy.tags says, before their configs differ.

legacy.tags

Warning. The v1 config has tags, which v2 doesn't have. init renames none of the files that tags picked, and the message lists them.

warning: v1's tags (dev) aren't carried over, since v2 has none (src/Debug/Cheats_dev.luau). Move each tag's files into a folder, and list it last in "sourcePaths" of the configs that want it. (legacy.tags)

Move each file into a folder of its own, such as dev/Teleport/Teleport.luau for src/Teleport/TeleportDev.luau. List that folder after src in the sourcePaths of each config that should have the file. A later source path's file replaces the one at the same path.

legacy.marker

Warning. A folder has a v1 marker file that v2 has no use for: .structure, .unwrap or .sync. init leaves the file where it is.

warning: v1 mounted this folder as it is. v2 has no such marker: mount the folder with a $path node in the tree, and delete this file. (legacy.marker)

Do what the message says for the marker, then delete the file. For .structure, put an @ marker of the folder's route in it. For .unwrap, give the folder a route whose target has no wrapper folder. For .sync, mount the folder with a $path node in the tree.

legacy.typeScriptName

Warning. A roblox-ts file has a routing word in its name that v1 read and v2 doesn't, such as CombatServer.ts. init doesn't rename it, since renaming a file breaks the imports of it.

warning: v1 routed this file by a word in its name, which v2 doesn't read. init leaves it as it is, since renaming it breaks the imports of it: rename it to Combat@Server.ts and update those imports. (legacy.typeScriptName)

Rename the file to the name in the message, and update the imports of it.

legacy.renameClash

Warning. init can't rename a file that v1 routed by its name. Another file already has the new name, or two v1 configs route the file to different names.

warning: v1 routed this file by a word in its name, and Combat@Server.luau, the name that keeps it there in v2, is taken in its folder, so init leaves it as it is. Rename one of them. .rogen.json is the config that routed it. (legacy.renameClash)

Rename one of the two files. When two configs route a file apart, check where it lands with rogen where.

legacy.outrankedRoute

Warning. A file lands somewhere other than where v1 put it. v1 went by the last routing word in a file's path, and v2 goes by the outermost route. So src/Loading/ReplicatedFirst/Loader.client.luau went to the client in v1, and goes to ReplicatedFirst in v2.

warning: v1 put this file in StarterPlayer/StarterPlayerScripts/client, by the last routing word in its path, and v2 puts it in ReplicatedFirst/client: in v2 the outermost route governs. To keep it where it was, move it out of the folder that routes it to ReplicatedFirst/client. (legacy.outrankedRoute)

Move the file out of the routing folder, so that its own route places it. Or keep it where v2 puts it.

On this page

Configconfig.unreadableconfig.invalidSyntaxconfig.notAnObjectconfig.wrongTypeconfig.unknownFieldconfig.duplicateSourcePathconfig.duplicateKeyconfig.nestedSourcePathconfig.identicalConfigconfig.bothExtensionsconfig.compiledPathOverlapsSourcePathconfig.sourcePathsWithoutRoutesconfig.invalidSyncRuleconfig.invalidRouteKeyconfig.ambiguousKeyconfig.unnamedProjectFileRoutesroblox.unsupportedServiceroblox.invalidFolderroute.unroutedroute.strayAtroute.dotRouteroute.markerClashroute.patternClashroute.folderPatternroute.ignoredAtroute.scriptSuffixBeforeAtroute.scriptClassMismatchroute.caseMismatchroute.serverCodeShippedTreetree.reservedNametree.instanceClashtree.nodeClashtree.mountClashtree.initWithoutFoldertree.hoistedInittree.deadScripttree.runContextTargettree.mountsSourcePathtree.rootNotDataModeltree.unreadableValueMetadatameta.unreadablemeta.invalidSyntaxmeta.byteOrderMarkmeta.notAnObjectmeta.wrongTypemeta.unreadableValuemeta.unknownFieldmeta.unclaimedmeta.appliesToNothingmeta.sharedWithScriptmeta.treePathmeta.treeClassmeta.sameNodemeta.idOnSeveralNodesmeta.runContextOnModulemeta.classNameOnScriptScanningscan.missingSourcePathscan.unmountedSourcescan.noSyncedFilesscan.extensionCasescan.uncompiledscan.syncRuleSuffixscan.nestedProjectscan.sourcePathNamedAfterKeyscan.unresolvedLinkscan.unreadablescan.emptyNamescan.outsideSourcePathsscan.portableNameOutputoutput.writeFailedoutput.differsoutput.nothingEmittedoutput.metaNotSyncedoutput.dataFileConvertedcompiled.orphanFormatformat.writeFailedInitinit.configExistsinit.fileExistsinit.projectUnreadableinit.mountNarrowedinit.settingsDroppedinit.codeOutsideSourcePathsinit.noCodingAgentServeserve.portTakenserve.serverExitedRojorojo.notFoundrojo.notInstalledrojo.unusablerojo.syncRulesUnsupportedrojo.negationUnsupportedrojo.windowsRulesrojo.commandFailedrojo.crashedrojo.commandUnsupportedSyncbacksyncback.busysyncback.compiledPathsyncback.removedFromProjectFilesyncback.unplacedsyncback.misplacedMigrationlegacy.configlegacy.projectUnreadablelegacy.aliasKeylegacy.outputClashlegacy.tagslegacy.markerlegacy.typeScriptNamelegacy.renameClashlegacy.outrankedRoute