Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Initial impl of defaultIde selection setting#522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@bcpeinhardt
Copy link
Contributor

No description provided.

github-actions[bot] reacted with thumbs up emoji

```
./gradlew clean runIDE --args="jetbrains-gateway://connect#type=coder&workspace=dev&agent=coder&folder=/home/coder&url=https://dev.coder.com&token=<redacted>&ide_product_code=IU&ide_build_number=223.8836.41&ide_download_link=https://download.jetbrains.com/idea/ideaIU-2022.3.3.tar.gz"
./gradlew clean runIDE --args="jetbrains-gateway://connect#type=coder&workspace=bcpeinhardt&owner=benpeinhardt&agent=dev&folder=/home/coder&url=https://dev.coder.com&token=<redacted>"
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'll change this back when I'm done messing with it.

@github-actions
Copy link
Contributor

github-actionsbot commentedJan 14, 2025
edited
Loading

Qodana Community for JVM

5 new problems were found

Inspection nameSeverityProblems
Incorrect string capitalization🔶 Warning1
Redundant nullable return type🔶 Warning1
String concatenation that can be converted to string template◽️ Notice2
Redundant lambda arrow◽️ Notice1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register atQodana Cloud andconfigure the action
  2. UseGitHub Code Scanning with Qodana
  3. HostQodana report at GitHub Pages
  4. Inspect and useqodana.sarif.json (seethe Qodana SARIF format for details)

To get*.log files or any other Qodana artifacts, run the action withupload-result option set totrue,
so that the action will upload the files as the job artifacts:

      -name:'Qodana Scan'uses:JetBrains/qodana-action@v2023.3.2with:upload-result:true
Contact Qodana team

Contact us atqodana-support@jetbrains.com

@bcpeinhardt
Copy link
ContributorAuthor

@code-asher I'm not actually sure what the best way to test this is 🤔

@bcpeinhardtbcpeinhardt marked this pull request as ready for reviewJanuary 17, 2025 19:12
Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

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

Makes sense to me!

importcom.jetbrains.gateway.ssh.IntelliJPlatformProduct
importcom.jetbrains.gateway.ssh.deploy.DeployException
importcom.jetbrains.gateway.ssh.util.validateRemotePath
importcom.jetbrains.rd.generator.nova.PredefinedType
Copy link
Member

Choose a reason for hiding this comment

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

You probably already see the warning but appears to be unused (I thinkktlint will delete unused imports if you want to try using that)

// Using contains on the displayable version of the ide means they can be as specific or as vague as they want
// CL 2023.3.6 233.15619.8 -> a specific Clion build
// CL 2023.3.6 -> a specific Clion version
// 2023.3.6 -> a specific version (some customers will on have one specific IDE in their list anyway)
Copy link
Member

Choose a reason for hiding this comment

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

Typo I think inwill on have (will only have maybe)

)

// Check the provided setting to see if there's a default IDE to set.
val defaultIde= ides.find { it->
Copy link
Member

Choose a reason for hiding this comment

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

Qodana will complain aboutit -> since that is the default, although idk how much we should care about Qodana. Possiblyktlint would change this automatically.

Tangent, but I think there is an alias forfind calledfirstOrNull. Kinda surprised there is noindexOfFirstOrNull, onlyindexOfFirst.indexOfFirst().takeIf { it >= 0 } would work around that I guess.

Anyway, no need to change to those, more that I nerd sniped myself. 😆

row(CoderGatewayBundle.message("gateway.connector.settings.default-ide")) {
textField().resizableColumn().align(AlignX.FILL)
.bindText(state::defaultIde)
.comment("The default IDE version to display in the IDE selection dropdown."+
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we need to make mention that JetBrains by default only shows the latest version (latest stable and latest EAP I think, right?), so as soon as JetBrains updates their list this setting may become obsolete unless they are using just the IDE name or year.

But, maybe this option will only be used by folks that have provided their own list instead of fetching from JetBrains, so that might not be an issue.

@code-asher
Copy link
Member

code-asher commentedJan 17, 2025
edited
Loading

I'm not actually sure what the best way to test this is 🤔

I think we have no way to test this view really, but I suppose one could extract the list model and test that part. I did a similar thing with the workspace selection list.

@bcpeinhardtbcpeinhardt merged commitd27a65e intomainJan 17, 2025
6 checks passed
@bcpeinhardtbcpeinhardt deleted the bcpeinhardt/set-default-ide-version-in-dropdown branchJanuary 17, 2025 22:26
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@code-ashercode-ashercode-asher approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@bcpeinhardt@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp