Git Product home page Git Product logo

procon-gardener's Introduction

GitHub Stats Card Top Languages Card (Compact layout)

SAT Solvers

togasat screwsat

procon-gardener's People

Contributors

balut-moko avatar polyester-ctrl avatar togatoga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

procon-gardener's Issues

Error happens when trying to install procon-gardener

I came across following error.
our distribution is Ubuntu 18.04.5 LTS and the version of Go is go1.11.5

go get github.com/togatoga/procon-gardener


# github.com/thoas/go-funk
go/src/github.com/thoas/go-funk/retrieve.go:16:34: result.IsZero undefined (type reflect.Value has no field or method IsZero)
go/src/github.com/thoas/go-funk/retrieve.go:60:59: resultValue.IsZero undefined (type reflect.Value has no field or method IsZero)
go/src/github.com/thoas/go-funk/transform.go:530:10: fRet.IsZero undefined (type reflect.Value has no field or method IsZero)
go/src/github.com/thoas/go-funk/transform.go:538:9: ret.IsZero undefined (type reflect.Value has no field or method IsZero)
go/src/github.com/thoas/go-funk/utils.go:49:36: actualValue.IsZero undefined (type reflect.Value has no field or method IsZero)

procon-gardener archiveがファイルを保存しない

環境

Windows11 Pro 22H2 OSビルド22621.2428 
go1.21.4
(GitHub Actions上のUbuntu-latest、go1.18でも同様の症状を確認しました。)

症状

procon-gardener archiveを実行すると、コードが保存されないまま実行が終了する。
具体的には、

$ procon-gardener archive

2023/11/10 23:39:15 Archiving 192 code...

と表示され、そのまま数分待機の後、何も表示されず、ファイルの作成もせずに実行が終了します。

原因と対応案

AtcoderのエディタがAceに変更になったことで、提出ページのコードを取得するためのCSSセレクタも変更されたことが原因だと思います。実際、上記環境において、

doc.Find(".linenums").Each(func(i int, gs *goquery.Selection) {

の部分のCSSセレクタを以下のように#submission-codeに変更したところ、正常にアーカイブされました。

doc.Find("#submission-code").Each(func(i int, gs *goquery.Selection) {

なので、このようにCSSセレクタを変更することで対応できると思います。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.