{"id":16300115,"url":"https://github.com/cjfields/bp6-bug","last_synced_at":"2026-01-31T19:01:05.832Z","repository":{"id":66678089,"uuid":"80796137","full_name":"cjfields/bp6-bug","owner":"cjfields","description":"Lexical loading bug?","archived":false,"fork":false,"pushed_at":"2017-02-05T03:07:01.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T13:52:20.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cjfields.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-03T04:12:03.000Z","updated_at":"2019-12-16T11:18:31.000Z","dependencies_parsed_at":"2023-03-06T00:45:24.161Z","dependency_job_id":null,"html_url":"https://github.com/cjfields/bp6-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjfields/bp6-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjfields%2Fbp6-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjfields%2Fbp6-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjfields%2Fbp6-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjfields%2Fbp6-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjfields","download_url":"https://codeload.github.com/cjfields/bp6-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjfields%2Fbp6-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28950279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T20:50:24.850Z","updated_at":"2026-01-31T19:01:05.787Z","avatar_url":"https://github.com/cjfields.png","language":"Perl6","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bug report\n\nInstead of packaging this up, I'm posting this here so the repo can be easily cloned and tested.\n\nI'm seeing a bug that appeared after lexical module loading was introduced, which is tied to\nthe name of the class and how deep it is in the path.  \n\n```\n[cjfields@Chriss-MacBook-Air lex-bp6]$ tree .\n.\n├── SeqIO.pl6\n└── lib\n    ├── Bio\n    │   ├── SeqIO\n    │   │   └── fasta.pm6\n    │   ├── SeqIO.pm6\n    │   └── fasta.pm6\n    └── fasta.pm6\n\n3 directories, 5 files\n```\n\nIn the script and the directory structure, note that three modules are named similarly, e.g. `fasta`, `Bio::fasta`, and `Bio::SeqIO::fasta`.  The pluggable `Bio::SeqIO` dynamically loads the module passed.  \n\nThe test script:\n\n```perl6\nuse v6;\n\nuse lib './lib';\n\nuse Test;\n\n# Pluggable module\nuse Bio::SeqIO;\n\n# Uncomment these lines and the tests pass\n#use Bio::fasta;\n#use Bio::SeqIO::fasta;\n\n# passes\nlives-ok {Bio::SeqIO.new(format  =\u003e 'fasta')}, 'simple path';\n\n# These next two fail w/ 'No such symbol' errors\nlives-ok {Bio::SeqIO.new(format  =\u003e 'Bio::fasta')}, 'one level deep';\nlives-ok {Bio::SeqIO.new(format  =\u003e 'Bio::SeqIO::fasta')}, 'two levels deep';\n```\n\nNote the commented `use` statements; these should be loaded dynamically.  When running this, the last two tests fail:\n\n```\n[cjfields@Chriss-MacBook-Air lex-bp6 (master)]$ perl6 SeqIO.pl6\nok 1 - simple path\nnot ok 2 - one level deep\n\n# Failed test 'one level deep'\n# at SeqIO.pl6 line 18\n# Can't load Bio::fasta: No such symbol 'Bio::fasta'\nnot ok 3 - two levels deep\n\n# Failed test 'two levels deep'\n# at SeqIO.pl6 line 19\n# Can't load Bio::SeqIO::fasta: No such symbol 'Bio::SeqIO::fasta'\n```\n\nIf you uncomment the line, they pass:\n\n```\n[cjfields@Chriss-MacBook-Air lex-bp6 (master)]$ cat SeqIO.pl6\nuse v6;\n\nuse lib './lib';\n\nuse Test;\n\n# Pluggable module\nuse Bio::SeqIO;\n\n# Uncomment these lines and the tests pass\nuse Bio::fasta;\nuse Bio::SeqIO::fasta;\n\n# passes\nlives-ok {Bio::SeqIO.new(format  =\u003e 'fasta')}, 'simple path';\n\n# These next two fail w/ 'No such symbol' errors\nlives-ok {Bio::SeqIO.new(format  =\u003e 'Bio::fasta')}, 'one level deep';\nlives-ok {Bio::SeqIO.new(format  =\u003e 'Bio::SeqIO::fasta')}, 'two levels deep';\n\n[cjfields@Chriss-MacBook-Air lex-bp6 (master)]$ perl6 SeqIO.pl6\nok 1 - simple path\nok 2 - one level deep\nok 3 - two levels deep\n[cjfields@Chriss-MacBook-Air lex-bp6 (master)]$\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjfields%2Fbp6-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjfields%2Fbp6-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjfields%2Fbp6-bug/lists"}