Giter Club home page Giter Club logo

Comments (11)

karrick avatar karrick commented on May 26, 2024 2

@sentriz, thanks for pointing out the path not getting set bug. I fixed it and did a code audit to make sure that path was set every time a Dirent is created.

Please give https://github.com/karrick/godirwalk/releases/tag/v1.15.2 a try.

from gonic.

Flameborn avatar Flameborn commented on May 26, 2024 2

Just finished scanning my library and all seems to be well: symlinks work as expected, and there are no panics.

from gonic.

sentriz avatar sentriz commented on May 26, 2024

should be fixed now. try v0.6.1

can reopen if somethings gone wrong. thanks!

from gonic.

Flameborn avatar Flameborn commented on May 26, 2024

Thank you very much for adding this.

The symlinks seem to work fine, however at the moment I am getting:

panic: runtime error: invalid memory address or nil pointer dereference

I am not sure if it is because of a folder, or a tag read error (those can cause a similar panic).

from gonic.

sentriz avatar sentriz commented on May 26, 2024

hmm. could you post the full traceback with the panic please?

from gonic.

Flameborn avatar Flameborn commented on May 26, 2024
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x88 pc=0x377a0c]
goroutine 70 [running]:
senan.xyz/g/gonic/scanner.(*Scanner).callbackPost(0x1995a10, 0x19715c0, 0xb, 0x18ee2d0, 0x0, 0x0)
        /home/alarm/git/gonic/scanner/scanner.go:232 +0x70
github.com/karrick/godirwalk.walk(0x19715c0, 0xb, 0x18ee2d0, 0x1be1f88, 0xb, 0x0)
        /home/alarm/go/pkg/mod/github.com/karrick/[email protected]/walk.go:308 +0x30c
github.com/karrick/godirwalk.walk(0x19b8fa7, 0x5, 0x1a13fe0, 0x1be1f88, 0x0, 0x0)
        /home/alarm/go/pkg/mod/github.com/karrick/[email protected]/walk.go:280 +0x258
github.com/karrick/godirwalk.Walk(0x19b8fa7, 0x5, 0x1830788, 0x12, 0x9c14a0)
        /home/alarm/go/pkg/mod/github.com/karrick/[email protected]/walk.go:220 +0x13c
senan.xyz/g/gonic/scanner.(*Scanner).Start(0x1995a10, 0x0, 0x0)
        /home/alarm/git/gonic/scanner/scanner.go:88 +0x1c4
senan.xyz/g/gonic/server/ctrladmin.(*Controller).ServeStartScanDo.func1.1(0x19abc00)
        /home/alarm/git/gonic/server/ctrladmin/handlers.go:265 +0x28
created by senan.xyz/g/gonic/server/ctrladmin.(*Controller).ServeStartScanDo.func1
        /home/alarm/git/gonic/server/ctrladmin/handlers.go:264 +0x2c

from gonic.

sentriz avatar sentriz commented on May 26, 2024

hi!
I can reproduce this. while scanning I keep track of the tree using a stack, pushing for dirs, and popping when we leave them. symlinks to dirs aren't being pushed currently, so the nil pointer happens when the pop happens but nothing there.

i've asked a quesstion about this here

karrick/godirwalk#44

from gonic.

karrick avatar karrick commented on May 26, 2024

karrick/godirwalk#45

from gonic.

karrick avatar karrick commented on May 26, 2024

The following tag has the feature request, however I have been testing a performance improvement branch, and am about ready to release that, but wanted to get this feature out for you first.

https://github.com/karrick/godirwalk/releases/tag/v1.15.1

from gonic.

sentriz avatar sentriz commented on May 26, 2024

thank you for that karrick. comment left here:

karrick/godirwalk#45 (comment)

not sure if you get notified for closed PRs

from gonic.

sentriz avatar sentriz commented on May 26, 2024

@Flameborn could you try gonic v0.6.2 if you have a chance?

from gonic.

Related Issues (20)

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.