inertia-laravel
inertia-laravel copied to clipboard
[2.x] Revert IDE helpers
Relation PR: #654, #674
Because IDE helpers caused trouble, so revert #413 and #625.
The above Illuminate\Testing part of the IDE helpers was created by @claudiodekker, I'm not the author, so I didn't remove it.
Hope this gets merged - it's small, but a great QOL change
@ycs77 please merge it
I can't merge it because I'm not the maintainer, I do not have permission.😭
@taylorotwell @joetannenbaum could you merge this PR and https://github.com/inertiajs/inertia-laravel/pull/654, https://github.com/inertiajs/inertia-laravel/pull/674?
Sorry, what trouble are they causing?
Sorry, what trouble are they causing?
Since I released the IDE helper update (#413, #625) before, many users have reported that the IDE IntelliSense is broken (https://github.com/inertiajs/inertia-laravel/pull/625#issuecomment-2131961810, #654), although they don't use IDE helper, so this PR will revert the PRs that caused the problem.
Regarding the PR #674 and #654 on the 1.x branch, I think merging it will fix this issue for the users to using 1.x, it just removes the IDE helper file, will not modify any current features, @joetannenbaum can you consider merging it?
Then I add some changes about these PRs:
- #654
- Ignore export
_ide_helpers.phpin.gitattributes
- Ignore export
- #674
- Remove IDE helpers with my added
- #675 (current PR)
- Ignore export
_ide_helpers.phpin.gitattributes - Remove IDE helpers with my added
- Ignore export
If ignore export _ide_helpers.php in .gitattributes, then will not download the _ide_helpers.php in running composer require.
I'd love to see this fix get merged!
@ycs77 I appreciate you working on this!
I have to investigate a little bit further, but perhaps it's fine to remove _ide_helpers.php from the repository at all. Other Laravel packages that provide macros also don't come with this file.
I think it's safe to say we can remove the file. If you want this behavior, you can either use the IDE Helper package (works both in PhpStorm and VS Code) or the Laravel Idea plugin for PhpStorm.
@pascalbaljet I have removed the file. Could you review this PR and PR #740 from 1.x ?
@pascalbaljet I have removed the file. Could you review this PR and PR #740 from 1.x ?
Yes, I saw that, thanks! I've updated the 1.x branch so that the tests work again on GitHub Actions. Gonna do some final checks, and then I'll merge both at the end of the day.