Repository navigation
[flutter_tools] Support latest IntelliJ via Jetbrain toolbox - #57963
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Thanks for the suggestions @jmagman. I've added the changes you requested 🙂 |
| if (split.length < 2) { | ||
| return null; | ||
| } | ||
| final int major = int.parse(split[0]); |
There was a problem hiding this comment.
why did you parse these into ints?
There was a problem hiding this comment.
These lines were moved from line 923. Not the best way to do it, but that's how it was done before.
There was a problem hiding this comment.
I used it to check the major and minor version numbers. It was simpler to compare these as int since the can be easily converted back to strings.
There was a problem hiding this comment.
Oh wait @christopherfujino is right, I totally misread this.
There was a problem hiding this comment.
Right, in the previous version I used an if to check the version numbers. I think the ints can be removed now since they are not used. Can I push an update to this?
There was a problem hiding this comment.
You can revert them back to Strings now that you aren't actually checking if it's > 2020
There was a problem hiding this comment.
Ahh, again demonstrating the difficulty of reviewing different versions of a PR on github. Thanks for updating, @Nash0x7E2
|
It would be awesome to get some tests for the plugins directory logic, and we don't have any currently. You mind if I push some to your fork? |
|
@jmagman sure, go for it |
| @@ -1,38 +0,0 @@ | |||
| <?xml version='1.0' encoding='UTF-8'?> | |||
There was a problem hiding this comment.
The original intellij plugins path checking on mac tests thought they were using these two Info.plists, but they actually weren't...
Unused, delete.
christopherfujino
left a comment
There was a problem hiding this comment.
LGTM with a nit to add a comment documenting why we have two paths
| '$id$major.$minor', | ||
| 'plugins', | ||
| ); | ||
| if (!globals.fs.isDirectorySync(pluginsPath)) { |
There was a problem hiding this comment.
could we add a comment here to explain why we have two paths?
There was a problem hiding this comment.
Code updated with comment 👍
|
Does not work for me with Flutter 1.22.1 (neither did it work on earlier versions...) |
|
Same problem here with v1.22.1 |
|
Please file new issues and completely fill out the template so we can triage instead of commenting on merged PRs. Thanks! |
Description
Flutter tools do not recognize the plugin directory of IntelliJ IDEA 2020.1 (installed via Jetbrains Toolbox).
This PR updates the
_pluginsPathto support thepluginssubdirectory used by Jetbrains Toolbox.Related Issues
Ref: #47583
Ref: #57642
Tests
Existing test passing
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change