[Downloader] Shows cogs that are not installed as installed. #4117

Closed
opened 2020-07-26 12:40:45 +02:00 by Dav-Git · 5 comments
Dav-Git commented 2020-07-26 12:40:45 +02:00 (Migrated from github.com)

Other bugs

What were you trying to do?

Trying to see what cogs I have installed.

What were you expecting to happen?

The bot to show me all my INSTALLED loaded and unloaded cogs

What actually happened?

"unloaded" field shows cogs that aren't even installed. Trying to uninstall the cogs shown fails.

How can we reproduce this issue?

I don't know to be honest.

Screenshot_20200726-123959.jpg

# Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Trying to see what cogs I have installed. #### What were you expecting to happen? The bot to show me all my INSTALLED loaded and unloaded cogs #### What actually happened? "unloaded" field shows cogs that aren't even installed. Trying to uninstall the cogs shown fails. #### How can we reproduce this issue? <!-- Replace with numbered steps to reproduce the issue --> I don't know to be honest. ![Screenshot_20200726-123959.jpg](https://user-images.githubusercontent.com/57032623/88477065-73691a80-cf2c-11ea-8c8f-cae4d1b1b0f2.jpg)
Dav-Git commented 2020-07-26 12:47:52 +02:00 (Migrated from github.com)

As an addition, it also shows loaded cogs as unloaded. Screenshot_20200726-124625.jpgScreenshot_20200726-124645.jpg

System logs are clear except for the traceback shown

As an addition, it also shows loaded cogs as unloaded. ![Screenshot_20200726-124625.jpg](https://user-images.githubusercontent.com/57032623/88477191-70225e80-cf2d-11ea-87b5-147a50b22856.jpg)![Screenshot_20200726-124645.jpg](https://user-images.githubusercontent.com/57032623/88477195-71ec2200-cf2d-11ea-9168-dbacf83e4b3c.jpg) System logs are clear except for the traceback shown
Jackenmen commented 2020-07-26 17:25:10 +02:00 (Migrated from github.com)

[p]cogs just shows all cog packages that are in any cog path ([p]paths), any package inside some cog path can be in practicality called "installed".
But if these "not installed" cog packages are in <datapath>/cogs/CogManager/cogs path, and you aren't the one who put them there manually, maybe it is a bug with Downloader, but unless you can reproduce it, there's not much we can really do about it.
As for showing loaded cogs as unloaded, the cog package (called extension in d.py terminology) called "dev" is not loaded, there just already exists a different cog (not cog package) with name "Dev" (which most likely is the one loaded by --dev flag) and that's what dev cog package tries to add and fails.

`[p]cogs` just shows all cog packages that are in any cog path (`[p]paths`), any package inside some cog path can be in practicality called "installed". But if these "not installed" cog packages are in `<datapath>/cogs/CogManager/cogs` path, and you aren't the one who put them there manually, maybe it is a bug with Downloader, but unless you can reproduce it, there's not much we can really do about it. As for showing loaded cogs as unloaded, the cog **package** (called extension in d.py terminology) called "dev" is not loaded, there just already exists a different cog (not cog package) with name "Dev" (which most likely is the one loaded by `--dev` flag) and that's what `dev` cog package tries to add and fails.
Dav-Git commented 2020-07-26 18:16:46 +02:00 (Migrated from github.com)

You're right on dev. Completely forgot I was running with --dev. The cogs shown are not in any cog path. I double-checked before opening the issue. I didn't do anything for this to happen. It just appeared like this overnight and a restart doesn't fix the issue either

You're right on dev. Completely forgot I was running with --dev. The cogs shown are not in any cog path. I double-checked before opening the issue. I didn't do anything for this to happen. It just appeared like this overnight and a restart doesn't fix the issue either
Jackenmen commented 2020-07-26 18:21:25 +02:00 (Migrated from github.com)

The cogs shown are not in any cog path.

I am doubting a bit that this is true - one of your cog paths appears to be /home/discbot/git-stuff/Trusty-cogs (see the traceback that you sent of trying to load dev cog package) and I am taking an educated guess that it contains all these "not installed" cogs.

> The cogs shown are not in any cog path. I am doubting a bit that this is true - one of your cog paths appears to be `/home/discbot/git-stuff/Trusty-cogs` (see the traceback that you sent of trying to load `dev` cog package) and I am taking an educated guess that it contains all these "not installed" cogs.
Dav-Git commented 2020-07-26 18:47:05 +02:00 (Migrated from github.com)

Yes you are right. I forgot that I had overwritten the path command... Big mistake on my end. This is a non-issue afterall.

Yes you are right. I forgot that I had overwritten the path command... Big mistake on my end. This is a non-issue afterall.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#4117
No description provided.