question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[1.12.2] /ct syntax doesn't print errors in chat in 4.1.20.620

See original GitHub issue

Intro:

Issue Description:

in 4.1.20.620 /ct syntax only prints obvious syntax errors like spamming a lot of meaningless brackets, but nothing else will be printed in chat such as non-existent types, functions etc In 4.1.20.619 it prints all errors in the chat. Also no error message is sent to the chat when joining a world, this isn’t the case in 4.1.20.619

What happens:

/ct syntax says that this script is correct:

fsdfsg.dngidnsfigisdfgni() = fdsfsddgsg;
var sdffsdgfsg as dftsg = sdffjidsfjisdjgij;

What you expected to happen:

It should print errors in the chat, which is the case prior to version 619 Or, if this change is intended, it should at least say that there are non-syntax errors when doing /ct syntax. When there are a lot of scripts it’s very hard to find errors in the log.

Script used:

Codeblock above

crafttweaker.log file:

It prints error in the log when loading the game and prints errors in the log when doing /ct syntax, but printing them in the chat is obviously better for debugging https://paste.ubuntu.com/p/JzXSsQCGNV/


Environment:

  • Minecraft Version: 1.12.2
  • Forge Version: 14.28.5.2854
  • CraftTweaker Version: 4.1.20.620
  • Are you using a server: no
  • If yes, does the client have the exact same scripts?

Game log:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
TCreoparghcommented, Feb 22, 2021

does /ct syntax work if you’re on a server and opped?

Nope, still doesn’t work as intended

0reactions
TCreoparghcommented, Feb 25, 2021

Fixed in 4.1.20.622

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found