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

AutoFilter stops working on 2.8.1 (worked on 2.8.0) #1830

Closed
ebarped opened this issue Feb 28, 2024 · 2 comments
Closed

AutoFilter stops working on 2.8.1 (worked on 2.8.0) #1830

ebarped opened this issue Feb 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ebarped
Copy link

ebarped commented Feb 28, 2024

Description

The autofilter function stops working (on both windows office & linux libreoffice calc) on v2.8.1, but works in v2.8.0.
I didnt make any code changes, only changed the version of excelize in go.mod.
The build and the execution is OK, but the output excel does not have the filters in the column headers.

I call the autofilter like this:

err := f.AutoFilter("sheet1", "A1:E1", []excelize.AutoFilterOptions{})
if err != nil {
	panic(err)
}

Steps to reproduce the issue:

  1. Change the go.mod excelize version to 2.8.1
  2. go run main.go

Describe the results you received:
The excel file did not have the autofilter selector in the columns headers

Describe the results you expected:
The excel file should have the autofilter selector in the columns headers

Output of go version:

go version go1.22.0 linux/amd64

Excelize version or commit ID:

2.8.1

Environment details (OS, Microsoft Excel™ version, physical, etc.):

Linux (Ubuntu 22.04)
LibreOffice 7.3.7.2
@mrhdias
Copy link

mrhdias commented Mar 2, 2024

Some issue with 2.8.1 and ArchLinux with LibreOffice 24.2.1.2 (work with 2.8.0)

@xuri xuri added the bug Something isn't working label Mar 4, 2024
@xuri xuri closed this as completed in f20bbd1 Mar 4, 2024
@xuri
Copy link
Member

xuri commented Mar 4, 2024

Thanks for your issue. This issue has been fixed, please upgrade to the master branch by go get -u github.com/xuri/excelize/v2@master, and this patch will be released in the next version.

@xuri xuri moved this to Bugfix in Excelize v2.9.0 Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Bugfix
Development

No branches or pull requests

3 participants