Giter Club home page Giter Club logo

discord-qt's Introduction

๐Ÿ‘‹ Hey there!

Telegram Twitter

I am Ruslan Garifullin, a bachelor of Software Engineering at Higher School of Economics, who is very passionate about writing code. I see open-source projects as an effective way to learn how to write code and educate yourself and people around in the most pleasant way possible.

Front-end development

TypeScript React Next.js Svelte

Back-end development

NestJS Node.js PostgreSQL MongoDB Docker

App development

Electron React Native C#

Active projects

  • Healthcare DApp: A decentralized healthcare data management application which uses Web3 and peer-to-peer technologies to store and securely share your health data with your specialists.
  • ISConsultant: A WebRTC-based Legal Advice Video Conferencing Solution.
  • AtomOS: A stylish Linux desktop environment written in JavaScript.
  • DiscordQt: An open-source Discord client that aims to deliver the same experience with a lower performance cost.

discord-qt's People

Contributors

chechirecat avatar cyberflamego avatar dependabot[bot] avatar kirasmith-dev avatar maks-s 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discord-qt's Issues

discord-qt.desktop file is wrong

It appears you have made mistakes in the .desktop file, you have the following line in Exec section as follows; Exec=AppRun %F

It's suppose to be pointing to the executable binary like so; Exec=Discord-Qt because by default .desktop files search in /usr/bin/ for the binary executable. If it's meant to run AppRun then you have to enter the full path to that executable binaries location to tell the system to open from that path.

image

AppImage crashes with no such file error

When starting up from the AppImage, I get this error in the console, and am then kicked into the nodejs console

[Patches] Applied 16 patches.
Welcome to Node.js v14.2.0.
Type ".help" for more information.
> QWidget::setMinimumSize: (ActionsMenu/NMenu) Negative sizes (220,-16) are not possible
Promise rejected. Error: ENOENT: no such file or directory, mkdir '/tmp/.mount_discorTxXovJ/dist/plugins'
    at Object.mkdirSync (fs.js:940:3)
    at PluginManager.recursiveSearch (/tmp/.mount_discorTxXovJ/dist/index.js:2:1971215)
    at /tmp/.mount_discorTxXovJ/dist/index.js:2:1971081
    at Array.map (<anonymous>)
    at PluginManager.reload (/tmp/.mount_discorTxXovJ/dist/index.js:2:1971068)
    at Application.start (/tmp/.mount_discorTxXovJ/dist/index.js:2:1823034) {
  errno: -2,
  syscall: 'mkdir',
  code: 'ENOENT',
  path: '/tmp/.mount_discorTxXovJ/dist/plugins'
} Promise {
  <rejected> Error: ENOENT: no such file or directory, mkdir '/tmp/.mount_discorTxXovJ/dist/plugins'
      at Object.mkdirSync (fs.js:940:3)
      at PluginManager.recursiveSearch (/tmp/.mount_discorTxXovJ/dist/index.js:2:1971215)
      at /tmp/.mount_discorTxXovJ/dist/index.js:2:1971081
      at Array.map (<anonymous>)
      at PluginManager.reload (/tmp/.mount_discorTxXovJ/dist/index.js:2:1971068)
      at Application.start (/tmp/.mount_discorTxXovJ/dist/index.js:2:1823034) {
    errno: -2,
    syscall: 'mkdir',
    code: 'ENOENT',
    path: '/tmp/.mount_discorTxXovJ/dist/plugins'
  }
}
> QComboBoxListView(0x5796780)  does not have a property named  "yBorder"
QComboBoxListView(0x5796780)  does not have a property named  "yBorder"
QComboBoxListView(0x5779970)  does not have a property named  "yBorder"
QComboBoxListView(0x5779970)  does not have a property named  "yBorder"
QComboBoxListView(0x5838220)  does not have a property named  "yBorder"
QComboBoxListView(0x5838220)  does not have a property named  "yBorder"
QComboBoxListView(0x583afc0)  does not have a property named  "yBorder"
QComboBoxListView(0x583afc0)  does not have a property named  "yBorder"
QComboBoxListView(0x5845c70)  does not have a property named  "yBorder"
QComboBoxListView(0x5845c70)  does not have a property named  "yBorder"
QScrollBar(0x537d9e0)  does not have a property named  "yMarginRight"
QScrollBar(0x537e3e0)  does not have a property named  "yMarginRight"
QScrollBar(0x537d9e0)  does not have a property named  "yMarginRight"
QScrollBar(0x537e3e0)  does not have a property named  "yMarginRight"
QScrollBar(0x4bde460)  does not have a property named  "yMarginRight"
QScrollBar(0x4b94ed0)  does not have a property named  "yMarginRight"
QScrollBar(0x4bde460)  does not have a property named  "yMarginRight"
QScrollBar(0x4b94ed0)  does not have a property named  "yMarginRight"
QComboBoxListView(0x4bcf4f0)  does not have a property named  "yBorder"
QComboBoxListView(0x4bcf4f0)  does not have a property named  "yBorder"

Not sure if the Qt warnings are related. I think something has clearly gone wrong with fileio

Crash on start: Symbol lookup error

I am on arch linux and I installed the discord-qt AUR package. My system is up to date

Here is the output when I run discord-qt:

neo@fukushima ~
ฮป Discord-Qt
[warn] [PreLaunchConfigManager] Could not load config file.
Discord-Qt: symbol lookup error: /usr/lib/discord-qt/dist/nodegui_core.node: undefined symbol: _ZdlPvm, version Qt_5

If any more information is needed, just ask.

Search bar

The screenshot on the main page shows that discord-qt has a search bar. I have just installed the discord-qt-appimage package (v 0.5.1-1) and I don't see the search bar. how do you enable it?

Smooth scrolling

Low-priority, but it would be nice if the app implemented smooth scrolling in the message screens, as it feels quite out of place compared to virtually any other app. It could also be a toggle in the settings,

TypeError: Cannot read property 'length' of null

Running into this issue after downloading the deb and also building manually from the git source.

TypeError: Cannot read property 'length' of null
    at Object.READY (/tmp/discord-qt/dist/index.js:2:1737708)
    at WebSocketManager.handlePacket (/tmp/discord-qt/dist/index.js:2:1723888)
    at WebSocketShard.onPacket (/tmp/discord-qt/dist/index.js:2:444476)
    at WebSocketShard.onMessage (/tmp/discord-qt/dist/index.js:2:442866)
    at WebSocket.n (/tmp/discord-qt/dist/index.js:2:1710442)
    at WebSocket.emit (events.js:315:20)
    at Receiver.N (/tmp/discord-qt/dist/index.js:2:426463)
    at Receiver.emit (events.js:315:20)
    at Receiver.dataMessage (/tmp/discord-qt/dist/index.js:2:433049)
    at Receiver.getData (/tmp/discord-qt/dist/index.js:2:432289)

@ mentions nonfunctional in 0.5.1

Right now, typing an @ sign does not pull up a drop down of users. This is probably documented elsewhere, but it felt important to... mention.

Random crashes

I should admit this app is experiencing a severe issue for quite a long time now. The app may suddenly crash with exit code 0 in absolutely random moments. I am out of ideas as to why this could happen, I am currently most suspecious on NodeGui itself, as it does not fully handle widgets' current state and does not process their deletion and dereferencing. I have found out, that referencing any method of a deleted object gives a similar crash in this app. Even though I was able to fix most of those issues by setting up deletion checks all over the place, the problem is not gone and the app may still crash randomly.

Logging every call to the library using patches does not help much, there is something strange going on here. I wish NodeGui would handle Qt objects states more synchronized, but those are just my thoughts...

I really need everyone's help here to fix this problem. I do also understand that the code quality is still pretty bad but I do promise to fix that after this issue is somewhat solved.

Replying to messages

As far as I can tell, there is no way to reply to messages as of yet or display replies. This could be implemented after other high-priority issues, such as #10.

No notifications on Windows

I get no notifications on the Windows build. No sound, no visual notification, nothing. Even if the app is not in the tray, there is no notifications nor sounds. If I can send logs to help solve the issue, please tell me where to locate them and I'll send them ASAP :)

Question: where is the scss file imported?

Hi,

Thanks for the awesome project.

So, I am trying to figure out how and where the scss files are imported. For example, the MainView.scss file is not found or imported in the MainView.ts file.

Could you please help me understand it? Thanks

Regards
Yumin

Crash on LMDE2 (Debian 10 based)

TypeError: Cannot read property 'cache' of undefined
    at MessageCreateAction.handle (/home/user/src/discord-qt/dist/index.js:2:313550)
    at Object.e.exports [as MESSAGE_CREATE] (/home/user/src/discord-qt/dist/index.js:2:363583)
    at WebSocketManager.handlePacket (/home/user/src/discord-qt/dist/index.js:2:350293)
    at WebSocketShardPatch.onPacket (/home/user/src/discord-qt/dist/index.js:2:355658)
    at WebSocketShardPatch.onMessage (/home/user/src/discord-qt/dist/index.js:2:354048)
    at WebSocket.n (/home/user/src/discord-qt/dist/index.js:2:2085522)
    at WebSocket.emit (events.js:315:20)
    at Receiver.N (/home/user/src/discord-qt/dist/index.js:2:2117048)
    at Receiver.emit (events.js:315:20)
    at Receiver.dataMessage (/home/user/src/discord-qt/dist/index.js:2:2099391)

Getting error: undefined symbol: _ZdlPvm, version Qt_5

When I try running this application on Linux, I get this error:

/path/to/app/discord-qt/node_modules/@nodegui/qode/binaries/qode: symbol lookup error: /path/to/app/discord-qt/dist/nodegui_core.node: undefined symbol: _ZdlPvm, version Qt_5

I get this error both when I install it from the AUR repository and build it from source.

Do I have to install something? Perhaps I have to install some Qt components, but it's not in the README.

Group DMs support

Currently, group DMs crash the discord client as discord.js removed support for them in version 12.

A set of patches is needed to fix this issue, not sure how many classes should be patched but this is a serious problem which should be addressed (we really need to add full support for them in the client as well).

spanish language

Hi, I want to volunteer to add spanish translation for Discord Qt. Where should I start?

Can't build

Given the error logs, it seems like there was a misspelling of node as qode?

git clone https://github.com/ruslang02/discord-qt
cd discord-qt/
npm install
npm start
Cloning into 'discord-qt'...
remote: Enumerating objects: 287, done.
remote: Counting objects: 100% (287/287), done.
remote: Compressing objects: 100% (229/229), done.
remote: Total 4393 (delta 113), reused 162 (delta 51), pack-reused 4106
Receiving objects: 100% (4393/4393), 3.35 MiB | 3.03 MiB/s, done.
Resolving deltas: 100% (2709/2709), done.
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
[                  ] / reify:ffplay-static: http fetch GET 2
npm ERR! code 1
npm ERR! path /home/kainoa/discord-qt/node_modules/@nodegui/nodegui
npm ERR! command failed
npm ERR! command sh -c cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
npm ERR! > @nodegui/[email protected] setupqt
npm ERR! > cross-env node ./scripts/setupMiniQt.js
npm ERR! 
npm ERR! Minimal Qt 5.14.1 setup:
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtsvg-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt SVG for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt ICU for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! Extracting /home/kainoa/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt ...
npm ERR! Qt Base for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: /home/kainoa/discord-qt/node_modules/@nodegui/nodegui/miniqt
npm ERR! 
npm ERR! > @nodegui/[email protected] prebuild:install
npm ERR! > prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! 
npm ERR! > @nodegui/[email protected] build:addon
npm ERR! > cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
npm ERR! 
npm ERR! [
npm ERR!   '/usr/bin/node',
npm ERR!   '/home/kainoa/discord-qt/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! prebuild-install info begin Prebuild-install version 5.3.6
npm ERR! prebuild-install info install installing standalone, skipping download.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/kainoa/discord-qt/node_modules/@nodegui/nodegui
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_10_29_735Z-debug.log
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info DIST Downloading distribution files.
npm ERR! http DIST 	- https://nodejs.org/dist/v15.11.0/SHASUMS256.txt
npm ERR! http DIST 	- https://nodejs.org/dist/v15.11.0/node-v15.11.0-headers.tar.gz
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! path /home/kainoa/discord-qt/node_modules/@nodegui/nodegui
npm ERR! npm ERR! command failed
npm ERR! npm ERR! command sh -c cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_1
0_30_783Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/kainoa/.npm/_logs/2021-03-05T07_10_31_524Z-debug.log

> [email protected] start
> qode ./dist/index.js

windows 32 bit

hello
can anybody build 32 bit version for windows

thanks

Having random crashes.

I don't know what the issue is. It looks like the messages are normal (The first half or so are there on first run and seem to affect nothing). DiscordQt seems to just randomly crash on me. I have been unsuccessful in finding out what event causes the crash.

> [email protected] start /home/farlandercraft/2Drive/tmp/discord-qt
> qode ./dist/index.js

[Patches] Applied 16 patches.
QWidget::setMinimumSize: (ActionsMenu/NMenu) Negative sizes (220,-16) are not possible
[PluginManager] Loaded 0 plugins.
QComboBoxListView(0x426be80)  does not have a property named  "yBorder"
QComboBoxListView(0x426be80)  does not have a property named  "yBorder"
QComboBoxListView(0x426dff0)  does not have a property named  "yBorder"
QComboBoxListView(0x426dff0)  does not have a property named  "yBorder"
QComboBoxListView(0x4180af0)  does not have a property named  "yBorder"
QComboBoxListView(0x4180af0)  does not have a property named  "yBorder"
QComboBoxListView(0x42d68c0)  does not have a property named  "yBorder"
QComboBoxListView(0x42d68c0)  does not have a property named  "yBorder"
QComboBoxListView(0x42e0ba0)  does not have a property named  "yBorder"
QComboBoxListView(0x42e0ba0)  does not have a property named  "yBorder"
QScrollBar(0x3e30b20)  does not have a property named  "yMarginRight"
QScrollBar(0x3e31390)  does not have a property named  "yMarginRight"
QScrollBar(0x3e30b20)  does not have a property named  "yMarginRight"
QScrollBar(0x3e31390)  does not have a property named  "yMarginRight"
QScrollBar(0x35e24a0)  does not have a property named  "yMarginRight"
QScrollBar(0x35e3140)  does not have a property named  "yMarginRight"
QScrollBar(0x35e24a0)  does not have a property named  "yMarginRight"
QScrollBar(0x35e3140)  does not have a property named  "yMarginRight"
QComboBoxListView(0x3ccf650)  does not have a property named  "yBorder"
QComboBoxListView(0x3ccf650)  does not have a property named  "yBorder"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QTipLabel(0x7fec5c005da0)  does not have a property named  "yBorder"
QTipLabel(0x7fec5c005da0)  does not have a property named  "yPadding"
QTipLabel(0x7fec5c005da0)  does not have a property named  "yBorder"
QTipLabel(0x7fec5c005da0)  does not have a property named  "yPadding"
QTipLabel(0x7fec5c0057d0)  does not have a property named  "yBorder"
QTipLabel(0x7fec5c0057d0)  does not have a property named  "yPadding"
QTipLabel(0x7fec5c0057d0)  does not have a property named  "yBorder"
QTipLabel(0x7fec5c0057d0)  does not have a property named  "yPadding"

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.