Skip to content

Windows build ignores CSV file path argument and opens "Empty 1" #30

@MatiasWyso

Description

@MatiasWyso

On Windows 10, Tablecruncher 1.8 opens an empty document instead of the selected CSV file when launched via file association or command line.

Steps to reproduce

  1. Install Tablecruncher 1.8 for Windows.
  2. Associate .csv files with Tablecruncher.
  3. Double-click any .csv file.

Expected behavior

The selected CSV file should open in Tablecruncher.

Actual behavior

Tablecruncher opens an empty document named Empty 1.

Also reproducible from PowerShell

& "C:\Program Files (x86)\Tablecruncher\Tablecruncher.exe" "C:\temp\test.csv"

This also opens Empty 1 instead of C:\temp\test.csv.

Environment
OS: Windows 10
Tablecruncher version: 1.8
Install path: C:\Program Files (x86)\Tablecruncher\Tablecruncher.exe
Possible cause

On Windows, main.cpp uses WinMain with lpCmdLine, but the file-opening logic for command-line arguments appears to be implemented only in the non-_WIN64 argc/argv path.

As a result, the Windows build seems to ignore the file path argument passed by Explorer or PowerShell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions