databrickslabs / remorph

Cross-compiler and Data Reconciler into Databricks Lakehouse
Other
39 stars 25 forks source link

[BUG]: Remorph throws an error about a missing state file (Version.json) when running any command on cygwin #707

Open tripleA-A-A opened 3 months ago

tripleA-A-A commented 3 months ago

Is there an existing issue for this?

Category of Bug / Issue

TranspileParserError

Current Behavior

When running any command Remorph throws the following error

..\remorph\state\version.json: The system cannot find the file specified

Unnamed from Google Image from Googleusercontent

Expected Behavior

State file to be found and Remorph commands to be run successfully

Steps To Reproduce

  1. Windows OS, Using GitBash & also PowerShell
  2. Run any command from Remorph
  3. Remorph cannot find the Version.JSON

Relevant log output or Exception details

No response

Sample Query

databricks labs remorph reconcile

databricks labs transpile --input-sql C:\file --source snowflake

Operating System

Windows

Version

latest via Databricks CLI

vijaypavann-db commented 2 months ago

It seems remorph old version is installed. Please uninstall and do fresh install. It would run without any issues.

Check the existing version: databricks labs installed

Check the latest version here

Uninstall: databricks labs uninstall remorph

Install: databricks labs install remorph

Once remorph is installed, run the CLI commands. Please update here if you face any other issues.