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
Open 'AWS Explorer' in main IntelliJ IDEA window.
Expand 'Schemas' -> 'aws.events'
Right-click any event and select 'View Schema'
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
Your Environment
OS: Windows 10
JetBrains' Product: IntelliJ IDEA
JetBrains' Product Version: IntelliJ IDEA 2019.3.1 (Ultimate Edition) Build #IU-193.5662.53, built on December 18, 2019
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
Expected behavior The schema should be retrieved and shown for the selected EventBridge schema.
Screenshots![image](https://user-images.githubusercontent.com/21958258/71091746-b59ad400-2173-11ea-9b90-1afcb861fcdf.png)
Your Environment