Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin cannot connect to the Emulator when private key in file mode with cadence.customConfigPath not project root #465

Closed
btspoony opened this issue Nov 2, 2023 · 1 comment · Fixed by #466
Labels
bug Something isn't working

Comments

@btspoony
Copy link

btspoony commented Nov 2, 2023

Instructions

Problem

https://discord.com/channels/613813861610684416/1169205586496331836/1169579486229041259
When I set the private key of emulator-account to key: { "type": "file", "location": "./emulator.key"}
the Cadence VSCode plugin cannot connect to the Emulator properly.
It must be changed to key: "{privatekey}" in order to let the plugin work correctly.
In the project settings, there is a .vscode/setting.json file, and cadence.customConfigPath is configured for flow.json instead of being in the root directory.

Steps to Reproduce

  1. place the flow project in a subfolder instead of the root directory and set the cadence.customConfigPath
  2. change the private key of emulator-account to key: { "type": "file", "location": "./emulator.key"}
  3. create an emulator.key file including the private key
  4. start emulator, can start normally..
  5. the plugin will not be connnected.
  6. change the key to key: "{privateKey}"
  7. restart language service, the plugin will be working.

Acceptance Criteria

The plugin works well.

Context

https://discord.com/channels/613813861610684416/1169205586496331836/1169579486229041259

@btspoony btspoony added the bug Something isn't working label Nov 2, 2023
@jribbink
Copy link
Contributor

This will no longer be an issue when the emulator connection is removed #466

@jribbink jribbink mentioned this issue Nov 15, 2023
6 tasks
@github-project-automation github-project-automation bot moved this to ✅ Done in 🌊 Flow 4D Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants