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

Filename containing "." is not correctly processed #409

Closed
tjfsteele opened this issue Jan 25, 2024 · 7 comments
Closed

Filename containing "." is not correctly processed #409

tjfsteele opened this issue Jan 25, 2024 · 7 comments
Assignees

Comments

@tjfsteele
Copy link
Contributor

Describe the bug
If the project filename contains a "." e.g. V1.3 then it gets truncated after the "." so generated files end in V1 instead of V1.3

To Reproduce
Steps to reproduce the behavior:

  1. Open a project with "." in the filename
  2. Open the plugin
  3. Generate files
  4. See error

Expected behavior
Filename should be preserved

KiCad Version

Application: KiCad PCB Editor x64 on x64

Version: 7.0.9, release build

Libraries:
	wxWidgets 3.2.3
	FreeType 2.12.1
	HarfBuzz 8.2.1
	FontConfig 2.14.2
	libcurl/8.4.0-DEV Schannel zlib/1.3

Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
	Date: Nov  5 2023 19:26:40
	wxWidgets: 3.2.3 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.4.0-DEV
	ngspice: 41
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
	KICAD_SPICE=ON
@tjfsteele
Copy link
Contributor Author

tjfsteele commented Jan 25, 2024

I think this can be fixed by changing fabrication.py in 3 places as follows

        zipname = f"GERBER-{self.filename[:-4]}.zip"

        cplname = f"CPL-{self.filename[:-4]}.csv"

        bomname = f"BOM-{self.filename[:-4]}.csv"

Tested and working here.

@tjfsteele
Copy link
Contributor Author

Submitted PR #410

@Bouni Bouni reopened this Jan 26, 2024
@Bouni
Copy link
Owner

Bouni commented Jan 26, 2024

Hey, thanks for pointing this out!

I've seen your issue and was about to take care of it but realized you already closed the issue.
Please leave it open until the issue is resolved!

@tjfsteele
Copy link
Contributor Author

I closed it because I submitted a PR. Happy for you to reopen it if that helps. Thanks for your hard work on this plugin.

@Bouni
Copy link
Owner

Bouni commented Jan 29, 2024

@tjfsteele Have you seen the review request I made in the PR?

@tjfsteele
Copy link
Contributor Author

I can't see any review requests on #410

@Bouni Bouni closed this as completed Jan 29, 2024
@Bouni
Copy link
Owner

Bouni commented Jan 29, 2024

I've replaced it for you. Thanks for your PR anyways 👍🏽

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