roblox-ts / roblox-ts

A TypeScript-to-Luau Compiler for Roblox
https://roblox-ts.com/
MIT License
890 stars 129 forks source link

--rojo flag is not working while using watch mode #2016

Closed SpencerDevv closed 2 years ago

SpencerDevv commented 2 years ago

image

As you can see here I am trying to use the --rojo flag here to use the lobby.project.json, but it uses the game.project.json.

My Filesystem: image

Dionysusnu commented 2 years ago

The only code path that will emit this warning is if the rojo setting isn't passed in the project options. This has been the case since version 1.0.0-beta.4, so quite a long time. That means this is either an issue with your shell, with yargs, or the CLI wrapper. I've seen it before happening to someone else, not sure how they resolved it.

Dionysusnu commented 2 years ago

I can't reproduce this locally, with the same command on the latest version* of the compiler. Also on PowerShell on Windows 10, running indirectly via a npm script.

*Tested both the latest npm release, 1.3.3, as well as the compiler built from the latest master branch (more specifically as of 3b5016c7)

joritochip commented 2 years ago

Seems like this is an issue with the flamework transformer, not roblox-ts. See https://github.com/rbxts-flamework/core/issues/53

osyrisrblx commented 2 years ago

Closing this in favor of the flamework issue. I'm pretty certain that's what is causing this.