Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Aug 29, 2022

These functions should never be used as public API, as Tracy should not be enforced.

Each dev should is able to use their own functions and ways they're used to - Symfony debug, xdebug, Ray etc. 👍

@TomasVotruba TomasVotruba changed the title make debug functions part of core only, so devs can use their own local functions [DX] Make debug functions part of core only, so devs are not forced to tracy and can use own debug style Aug 29, 2022
@TomasVotruba TomasVotruba changed the title [DX] Make debug functions part of core only, so devs are not forced to tracy and can use own debug style [DX] Make debug functions and trcy part of dev deps, so devs can use own debug style Aug 29, 2022
@TomasVotruba TomasVotruba changed the title [DX] Make debug functions and trcy part of dev deps, so devs can use own debug style [DX] Make tracy debug functions part of dev-only, so developers can use own debug style Aug 29, 2022
@TomasVotruba TomasVotruba enabled auto-merge (squash) August 29, 2022 16:38
@TomasVotruba TomasVotruba disabled auto-merge August 29, 2022 16:38
@TomasVotruba TomasVotruba merged commit 4176a64 into main Aug 29, 2022
@TomasVotruba TomasVotruba deleted the tv-less-debug branch August 29, 2022 16:38
"Rector\\Utils\\": "utils"
},
"files": [
"src/functions/node_helper.php",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/functions can be removed from downgrade workflow

- run: bin/rector process src/functions vendor/symfony/string/Resources/functions.php -c build/config/config-downgrade.php --ansi

Copy link
Member Author

@TomasVotruba TomasVotruba Aug 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in main 👍 Thanks 🙂

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vendor/symfony/string/Resources/functions.php is needed to executed early

@TomasVotruba
Copy link
Member Author

Side effect of this cleanup is 7000 lines less in the shipped in every Rector install 🥳

image

@samsonasik
Copy link
Member

@TomasVotruba I think in our rector-* extensions, we need to have debugger tool, if it goes to require-dev, then they need to have it in the require-dev as wel?

@TomasVotruba
Copy link
Member Author

TomasVotruba commented Aug 29, 2022

Yes, you can the tracy there if/when you need it.

@samsonasik
Copy link
Member

To avoid repetitive create a debug_functions.php, I think we need to have a new repository intead, eg: rector-debugging which contains debug_functions.php content and if there is addition, we can add there instead of update to all repository, then finally, we can require --dev rector/rector-debugging in every repos, wdyt?

@TomasVotruba
Copy link
Member Author

That could a way to go 👍

@samsonasik
Copy link
Member

Ok, I create a repository for it https://github.com/rectorphp/rector-debugging

@samsonasik
Copy link
Member

I create init repo PR for it https://github.com/rectorphp/rector-debugging/pull/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants