aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
733 stars 201 forks source link

IntelliJ IDEA on Windows 10 throws java.io.IOException when trying to view EventBridge Schema #1444

Closed chris271 closed 4 years ago

chris271 commented 4 years ago

Describe the bug When using the "View Schema" option for Event Bridge schemas, IntelliJ IDEA for Windows 10 throws a java.io.IOException.

To reproduce

  1. Open 'AWS Explorer' in main IntelliJ IDEA window.
  2. Expand 'Schemas' -> 'aws.events'
  3. Right-click any event and select 'View Schema'
  4. See error below for 'aws.autoscaling@AWSAPICallViaCloudTrail':
    Could not fetch and display schema aws.cloudwatch@CloudWatchAlarmStateChange contents
                java.util.concurrent.CompletionException: java.lang.RuntimeException: java.io.IOException: Invalid file name: 'Profile:default.us-east-1.aws.events.aws.cloudwatch@CloudWatchAlarmStateChange.1.json'
                at java.base/java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
                at java.base/java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
                at java.base/java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
                at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
                at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
                at software.aws.toolkits.jetbrains.services.schemas.SchemaPreviewer$openFileInEditor$1.run(SchemaViewer.kt:143)
                at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:312)
                at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:433)
                ... (show balloon)

Expected behavior The schema should be retrieved and shown for the selected EventBridge schema.

Screenshots image

Your Environment

nikp commented 4 years ago

Likely related to the special character ":" from the profile in the file name

justinmk3 commented 4 years ago

closed by https://github.com/aws/aws-toolkit-jetbrains/pull/1497