onflow / onflow/flow-cli

flow deploy parsing error does not give enough context

Open
#1,310 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Feedback Improvement
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Problem

Trying to deploy using flow deploy if there are errors in one file does not show what file the error is in

Steps to Reproduce
  • checkout flow-nft in standard-v2 branch
  • start emulator flow emulator -v using 1.8.0 of flow-cli
  • deploy flow deploy -n emulator
❌ Command Error: Parsing failed:
error: unexpected identifier
  --> :50:28
   |
50 |     access(all) entitlement Withdrawable
   |             ^
Acceptance Criteria

The error shows the file that it fails to parse.

Context

Upgrading .find to stable cadence.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with flow deploy -n emulator after checking out flow-nft on the standard-v2 branch and running the 1.8.0 emulator. Trace the deploy parsing error and make the reported error include the file that failed to parse; done means the filename appears alongside the existing line and column details.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.