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

Unable to port github.com/mithrandie/csvq to .NET #22

Open
deangoddard opened this issue Aug 11, 2022 · 2 comments
Open

Unable to port github.com/mithrandie/csvq to .NET #22

deangoddard opened this issue Aug 11, 2022 · 2 comments

Comments

@deangoddard
Copy link
Contributor

Even though I am 2 days into GO (golang), I've been able to download, build and run csvq, onto a Windows 10 PC. Works brilliantly.

So thought it would be awesome if I could port it from GO to C#, then I can roll a CsvDataReader similar to a SqlDataReader around the csvq.net port and pull in the data directly into a DTO/POCO.

Upon running go2cs on the csvq => go2cs -o -i -s C:\Repo1\csvq I kept getting WARNING: Failed messages. So then I tried the -r option and nothing in terms of productive C# code was produced. See attached file for the command line output.
go2cs issue.txt

@ritchiecarroll
Copy link
Member

Currently, converted code likely won't immediately compile without work - for large projects, with many dependent projects, perhaps much work.

Work is progressing to better handle code compilation used to make the code compile and operate properly. So at the moment, the tool will help you along, perhaps as much as 80% to 90%, but for the moment, that last 10 to 20% will be on the user, and perhaps hard won.

I am confident based on experience so far, most pure Golang translations in the future will be able to hit near 100% conversion, that is, run immediately - but the project is not quite there yet...

FYI, that's why I haven't had an "official" release yet - if it can get most simple apps converted at 100% and complex apps at > 95%, then this will represent the initial release.

Thanks,
Ritchie

@deangoddard
Copy link
Contributor Author

deangoddard commented Aug 28, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants