primordic/IssueDupesLite huggingface dataset:
Repository: discordjs/discord.js

Issue #3311: Audio not playing and keeps play re-enter sound (linux, windows)
Created: 2019-05-30T11:21:50Z
Please describe the problem you are having in as much detail as possible:
the bot doesn't play the file of mp3 and keeps re-enter the voice channel
Include a reproducible code sample here, if possible:
let voiceChannel = await bot.channels.get(notification.voiceChannel)
      .connection;
    if (!voiceChannel) {
      return;
    }
    let dispatcher = undefined;

    if (notification.type === "boss") {
      dispatcher = voiceChannel.play(
        path.join(resPath, notification.voice + ".mp3")
      );
    }else ~~~
Further details:

discord.js version: master branch
Node.js version: v10
Operating system: linux, windows
Priority this issue should have – please be realistic and elaborate if possible: high



[v ] I have also tested the issue on latest master, commit hash:

Duplicate issue #3378: Audio not playing and keeps play re-enter sound (windows)
Created: 2019-07-15T07:03:22Z
Please describe the problem you are having in as much detail as possible:
the bot doesn't play the file of mp3 and keeps re-enter the voice channel
Include a reproducible code sample here, if possible:
let voiceChannel = await bot.channels.get(notification.voiceChannel)
.connection;
if (!voiceChannel) {
return;
}
let dispatcher = undefined;
if (notification.type === "boss") {
  dispatcher = voiceChannel.play(
    path.join(resPath, notification.voice + ".mp3")
  );
}else ~~~

Further details:
discord.js version: master branch
Node.js version: v10
Operating system: linux, windows
Priority this issue should have – please be realistic and elaborate if possible: high
[v ] I have also tested the issue on latest master, commit hash:

Closing comment (2019-09-10T15:40:49Z): Duplicate of #3311
Repository: discordjs/discord.js

Issue #4949: client.on("guildMemberAdd")
Created: 2020-10-28T18:30:15Z
Not working client.on("guildMemberAdd", async(member) => {console.log(member.id)})

Duplicate issue #4959: client.on('guildMemberRemove') and client.on('guildMemberAdd') suddenly ceased functioning.
Created: 2020-10-30T05:21:55Z
Please describe the problem you are having in as much detail as possible:
From no modification of my own (last edit was 24th of october, issue appeared 26th or 27th of october), my code inside client.on('guildMemberAdd', (member) => {}); and client.on('guildMemberRemove', (member) => {}); stopped working. I tested it with my bot with everything else functioning properly, those doesn't seem to want to trigger.
May or may not be related : I've also encountered an issue including stuff into my cache. I noticed my ''role-react'' message wasn't behaving properly because it's the entrance of my server and nobody would get access. The bot seems to only fetch the specific message in the cache once an input that calls the bot is sent (I use !ping which tells him to delete the !ping message. Once it deletes the message, the role-react function suddenly works, as if the fact that I sent an input to the bot made the cache update, but this wasn't necessary before October 26th to my knowledge). I'll make another issue report once I've properly established the cause and effect, with sample code.
I don't believe anything but source code could affect this.
Include a reproducible code sample here, if possible:
//basic discord stuff
const Discord = require('discord.js');
const client = new Discord.Client();
const token = **replace your own token here** //this requires modification
client.once('ready', () => {
  console.log("I'm in!");
  console.log("-" +client.user.username);
});

//functions to test
client.on('guildMemberAdd', (member) => {
  console.log("someone joined!");
});
client.on('guildMemberRemove', (member) => {
  console.log("someone left!");
});
//end of functions to test

client.login(token);
Further details:

discord.js version: 12.4.1
Node.js version: 12.16.1
Operating system: Repl.it
Priority this issue should have – please be realistic and elaborate if possible: medium

Relevant client options:

partials: none
gateway intents: none
other: none



 I have also tested the issue on latest master, commit hash:

Closing comment (2020-10-30T05:28:59Z): Duplicate of #4949 / #4950
Repository: discordjs/discord.js

Issue #304: Nickname support for message mentions
Created: 2016-04-30T13:30:05Z
Currently msg.mentions[0] only returns null when used with a nickname. Would be great if this allowed the returning of a user object from a nickname mention.

Duplicate issue #326: message mention
Created: 2016-05-06T21:27:29Z
hey there,
I'm trying to fetch the first metioned person in a message, but it returns undefined.
exports.export = (bot, msg) => {

    if (!msg.content.startsWith(bot.prefix)) {
        return;
    }

    var content = msg.content.substr(1);

    if (content.startsWith("warn")) {
        var fs = require('fs');
        var json = require("../json/warns.json");

        var user = msg.mentions[0];
        console.log(user);

    };

};

Closing comment (2016-05-07T00:57:21Z): Dupe of #304
Note: Yeah, the extra ! in nickname mentions screws up the regex... Will try to get a release this weekend
Repository: discordjs/discord.js

Issue #2382: messageDeleteBulk event running twice
Created: 2018-03-04T20:30:32Z
Please describe the problem you are having in as much detail as possible:
The "messageDeleteBulk" event is running twice if I bulk delete once.
Include a reproducible code sample here, if possible:

Further details:

discord.js version: 11.3.2
node.js version: 9.7.1
Operating system: debian
Priority this issue should have – please be realistic and elaborate if possible:



 I found this issue while running code on a user account
 I have also tested the issue on latest master, commit hash:

Duplicate issue #2649: messageDeleteBulk fired twice
Created: 2018-07-05T11:35:48Z
Please describe the problem you are having in as much detail as possible:
I am trying to code a log that logs deleted messages etc... When i started working on the messageDeleteBulk, it logged it twice, after trying and trying ti fix this. I haven't fixed it...
Include a reproducible code sample here, if possible:
const { RichEmbed } = require("discord.js");

module.exports = (client, messageCollection) => {
    let channel = client.channels.get(client.guildSettings.get(messageCollection.first().guild.id).LogChannel);
console.log('Test')
    messageCollection.forEach(message => { 
        client.emit('messageDelete', message)
})
};
Further details:

discord.js version: 11.3.2
node.js version: 8.4.0
Operating system: Mac OS
Priority this issue should have – Medium



 I found this issue while running code on a bot account

Closing comment (2018-07-05T11:43:52Z): Duplicate of #2382 and #2485.
Repository: discordjs/discord.js

Issue #179: Add ability to pause a file thats being played
Created: 2016-02-09T05:41:34Z

Duplicate issue #228: Pause and Resume
Created: 2016-03-19T23:17:37Z
future feature for music?

Closing comment (2016-03-19T23:32:43Z): Duplicate of #179
Yes it will be added soon (most likely after #226 is reviewed)
Repository: django-guardian/django-guardian

Issue #274: Another RemovedInDjango18Warning for Options.module_name
Created: 2014-10-26T12:33:25Z
Here is the warning that I get:
/Library/Python/2.7/site-packages/guardian/admin.py:95: RemovedInDjango18Warning: Options.module_name has been deprecated in favor of model_name
  info = self.model._meta.app_label, self.model._meta.module_name

I use:
django-guardian==1.2.4

Duplicate issue #280: BUG - Admin Panel not working in Django 1.7
Created: 2014-11-12T00:37:21Z
As per documentation:

http://pythonhosted.org//django-guardian/userguide/admin-integration.html

And thats it. We can now navigate to change post page and just next to the history link 
we can click Object permissions button to manage row level permissions.

And here is error printed on Stdout:
/usr/local/lib/python2.7/dist-packages/guardian/admin.py:95: 
 RemovedInDjango18Warning:Options.module_name has been deprecated in favor of model_name

info = self.model._meta.app_label, self.model._meta.module_name

Closing comment (2014-12-22T11:12:12Z): Duplicate of #274?
Repository: django-guardian/django-guardian

Issue #155: Differentiate between Django's default model permissions and custom permissions
Created: 2013-07-23T15:07:06Z
Hi,
I believe this came up before in issue #42 and I think it would be useful to have a mechanism to exclude the default permissions in BaseObjectPermissionsForm.
Unfortunately, as you've indicated in the responses to that issue, there is no real distinction between the Permission instances. I am currently doing this by creating my own Form and overriding get_obj_perms_field_choices() to filter the permissions using  Model._meta like so:
class UserProjectPermissionForm(UserObjectPermissionsForm):
    def get_obj_perms_field_choices(self):
        choices = super(UserProjectPermissionForm, self).get_obj_perms_field_choices()
        return list(set(choices).intersection(Project._meta.permissions))

Of course, I'd like to avoid using a private attribute, but as far as I can tell using _meta is the only way to access the custom permissions. I realize it's just shifting to problem over to guardian, but what about adding an optional init argument to BaseObjectPermissionsForm to set a property like "exclude_default" and then use it in get_obj_perms_field_choices() to filter these permissions using something similar:
def get_obj_perms_field_choices(self):
        """
        Returns choices for object permissions management field. Default:
        list of tuples ``(codename, name)`` for each ``Permission`` instance
        for the managed object.
        """
        choices = [(p.codename, p.name) for p in get_perms_for_model(self.obj)]

        if self.exclude_default:
            choices = list(set(choices).intersection(self.obj._meta.permissions))

        return choices

Does this sound reasonable, or would there be a better way to implement it?
Thanks!

Duplicate issue #380: Global permissions vs object permissions
Created: 2015-12-22T09:57:33Z
There seems to be a number of bugs due to some routines using global permissions, and others only using object permissions. Will close the related bugs and reference them here.

Closing comment (2018-01-11T04:45:44Z): Seems #327 no longer exists. #332 is fixed by the pull request above if accepted. There is just one side issue related to #155 (mentioned above) left. If that was also taken care of (or moved out to a separate issue), this issue could be closed, I think.
Repository: django-guardian/django-guardian

Issue #559: Is possible remove the delete buttons?
Created: 2018-03-27T09:30:56Z
Hi, is possible remove delete function?
class AppSettingAdmin(admin.ModelAdmin):
   #
    def get_actions(self, request): # 
        actions = super(MemberAdmin, self).get_actions(request)
        #
        if 'delete_selected' in actions:
            del actions['delete_selected']
        return actions
    #
    def has_delete_permission(self, request, obj=None): # 
        return False

It Works, but if I use -> GuardedModelAdmin not working

Duplicate issue #558: Is possible remove the delete buttons?
Created: 2018-03-27T09:29:23Z

Closing comment (2018-03-29T00:45:56Z): Duplicate of #559
Repository: django-guardian/django-guardian

Issue #380: Global permissions vs object permissions
Created: 2015-12-22T09:57:33Z
There seems to be a number of bugs due to some routines using global permissions, and others only using object permissions. Will close the related bugs and reference them here.

Duplicate issue #711: Util get_users_with_perms(X) should return users which can access resource X through Django global permissions
Created: 2020-09-02T14:55:13Z
Util get_users_with_perms(X) should return users which can access resource X through Django global permissions

Closing comment (2020-10-18T17:17:45Z): Related to #380
Repository: django-guardian/django-guardian

Issue #337: Direct ForeignKey in Django 1.8
Created: 2015-08-04T22:25:10Z
per Django 1.8, the manager returned by obj._meta.get_all_related_objects() has changed (see: https://docs.djangoproject.com/en/1.8/releases/1.8/) such that permission objects must now be referenced by the related_model field instead of the model field (https://github.com/django-guardian/django-guardian/blob/devel/guardian/utils.py#L153). This change affects get_obj_perms_model(...) and has the consequence that Direct Foreign Key permission models are no longer detected.

Duplicate issue #344: get_obj_perms_model doesn't work, will never return direct foreign key models
Created: 2015-09-01T16:44:36Z
In this code, the following line is wrong:
        model = getattr(attr, 'model', None)
It returns the model to which the permissions are assigned. To return what it's supposed to, it should be:
        model = getattr(attr, 'related_model', None)
Because of this, assign_perm won't find any direct foreign key models. I feel like I might be missing something, as I can't see this issue logged anywhere else and I thought it would have been noticed by now - so sorry if I'm wrong.
I can try and put in a pull request for this tomorrow if needed, as I'd say it's pretty critical. There must be a test or two missing also if it wasn't picked up?

Closing comment (2015-09-01T16:47:57Z): Duplicate of #337 and #319 .
Repository: django-guardian/django-guardian

Issue #307: Django 1.8 GuardedModelAdminMixin.get_queryset exception
Created: 2015-04-16T08:34:50Z
Hi,
I'm using django-guardian (through django-userena) with Django 1.8. When trying to access User model in django admin, GuardedModelAdminMixin raises the following Exception:
'super' object has no attribute 'queryset'
In GuardedModelAdminMixin.get_queryset the problematic code is:
    def get_queryset(self, request):
        # Prefer the Django >= 1.6 interface but maintain
        # backward compatibility
        method = getattr(
            super(GuardedModelAdminMixin, self), 'get_queryset',
            super(GuardedModelAdminMixin, self).queryset)


In Django 1.8 (I guess in all Django >= 1.6) queryset method does not exist, but this part
super(GuardedModelAdminMixin, self).queryset is evaluated and raising Exception even though get_queryset method exists and it's found.

Duplicate issue #315: Queryset exception Django 1.8
Created: 2015-05-01T14:30:02Z
object has no attribute 'queryset'
guardian/admin.py" in obj_perms_manage_view


    obj = get_object_or_404(self.queryset(request), pk=object_pk)

Closing comment (2015-05-09T18:59:30Z): I believe this is a duplicate of #307.
Repository: django-guardian/django-guardian

Issue #397: CSS doesn't load in the latest and stable docs
Created: 2016-02-17T21:56:09Z
Doc pages load without styles even though CSS files load.

Duplicate issue #398: Trouble with django-guardian.readthedocs
Created: 2016-02-18T08:57:57Z
Trouble with readthedocs
http://dl.dropbox.com/u/13258686/%D0%92%D1%8B%D0%B4%D0%B5%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5_028.png

Closing comment (2016-02-18T09:55:05Z): Duplicate of #397.
Repository: django-guardian/django-guardian

Issue #650: Missing user relation with separate DB for sessions
Created: 2019-10-29T13:46:48Z
In #630, the post-migrate signal has been updated to run on the DB being migrated rather than just on the default one and it seems to have caused an issue when using a Database router.
In our case, we have a separate DB for the sessions, our DB router looks like this to ensure session requests & migrations are executed on the right place:
class SessionRouter:
    def db_for_write(self, model, **hints):
        if model == Session:
            return 'session'
        else:
            return None

    def allow_migrate(self, db, app_label, model_name=None, **hints):
        if db == 'session':
            return app_label == 'sessions'
        else:
            return None

However, that means that when the post-migrate signal fires on this DB, when try to fetch or create the anonymous user, but the DB table for the user model doesn't exist there, causing a ProgrammingError with the message relation "auth_user" does not exist.
Works fine with django-guardian 2.0.0 and breaks when updating to 2.1.0. I'll see if I can find some time to send a pull request.

Duplicate issue #658: Way to exclude guardian from apps.
Created: 2019-11-14T22:02:08Z
Hi. I'm looking for way to exclude guardian to being used in some apps.
My Django project has two apps (+ some of builtin or extern). One of them is needed to be on other database, and for them I don't want use guardian (because they don't need to keep permissions). But in migration i got some of errors (https://gist.github.com/SzateX/2c5a6c65c4c3d9bd1e748ee2ba35debc - traceback).
Is any way to exclude guardian from app?

Closing comment (2019-11-18T20:42:02Z): I suspect this is actually a duplicate of #650, which is solved in #651. If so, the key issue that I was missing is that you are using db routing, and multiple databases. Normally multiple apps in one project all share the one database, which is what was confusing me.
Repository: django-guardian/django-guardian

Issue #146: PermissionRequiredMixin not working correctly with Django 1.4.2 CreateView
Created: 2013-06-03T13:39:42Z
View:
class RoleCreate(PermissionRequiredMixin, CreateView):
    model = Role
    template_name = "object_create.html"
    form_class = RoleForm
    success_url = reverse_lazy('management_index')
    permission_required = 'role.create_role'
    return_403 = True
Traceback:

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  48.             return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/guardian/mixins.py" in dispatch
  177.         response = self.check_permissions(request)
File "/usr/local/lib/python2.7/dist-packages/guardian/mixins.py" in check_permissions
  145.         obj = (hasattr(self, 'get_object') and self.get_object()
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/detail.py" in get_object
  46.                                  % self.__class__.__name__)

Exception Type: AttributeError at /project/role-create/
Exception Value: Generic detail view RoleCreate must be called with either an object pk or a slug.


Seems to occur with all CreateViews. Maybe I am doing something wrong but it appears to be related to the checking of the object (in a CreateView it should be None except after a Post).
I'm happy to fix attempt a fix if this is a real problem and not me being daft.

Duplicate issue #279: Can't use PermissionRequiredMixin with a CreateView
Created: 2014-11-09T23:11:36Z
Even though you'd think CreateView doesn't define a get_object, it does (via SingleObjectMixin via ModelFormMixin), then Guardian raises this error:
Generic detail view PropertyCreateView must be called with either an object pk or a slug

You can get around this by defining a get_object(self): return None ... but there should be an override for Guardian maybe "use_object_permissions" which can be set to False. That way, we can use PermissionRequiredMixin for all of our views, not just ones with SingleObjectMixin.

Closing comment (2016-02-22T06:56:42Z): I believe this is a duplicate of #146, so closing this report.
Repository: django-guardian/django-guardian

Issue #254: python3.2 support
Created: 2014-08-19T04:05:14Z
Hello,
With this one line patch, the tests work under Python 3.2:
Index: django-guardian-1.2.4/guardian/models.py
===================================================================
--- django-guardian-1.2.4.orig/guardian/models.py       2014-08-19 10:46:03.875700385 +1000
+++ django-guardian-1.2.4/guardian/models.py    2014-08-19 10:46:25.363209417 +1000
@@ -26,7 +26,7 @@
         abstract = True

     def __unicode__(self):
-        return u'%s | %s | %s' % (
+        return '%s | %s | %s' % (
             unicode(self.content_object),
             unicode(getattr(self, 'user', False) or self.group),
             unicode(self.permission.codename))
The top of this file has:
from __future__ import unicode_literals
So there is no need to use u'...' syntax anywhere, it will do the right thing anyway.

Duplicate issue #283: python 3 failure
Created: 2014-11-24T00:17:40Z
File "/home/brian/tree/debian/unstable/django-guardian/upstream/django-guardian/guardian/models.py", line 29
    return u'%s | %s | %s' % (

All unicode() methods need to be updated. For best solution, see: https://docs.djangoproject.com/en/dev/topics/python3/#str-and-unicode-methods

Closing comment (2014-11-24T00:33:28Z): Sorry, just realized this is a duplicate of #254.
Apologies for creating duplicate tickets, will close this one.
Repository: dlrudie/Snip

Issue #202: Error HRESULT E_FAIL with iTunes
Created: 2017-09-14T05:29:07Z
I updated to the latest version of iTunes for Windows 10 (version 12.7.0.166), but since doing so it doesn't seem to want to play nicely with Snip (version 6.9.1). Whenever I open Snip, it opens iTunes as well, but immediately after iTunes opens I get the following error:
_Please exit iTunes and reselect iTunes from within Snip.
Error HRESULT E_FAIL has been returned from a call to a COM component._
iTunes seems to function fine, but Snip is unable to pick up song info from iTunes. I've tried closing and selecting Snip->iTunes to re-launch iTunes as instructed in the error message, but the same error comes up each time. I've experimented with setting Snip to another service (Spotify, VLC, etc.), opening iTunes separately, and then setting it back to iTunes, and I've also uninstalled and re-installed, but despite my best efforts the error message comes up each time. Has anyone else seen this kind of thing before?

Duplicate issue #236: Snip not working correctly with ITunes 
Created: 2017-12-26T14:17:14Z
I'm a beginning streamer putting music from itunes onto my steam, but when i open Itunes through snip i get this error message

All of the music has been downloaded through apple music, but i get this message when itunes starts up through Snip.

Closing comment (2017-12-27T01:14:41Z): Duplicate #202
Repository: dlrudie/Snip

Issue #306: Spotify Issues
Created: 2018-07-22T14:44:07Z
Spotify's latest update broke Snip so it can no longer read the track and author for an output.

Duplicate issue #307: Spotify and Snip not working
Created: 2018-07-22T18:47:01Z
Hi there. Set up snip in OBS, and when playing a song, all that is says is 'Switched to Spotify' or nothing at all. PLease help.

Closing comment (2018-07-22T18:47:47Z): Duplicate #306
Repository: dlrudie/Snip

Issue #26: New Spotify issue
Created: 2015-03-10T18:00:24Z
When I updated spotify yesterday I got this error when snip try's to open:
The box is titled: Microsoft .NET Framework. It asks me to Quit or Continue and my only choice that works is Quit. Someone please help me resolve this issue.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Winter.Spotify.Update()
at Winter.Snip.TimerScanMediaPlayer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
Snip
Assembly Version: 4.6.0.0
Win32 Version: 4.6.0.0
CodeBase: file:///C:/Users/Chris%20Wallace/Desktop/Snip/Snip.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:

    

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Duplicate issue #31: Completely broken, quick question.
Created: 2015-04-06T01:23:04Z
When do you think that a new version will be released? Whenever I try to launch it, I just get error after error, similar (if not the exact same) to the other open thread. Thanks!

Closing comment (2015-05-10T04:23:00Z): Duplicate of #26.
Repository: dlrudie/Snip

Issue #202: Error HRESULT E_FAIL with iTunes
Created: 2017-09-14T05:29:07Z
I updated to the latest version of iTunes for Windows 10 (version 12.7.0.166), but since doing so it doesn't seem to want to play nicely with Snip (version 6.9.1). Whenever I open Snip, it opens iTunes as well, but immediately after iTunes opens I get the following error:
_Please exit iTunes and reselect iTunes from within Snip.
Error HRESULT E_FAIL has been returned from a call to a COM component._
iTunes seems to function fine, but Snip is unable to pick up song info from iTunes. I've tried closing and selecting Snip->iTunes to re-launch iTunes as instructed in the error message, but the same error comes up each time. I've experimented with setting Snip to another service (Spotify, VLC, etc.), opening iTunes separately, and then setting it back to iTunes, and I've also uninstalled and re-installed, but despite my best efforts the error message comes up each time. Has anyone else seen this kind of thing before?

Duplicate issue #205: Having problems with the new iTunes in Windows
Created: 2017-09-26T17:36:23Z
Every time I select it, it tells me to please exit iTunes and reselect iTunes from within Snip. But when I do it gives the same error:
Error: HRESULT E_FAIL has been returned from a call to a COM component.

Closing comment (2017-10-19T17:14:54Z): Duplicate #202
Repository: dlrudie/Snip

Issue #369: Unable to use app without authorizing Spotify
Created: 2019-07-24T19:04:19Z
When first launching Snip, if you close the Spotify authorization window that shows up (which I did, as I don't use Spotify) you get no context menu when right clicking the application.  Had to kill it through Task Manager.  I tried it another time and got the same result, so I created a Spotify account and authorized Snip and now it works just fine.

Duplicate issue #381: right click
Created: 2019-08-03T07:44:37Z
I am using Win10 and with the latest version when i try to right click the icon in my tray it doesn't bring up no menu to change from spotify to itunes

Closing comment (2019-09-15T07:59:31Z): Duplicate of #369 basically. It's still on my list.
Repository: dlrudie/Snip

Issue #315: Snip not reading Spotify again
Created: 2018-07-30T21:07:37Z
I have updated to 6.10.2 back when it was released (6 days ago) and reinstalled it again today (to be on the safe side) but Snip still will not read spotify :/

Duplicate issue #318: Spotify is not currently running
Created: 2018-08-10T07:14:26Z
6.10.0 and 6.10.2 seem to not see Spotify anymore. I'm running the standalone version not the windows store version. tried running snip in Administrator mode, numerous restarts and it is still not detecting.

Closing comment (2018-08-10T07:59:12Z): duplicate of #315
Repository: dlrudie/Snip

Issue #79: Snip v5.1.0 Invalid JSON string
Created: 2016-01-20T17:31:53Z
Snip keeps popping up with "Invalid JSON string" whenever I try to play a track in Spotify. It's been plaguing me quite a bit since I first got the program a few days ago.

Duplicate issue #94: Microsoft .NET Framework Error
Created: 2016-04-07T19:57:17Z
I can't get this to work. Please help me.

Closing comment (2016-08-19T01:30:11Z): Duplicate of #79.
Repository: dlrudie/Snip

Issue #59: iTunes music information not showing up?
Created: 2015-09-20T19:49:44Z
Everything is up-to-date (Snip, iTunes and OBS) and despite having Snip set to iTunes as per the instructions, and having the Snip file selected as text in OBS. I'm not having any text show up in my OBS. Can you check to see if everything is working? The Snip.txt file is blank no matter what. What's going on?

Duplicate issue #81: Itunes: Doesn't work if artist isnt specified
Created: 2016-01-24T22:46:42Z
Had to add a space in artist for all my songs for it to work

Closing comment (2016-01-24T23:16:54Z): Duplicate of #59.
Repository: dlrudie/Snip

Issue #202: Error HRESULT E_FAIL with iTunes
Created: 2017-09-14T05:29:07Z
I updated to the latest version of iTunes for Windows 10 (version 12.7.0.166), but since doing so it doesn't seem to want to play nicely with Snip (version 6.9.1). Whenever I open Snip, it opens iTunes as well, but immediately after iTunes opens I get the following error:
_Please exit iTunes and reselect iTunes from within Snip.
Error HRESULT E_FAIL has been returned from a call to a COM component._
iTunes seems to function fine, but Snip is unable to pick up song info from iTunes. I've tried closing and selecting Snip->iTunes to re-launch iTunes as instructed in the error message, but the same error comes up each time. I've experimented with setting Snip to another service (Spotify, VLC, etc.), opening iTunes separately, and then setting it back to iTunes, and I've also uninstalled and re-installed, but despite my best efforts the error message comes up each time. Has anyone else seen this kind of thing before?

Duplicate issue #211: Doesn't Work With iTunes
Created: 2017-10-18T05:48:20Z
I keep getting interface not supported. can you please update to work with iTunes.

Closing comment (2017-10-19T17:15:15Z): Duplicate #202
Repository: dnschneid/crouton

Issue #1966: Changing internal resolution on Toshiba CB2
Created: 2015-07-25T14:31:50Z
Hello,
first of all thank you for your great work which led me to buy a Toshiba Chromebook 2 as a portable emacs machine :-)
There is just a little issue I cannot fix: setting ChromeOS internal resolution to 1536x846 makes fonts inside xiwi applications look blurry, as if X used that resolution instead of its native resolution (xrandr report it to be 1536x846).  I tried to change it with xrandr or with setres, but nothing happens (it seems that the framebuffer dimension gets bigger, but not its actual resolution).
Am I missing something (1536x846 should be a virtual resolution, so the actual screen resolution is always 1920x1080, is it right?) or is this how it is supposed to work?
Thank you again

Duplicate issue #2344: Xiwi and external monitors
Created: 2016-01-03T11:43:55Z
I run Crouton on a 2015 Pixel, i use xiwi to run apps. On my laptop i have no problems but as soon i drag windows on my external monitor in an extended screen config the content appears twice as big. Is there anything i can do?
screen:

monitor:

Closing comment (2016-10-11T22:48:19Z): Very similar to #1966, but possibly even trickier...
Repository: dnschneid/crouton

Issue #4803: Debootstrap; Permission Denied
Created: 2022-09-08T22:16:47Z
chronos@localhost / $ sudo crouton -t xfce

Every time I type the command I get this:
WARNING: Your rootfs is writable. Signed boot verification cannot be enabled.
If this is a surprise to you, you should do a full system recovery via USB.
Installing xenial-amd64 chroot to /usr/local/chroots/xenial
Downloading bootstrap files...
/tmp/crouton-installer-cache/crouton: 95: /tmp/crouton-installer-cache/crouton.3x9/installer/ubuntu/bootstrap: /tmp/crouton.UZp/debootstrap: Permission denied
debootstrap error log:
tail: cannot open '/tmp/crouton.UZp/xenial-amd64/debootstrap/debootstrap.log' for reading: No such file or directory
Failed to run debootstrap.
If known, describe the steps to reproduce the issue:

Duplicate issue #4805: sudo crouton -t xfce failing to run debootstrap when i try to run the installer
Created: 2022-09-15T23:34:05Z
```chronos@localhost / $ sudo crouton -t xfce
Installing xenial-amd64 chroot to /usr/local/chroots/xenial
Downloading bootstrap files...
/tmp/crouton-installer-cache/crouton: 95: /tmp/crouton-installer-cache/crouton.46K/installer/ubuntu/bootstrap: /tmp/crouton.GEZ/debootstrap: Permission denied
debootstrap error log:
tail: cannot open '/tmp/crouton.GEZ/xenial-amd64/debootstrap/debootstrap.log' for reading: No such file or directory
Failed to run debootstrap.

Above is me trying to get crouton for the first time on my Chromebook (ASUS).
I followed the steps but when i try to run the installer with `sudo crouton -t xfce` it failed to run the debootstrap? 
If someone can tell me how to fix this that would be awesome :)

on a powerwashed chromebook download crouton, open a shell, run `sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton`. 
Then, put in `sudo crouton -t xfce` and the same error will occur hopefully. 
I think crouton is either outdated or chrome did something thats stopping crouton

Closing comment (2022-09-16T06:18:03Z): ```chronos@localhost / $ sudo crouton -t xfce
Installing xenial-amd64 chroot to /usr/local/chroots/xenial
Downloading bootstrap files...
/tmp/crouton-installer-cache/crouton: 95: /tmp/crouton-installer-cache/crouton.46K/installer/ubuntu/bootstrap: /tmp/crouton.GEZ/debootstrap: Permission denied
debootstrap error log:
tail: cannot open '/tmp/crouton.GEZ/xenial-amd64/debootstrap/debootstrap.log' for reading: No such file or directory
Failed to run debootstrap.

Above is me trying to get crouton for the first time on my Chromebook (ASUS).
I followed the steps but when i try to run the installer with `sudo crouton -t xfce` it failed to run the debootstrap? 
If someone can tell me how to fix this that would be awesome :)

on a powerwashed chromebook download crouton, open a shell, run `sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton`. 
Then, put in `sudo crouton -t xfce` and the same error will occur hopefully. 
I think crouton is either outdated or chrome did something thats stopping crouton


This is a dupe: #4803
Repository: dnschneid/crouton

Issue #3160: Error creating textual authentication agent (admin/sudo prompt)
Created: 2017-03-15T19:11:20Z
chronos@localhost / $ sudo edit-chroot -all
name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20170309181220~master:a72a0cb5
release: xenial
architecture: amd64
xmethod: xorg
targets: x11,core,audio,cli-extra,extension,xiwi,xorg,xfce
host: version 9000.91.0 (Official Build) stable-channel edgar 
kernel: Linux localhost 3.18.0-13530-g8bc6aca #1 SMP PREEMPT Wed Feb 22 23:33:57 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
freon: yes

Please describe your issue:
I cannot launch programs that need administrative privileges (gparted, software center, synaptic etc). Sometimes my Chromebook freezes (have to force restart), or just chroot and I have to force unmount. Launching from command line using gksudo opens the program.
Error creating textual authentication agent: Error opening current controlling terminal for the process ('/dev/tty'): No such device or address
If I do /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1, I get:
(polkit-gnome-authentication-agent-1:20723): polkit-gnome-1-WARNING **: Unable to determine the session we are in: No session for pid 20723
Which sort of makes sense since x-server is not ran as root, I guess. Is there any fix to this or should I just use gksudo instead of opening things from the menu.
If known, describe the steps to reproduce the issue:
Run a program needing administrative privileges not from command line using gksudo, but from the DE's menu.

Duplicate issue #4706: cant think of what to call this
Created: 2022-03-14T08:16:44Z
Please paste the output of the following command here: sudo edit-chroot -all

name: loveforgaming
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/loveforgaming...
crouton: version 1-20220111101058~master:a9eafaee
release: bionic
architecture: amd64
xmethod: xorg
targets: x11,xorg,extension,keyboard,gnome,gnome-desktop,core,audio,cli-extra
host: version 14526.16.0 (Official Build) beta-channel octopus
kernel: Linux localhost 4.14.254-18726-g37ccbe819bb3 #1 SMP PREEMPT Sun Mar 6 19:49:02 PST 2022 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Please describe your issue:
trying to use any app that requires root or even editing users in setting the AUTH prompt doesn't show up, so how would i make t so i can use them without having to launch from terminal using sudo like a regular ubuntu instillation
If known, describe the steps to reproduce the issue:
try installing apps with ubuntu software

Closing comment (2022-03-17T08:03:35Z): related to #3160 closing because it doesnt look like fix has been found
Repository: dnschneid/crouton

Issue #704: hardware acceleration on jessie/sid
Created: 2014-03-17T13:24:10Z
I had no hardware acceleration on my Acer C7 when using the following release saucy, trusty, jessie and sid.
There are two lines in the logs that attract my attention
setversion 1.4 failed: Permission denied
Which I have no idea of what it mean (if someone can, please enlighten me)
and
Gen6+ requires Kernel 3.6 or later.
I still don't know exactly what Gen6+ is, but it seems to be some kind of name for the intel dri
Since my chrome os kernel is 3.4, I downgrader libgl1-mesa-dri to the wheezy version and it seems to work for now (I only tested this fix on sid, but it must work the same on other releases).
I don't know if downgrading mesa is a clean enough fix to be included, but that did it for me.

Duplicate issue #752: Gen6+ requires Kernel 3.6 or later
Created: 2014-04-11T00:47:24Z
"Gen6+ requires Kernel 3.6 or later" is an error I'm receiving when trying to run executable files in the terminal (if not in the terminal, I don't get a message, just doesn't run). I'm currently using Cinnamon and switched from Xfce because of this error. This has been happening for a week now; prior to that executable files worked perfectly.
Of course I tried updating Kernel and everything seemed to be working properly, but after rebooting, the Kernel is still at 3.4 (I think this because that is the version number I see when using the "uname -a" command). I used these instructions for upgrading Kernel: http://www.yourownlinux.com/2014/04/install-upgrade-to-linux-kernel-3-13-8-in-linux.html
That tutorial is from 3 days ago. I tried other tutorials for older Kernel versions also.
Btw, software that was packaged as a .deb or downloaded with "sudo apt-get install" works fine. I guess those are not essentially executable files like they would be on Windows. If you couldn't tell, I'm kinda new to Linux.
Thanks.

Closing comment (2014-04-11T04:33:46Z): You can't upgrade the kernel, because it is a chroot it uses the kernel from the host chromeos.
The issue you are having seems to me a duplicate of #704
Repository: dnschneid/crouton

Issue #2475: Chrome application for easy chroot starting
Created: 2016-03-06T00:26:25Z
I'm not sure if ChromeOS security restrictions will allow this, but if it is possible to create a simple Chrome application to launch Crouton chroot easily?

Duplicate issue #2555: [QUESTION] Do you think it is possible to invoke crouton from a Chrome OS App?
Created: 2016-04-28T10:17:19Z
Hello everyone,
I know this is not really a crouton-specific problem, but I still posted it here.
I'm not sure, but Chrome OS Apps can be written either in javascript, Dart or GoLang, right?
Do you think it would be possible to make Apps that invoke directly crouton to launch graphical apps instead of creating a window of sorts? That would be a really sweet! :)

Closing comment (2016-05-01T02:06:58Z): @Kaegell duplicates #2475
Repository: doctest/doctest

Issue #684: subcase-filter-levels infinite loop
Created: 2022-08-14T19:08:43Z
Description
Here are two simple subclasses:
TEST_CASE("ABC") { SUBCASE("A") {} SUBCASE("B") {} }
And executing 'A' with --subcase-filter-levels=1 results in an infinite loop.
Steps to reproduce
Define the above test cases and execute with arguments: "--test-case=ABC --subcase=A --subcase-filter-levels=1"

Duplicate issue #803: Combining subcases and threads can put doctest into an infinite loop
Created: 2023-09-07T21:58:00Z
TEST_CASE("crash") {
    SUBCASE("sub") { CHECK(true); }
    std::jthread([] { REQUIRE(false); });
};

This test case causes doctest to try and print out its subcase stack 2^64-1 times. The same thing happens with any exception, segfault etc in the sub thread, not just REQUIRE. The problem is that reportFault calls subcase_end according to the max stack depth, not the current stack location, so currentSubcaseLevel gets decremented below 0. Then the logTestStart attempts to print that many names from the subcase stack, with sad results.

Closing comment (2024-08-20T07:39:09Z): Yes please, it would be great to verify. This issue is probably a duplicate of #684 as well.
I think this is the single most serious bug in doctest ATM and needs high priority, so any help is appreciated.
Repository: doctest/doctest

Issue #665: doctest 2.4.9: Pointer comparison in MSVC
Created: 2022-06-22T10:13:33Z
Description
From doctest 2.4.8. to 2.4.9, there seems to be a change in the way pointers are compared. Trivial example below:
    DOCTEST_TEST_CASE("object equality test")
    {
        const auto a = new int();
        const auto b = a;

        //DOCTEST_CHECK(a == b); // compile error
        DOCTEST_CHECK((a == b)); // OK
    }

error LNK2019: unresolved external symbol "public: static void __cdecl doctest::detail::filldata<void const *>::fill(class std::basic_ostream<char,struct std::char_traits<char> > *,void const *)" (?fill@?$filldata@PEBX@detail@doctest@@SAXPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@PEBX@Z) referenced in function "public: struct doctest::detail::Result __cdecl doctest::detail::Expression_lhs<int * const &>::operator==<int * const &>(int * const &)" (??$?8AEBQEAH@?$Expression_lhs@AEBQEAH@detail@doctest@@QEAA?AUResult@12@AEBQEAH@Z)

Looks like doctest is treating the pointers as strings?
Is this an expected new change?
Steps to reproduce
Run the attached minimal example (configure with CMake).
Extra information

doctest version: v2.4.9
Operating System: W10
Compiler+version: VS 2022 17.2.4

doctest-bug.zip

Duplicate issue #686: v2.4.9 do not support CHECK_EQ for 2 ptr
Created: 2022-08-17T09:48:47Z
Description
in some cases, I need to compare 2 ptrs have same memory address or not.
In doctest v2.4.7, just use
CHECK_EQ(ptr1, &(obj2);
it just works well.
but in v2.4.9, it cannot be compiled with messsage "
error: cannot initialize a parameter of type 'const void *' with an lvalue of type 'void *(*)(unsigned long)'
            filldata<const void*>::fill(stream, in);
                                                ^~


and I need change the Assertion statement to
CHECK_EQ(ptr1 == &obj2, true);
Steps to reproduce
use v2.4.8 with assertion of CHECK_EQ 2 ptrs.
Extra information
the new macro DOCTEST_STRINGIFY maybe t the rootcause.

doctest version: v2.4.9
Operating System: Fedora LInux 36 with 5.18.17-200 kernel
Compiler+version: **clang++ 14.0.0-1.fc36 will c++20 flag **

Closing comment (2022-08-23T03:55:52Z): Related to or duplicate of? #665

I think so.
Repository: doctest/doctest

Issue #43: Enhance BDD support
Created: 2016-10-29T18:57:54Z
I really enjoy writing tests using the BDD syntax - the popular chai.js library is a good example (http://chaijs.com/api/bdd/) and although doctest has some support for that (SCENARIO, THEN, WHEN) it would be great to have this support further enhanced.

Duplicate issue #840: Add an "AND_GIVEN" macro for BDD-style test cases
Created: 2024-01-18T13:35:55Z
Description
Feature Request: Add a macro called AND_GIVEN that maps onto SUBCASE except that the subcase name is prefixed by "and given:".
This would be an alternative to AND_WHEN, but with a slightly different semantic meaning, improving the "executable specification" readability even further.

Closing comment (2024-08-16T05:54:10Z): Duplicate of #43
Repository: doctest/doctest

Issue #250: suggestion: STATIC_REQUIRE for testing constexpr code
Created: 2019-06-28T09:17:00Z
I find this very simple macro very useful for testing constexpr code using doctest:
//fails compilation if the check fails, reports at runtime if it succeeds
#define STATIC_REQUIRE(x) static_assert(x); REQUIRE(x)

Duplicate issue #319: [Feature] constant expression checking
Created: 2019-12-16T11:32:29Z
Description
It would be wonderful if doctest supported checking compile-time expressions and run-time expressions together. I'd like to check that my constexpr functions indeed work as compile-time, and at run-time.
Example
template<typename T>
constexpr T square(T const& t) noexcept
{
   if (std::is_constant_evaluated()) {
      return t * t * t; // contrived, but hopefully communicates what's missing
   }
   return t * t;
}

// current
TEST_CASE("only happens at run-time AFAIU") {
   CHECK(square(0) == 0);
   CHECK(square(1.0) == 1.0);
   CHECK(square(2) == 4); // error not caught
}

// proposed
CONSTEXPR_TEST_CASE("happens at both compile-time and run-time") {
   CHECK(square(0) == 0);
   CHECK(square(1.0) == 1.0);
   CHECK(square(2) == 4); // error in the constexpr case
}
Extra information
I doubt this is possible in C++17, but it is certainly doable from C++20 onward (even if it's a bit clunky for now). static_assert is also not helpful here, since only guaranteed constant expressions are allowed to be checked using a static_assert.

Closing comment (2024-08-16T05:14:34Z): Duplicate of #250 .
It's quite easy to implement yourself though. I tested one of my constexpr friendly libs like this: https://github.com/cdeln/cpp_enum_set/blob/master/test/include/testing.hpp
Still a good feature I think, not so much because you want to check that the results are the same (no sane person would use different code paths and runtime and compile time IMO), but if the results do produce different results that is most likely a compiler bug (see this issue I found in GCC for example: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116331 )
Closing due to above reasons.