Code Monkey home page Code Monkey logo

redpanda-cpp's People

Contributors

15921483570 avatar alexn-114 avatar bhargavshirin avatar brokencuph avatar cyanohao avatar davimeta avatar gaal-dev avatar keosu avatar ltabsyy avatar mzzw avatar omimakhare avatar rigoligorlc avatar royqh1979 avatar vedantmgoyal9 avatar west-pavilion avatar xjrjyy avatar xy0797 avatar zw9629 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  avatar  avatar  avatar  avatar  avatar

redpanda-cpp's Issues

Gutter Active Line doesn't follow the cursor.

Type sonething in the editor, and then position the cursor with mouse to the end of a line. The Active Line followed the cursor, but the Gutter Active Line doesn't.

ORD(N(O15YP0XIPIN%O1KRA

The cursor is at the end of the Line 4.

`Ctrl+Click` 时触发的崩溃

若一条预处理语句 #include 中包含的文件错误地为一个目录时, Ctrl + Click 该预处理语句将导致 RedPandaIDE 崩溃。
平台: Windows 7
版本: beta.0.13.2 Portable

Windows给出的问题详细信息:

问题签名:
  问题事件名称:	BEX64
  应用程序名:	RedPandaIDE.exe
  应用程序版本:	0.0.0.0
  应用程序时间戳:	61e24060
  故障模块名称:	RedPandaIDE.exe
  故障模块版本:	0.0.0.0
  故障模块时间戳:	61e24060
  异常偏移:	0000000001513560
  异常代码:	c0000005
  异常数据:	0000000000000008
  OS 版本:	6.1.7601.2.1.0.256.48
  区域设置 ID:	2052
  其他信息 1:	56a4
  其他信息 2:	56a49a64bbdb62bb7501a2b3354ddaa9
  其他信息 3:	ec04
  其他信息 4:	ec043cc7a1f4b5bc8d914e5a1cd32cfc

小熊猫C++调试时,直接无视程序断点

image
试了好几次了,可是小熊猫直接跳过了我的断点,根本没来得及让我调试——我用的是最新稳定版的小熊猫Dev-c++,用的MINGW(我在尝试用高精度计算斐波那契数列)

请问是我的程序出了问题,还是小熊猫的事?

一个错误

实现过程
新建项目 (我这是console)->切换为release -> 点击 全部重编译

无标题

Translation into other languages!

Is it possible to translate your program beyond the two available languages, which files would need to be changed to achieve this?

一个建议

运行参数 能否保存在项目文件中,而非IDE 的配置文件中

且此功能 最合适 的是移动到 项目属性 下,而非IDE选项中,此功能正常来说是属于项目管理的
而非IDE配置

Problem Set crashes

The RedPanda-C++ hangs and crashes when running test cases as the program outputs a number of data.

Please try the following code and add a test case:

#include <iostream>
int main(int argc, char** argv) {
	while (true) {
		cout << "Give it up";
	}
	return 0;
}

Click Run All Cases, and RedPanda-C++ stops responding.

I'm not sure if this is a bug, but my friend was annoyed about that.

deepin20.6 创建文件的时候不会在软件内显示

系统: deepin20.6
版本: 1.0.6
问题:
1.在软件内文件夹右键创建文件,不会在软件中标显示新建的文件。但是从终端以及系统自带文件管理中可以看到生成了 ”无标题.c"文件。
2.创建了文件夹后想重命名,但是重命名时文件夹名字没有明显标识被选中,导致以为文件夹名字没有选中修改。

感谢作者,希望能解决以上问题。谢谢

新建一个jackpot项目出错

当我尝试新建一个JackPot项目时,main.c显示的是“Jackpot_c.txt”这个文件名,而不是该模板文件里面的代码。
截图如下所示:
image

ConsolePauser

ConsolePauser is not working correctly. It closes only by pressing Enter, as if it is waiting for input.

Problem set changes in the Problem Case are not saved automatically. When saving an already created file, the save window opens again with a request for the file name.

The check in the Problem case is sensitive to spaces. For example, the answer 3_3_ is incorrect if 3_3 is correct. Probably in the checker you need to provide for ignoring the last spaces and newline characters.

Not reusing windows(opening a new tab instead of a new window) when opening file with an existing window

If a window is already open, opening another file(via double-click in File Explorer) will open up a new window, instead of a new tab. This is a great inconvenience because it makes it more tedious to switch between files. Considering it already supports multi-tabbing, this should be pretty easy to do.(Note: Orwell Dev-C++ does reuse windows(and support multi-tabbing)).

Note: Using File -> open opens a new tab in the same window, and so does dragging&dropping a file into the window.

Maybe you are having a problem of communicating between the newly launched process for opening a file and the already-open window?

Chinese version:(I am actually Chinese so this isn't translated using a translator)
即使已经有打开的窗口了,双击文件还是会打开新窗口,而不是在已有的窗口里打开一个标签页。这样很不方便,因为切换文件变得更麻烦了。Red Panda Dev-C++已经支持多标签页了,所以这应该不难实现。(注:Orwell Dev-C++重用窗口,可以参考一下Orwell的代码)

使用文件->打开菜单项,或拖拽文件进编辑器窗口会打开新标签页,而不是新窗口。

可能你们不能让为打开新文件启动的进程通知已有的窗口添加标签页?

几处小小的改进建议

  • 建议学习Visual Studio,在左侧的项目列表视图右键菜单添加“关闭项目 / 关闭所有项目”,这样无需在文件菜单中点击;
  • 建议学习Delphi IDE中,在历史记录菜单最下面添加一项“清除历史记录”;
  • 对于带有MinGW的安装包,在初次安装使用的时候直接使用安装包里面的MinGW,不要弹出对话框进行选择。这可以简单的通过读取程序配置文件实现;
  • 建议Templates文件夹里面的模板内容分类存放,设置多个文件夹,比如icons / default_templates / images等。
  • 建议在帮助菜单中添加本软件的帮助,这个帮助内容可以另开一个repo,存放markdown文件,最后markdown --> html --> chm。众人拾柴。

Gutter

tools- parameters - font - gutter
Parameter Left, Right ofset are not saved after the change and do not show the current value correctly.

Suggestion, add a parameter that allows message windows (windows bars: Problem, Debug, Compile log, Issues ...) to move to the right side of the screen.

希望搭载SDL_bgi库并在未来增加emscripten编译和运行支持

SDL_bgi对BGI的兼容性非常高, 而且经测试SDL_bgi还能通过emscripten编译为wasm在浏览器中运行(需自行编译SDL_bgi.o), 因此建议IDE也能搭载SDL_bgi库并在未来能支持emscripten编译和启动浏览器执行, 毕竟能通过Web直接分享自己的作品对于学习者是很令人兴奋的事. 另外当前IDE已经搭载的raylib官方就直接支持emscripten编译, 所以用raylib来开发在线小游戏等作品也是很方便的.

image

以下是我使用的编译选项(注意: 由于wasm平台的差异, 需对sdlbgidemo.c代码稍作调整才行, 具体可参考https://www.jamesfmackenzie.com/2019/11/30/whats-is-webassembly-hello-world/)

SDL_bgi-2.5.1\src>emcc -gsource-map sdlbgidemo.c SDL_bgi.o -o sdlbgidemo.html --embed-file logo.bmp --embed-file plasma.bmp --source-map-base /  -pthread -sUSE_SDL=2 -s ASYNCIFY -s ALLOW_MEMORY_GROWTH=1 -s USE_PTHREADS=1 -s PTHREAD_POOL_SIZE=8 -s OFFSCREEN_FRAMEBUFFER=1

报告问题

如题 刚用就遇到两三个影响使用的问题

第一是 关闭程序无响应,WIN7 X64系统
第二是 无法关闭标签

项目管理列表标签能否横向排列,并锁定
项目文件能否 按照 源文件 头文件 资源文件 分类显示

项目目录 下 能否将可执行文件 .rc文件与其它资源文件单独一个目录

Smart HOME key problem

Version 0.9.0
Option "Move caret to the first non-space char in the current line when press HOME key" seems do not work fine.

Support Qt6

比如 QString.midref 要换成 QstringView.mid

Translation to Portuguese (Brazil)

There is another PR for the translation into Portuguese, but I had this one already advanced for Brazilian Portuguese. There are small differences between the language practiced in the country and in Portugal, so I send an attachment file that may be useful for future translations.
As there is another person interested in the translation, I hope you can get more contributions for revisions and improvements.
I have kept some original English terms as I consider them to be in popular use, such as those about git.
Some typos in the .ts file have also been fixed, in case it might be helpful.
Taking this opportunity, it would be useful to have the option to Open Terminal Here, in the current file folder, when it is a single file, not linked to any project. For beginners this can make testing runs outside the IDE a lot easier.

RedPandaIDE_pt-br.zip

First Release?

Hey, you have a changelog but you haven't released anything yet. When can we expect the first release?

VS2019 x64编译器,编译出错,缺乏依赖库,主界面卡死等。。。

1、Win10+VS2019 x64+Qt5.12.11,RedPanda-CPP源码版本master,v1.0.9,编译出错,缺乏依赖库
那么以下pro文件需要新增依赖库
(1)RedPandaIDE.pro
(2)redpanda-win-git-askpass.pro
win32-msvc {
LIBS+=-ladvapi32
LIBS+=-luser32
}

(3)astyle.pro
win32-msvc {
LIBS+=-lShell32
}

总之,需要自己手动加上依赖库,如此才能正常编译通过。

2、Win10+VS2019 x64+Qt5.12.11,RedPanda-CPP源码版本master,v1.0.9,编译通过了,但是又遇到一个新问题:
源码编译之后,运行RedPandaIDE.exe,主界面会卡死,鼠标点不了,没有反应。

NumPad Home and End keys don't work

Version 0.8.11 For Dev-C++ 7 Beta
On laptop the HOME and END keys on the numeric keypad (NumPad) do not work in the editor. The cursor does not respond to pressing them.
Works fine in other programs (Dev-CPP, for example).

CTRL + /

When changing the input language, the CTRL + / button combination for comments does not work.

提几个简单的小建议

首先感谢大佬的无私奉献,RedPanda-CPP是我在windows平台上用过的对初学者最友好的C/C++ IDE.
下面是我开发过程中觉得还可以进行完善的一些点:
1、在对当前文件最后一段函数进行代码折叠后,无法直接选中尾部的大括号键入回车,这将导致:在习惯性折叠最后一段函数后,如果忘记事先在函数外部键入回车,则除非重新打开折叠的代码,否则无法在这个函数下面再写新的函数。
2、希望可以加入“一键折叠代码”功能。
3、查找功能希望可以做成类似在 VS CODE中的悬浮窗,标出查找结果个数、高亮查找结果、能通过按钮使光标多个查找结果中切换,而无需再次使用CTRL+F。

Stability issues under slow Windows machines

I am writing code in a Windows VM under Ubuntu. Every time the Linux Kernel Memory Compact triggered, the RedPanda Dev-C++ in Windows VM 'crashes': It's UI was closed, but the process was still running in the background. How to solve this problem, or is it a bug?

Functions not implemented

Some functions in RedPanda-C++ has not implemented like spliting the editor with Control+M and symbol renaming, since they are supported in the legacy version 6.7.5.

Will these functions be implemented? If not, any alternatives?

编码

建议搞个改默认编码的设置,现在写东西VSC和RPC一起用有点难受(想要默认UTF8)

Please refactor build system to follow FHS specification (install into $prefix instead of hardcoded /opt)

Currently the application is installed into /opt. This is perfectly fine for a third-party additional app, yet this is forbidden when the app intends to be part of Linux distribution. For details, please see https://lintian.debian.org/tags/dir-or-file-in-opt .

This means that the current build system needs to be refactored to follow FHS specification and install under /usr/. The best choice is to adopt the concept of $prefix, which defaults to /usr for packaged apps and /usr/local for user-built programs. For more information about the concept of $prefix, please see https://askubuntu.com/questions/891835/what-does-prefix-do-exactly-when-used-in-configure .

I know that qmake has rather poor support for $prefix. Though migrating to CMake could be a good choice, there are established rules on using $prefix in qmake buildsystem. For example, place the following snippet at the beginning of top-level .pro file:

APP_NAME = RedPandaIDE

isEmpty(PREFIX) {
#    PREFIX = /opt/$${APP_NAME}/
    PREFIX = /usr/local/
}

When later building the project, the user can specify the detailed value for $PREFIX:

  • qmake PREFIX=/usr This applies to official Linux distributions
  • qmake PREFIX=/opt/RedPandaIDE This will install all files under /opt/ as before
  • qmake The call without arguments will install files under /usr/local/.

Similarly, your files should all go into $prefix and adhere to current FHS specification. For example:

  • $prefix/bin/RedPandaIDE (maps to /usr/bin/RedPandaIDE) for your main program
  • $prefix/libexec/RedPandaIDE/consolepauser (maps to /usr/libexec/RedPandaIDE/consolepauser for your privately-used executables. If you intend to place those executables in $PATH so that it is system-wide visible, consider using /usr/bin/consolepauser instead. NOTE: please also avoid file collisions. For example, https://tracker.debian.org/pkg/astyle also provides /usr/bin/astyle and I am not sure if they have the same functionality.
  • $prefix/share/applications/redpandaide.desktop (maps to /usr/share/applications/redpandaide.desktop) for your .desktop file
  • $prefix/share/RedPandaIDE/templates (maps to `/usr/share/RedPandaIDE/templates/) for your private, architecture-independent files
  • $prefix/share/docs/RedPandaIDE/README.md (maps to /usr/share/docs/RedPandaIDE/README.md) for your documentations
  • $prefix/share/pixmaps/redpandaide.png (maps to /usr/share/pixmaps/redpandaide.png) for your pixmap icon

I believe this is doable with QMake, and allowing installation that does not involve with /opt/ is also a prerequisite for entering Linux distributions. Let me know if you have any questions.

1.1.0

Thank you for your work.
But RedPanda.C++.1.1.0.win64.No.Compiler.Portable when you create a new file from a template, the cursor moves to the bottom of the file and the text is hidden.
The ideal placement on the tab Problem input, output, expected was not columns but three lines. (When posting messages on the right)

0.7.3 报告问题

无标题

两问题
第一 :项目历史重复项

第二 :模板补全 缩进 有问题 while do..while for

报告点问题

版本 beta0.8.1

试题集 无法禁用,取消后依然默认选中

无法自定义项目文件夹路径

新建console项目默认生成.rc文件,而目录中 可执行文件与ico文件 都在一块,辨识度属实偏低

编辑txt崩溃

编辑txt文件时输入左括号(导致崩溃,但[则不会。另外,建议加入对其他种类文件(比如markdown)的高亮显示。

Problem set

Version 0.9.0
"Enable Problem set" option is not saved between sessions.

  1. Disable "Enable Problem set" option.
  2. Apply -> Ok -> close RedPandaIDE.
  3. Start RedPandaIDE -> "Enable Problem set" option enabled.

CI编译失败

CI编译失败

环境:
Windows 2019
Qt 5.15.2
win64_mingw 8.1.0

https://github.com/EldersJavas/RedPanda-CPP/runs/3987835094?check_suite_focus=true#step:7:211

g++ -c -fno-keep-inline-dllexport -O2 -Werror=return-type -std=gnu++1z -Wall -Wextra -Wextra -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I. -I../../Qt/5.15.2/mingw81_32/include -I../../Qt/5.15.2/mingw81_32/include/QtPrintSupport -I../../Qt/5.15.2/mingw81_32/include/QtWidgets -I../../Qt/5.15.2/mingw81_32/include/QtGui -I../../Qt/5.15.2/mingw81_32/include/QtANGLE -I../../Qt/5.15.2/mingw81_32/include/QtCore -Irelease -I. -I../../Qt/5.15.2/mingw81_32/mkspecs/win32-g++  -o release/environmentfileassociationwidget.o settingsdialog/environmentfileassociationwidget.cpp
settingsdialog/environmentfileassociationwidget.cpp: In function 'bool writeRegistry(HKEY, const QByteArray&, const QByteArray&)':
settingsdialog/environmentfileassociationwidget.cpp:199:14: error: 'RegSetKeyValueA' was not declared in this scope
     result = RegSetKeyValueA(
              ^~~~~~~~~~~~~~~
settingsdialog/environmentfileassociationwidget.cpp:199:14: note: suggested alternative: 'RegSetValueA'
     result = RegSetKeyValueA(
              ^~~~~~~~~~~~~~~
              RegSetValueA
settingsdialog/environmentfileassociationwidget.cpp: In member function 'bool FileAssociationModel::unregisterAssociation(const QString&)':
settingsdialog/environmentfileassociationwidget.cpp:227:14: error: 'RegDeleteTreeA' was not declared in this scope
     result = RegDeleteTreeA(HKEY_CLASSES_ROOT,extension.toLocal8Bit());
              ^~~~~~~~~~~~~~
settingsdialog/environmentfileassociationwidget.cpp:227:14: note: suggested alternative: 'RegDeleteKeyA'
     result = RegDeleteTreeA(HKEY_CLASSES_ROOT,extension.toLocal8Bit());
              ^~~~~~~~~~~~~~
              RegDeleteKeyA
settingsdialog/environmentfileassociationwidget.cpp: In member function 'bool FileAssociationModel::unregisterFileType(const QString&)':
settingsdialog/environmentfileassociationwidget.cpp:241:14: error: 'RegDeleteTreeA' was not declared in this scope
     result = RegDeleteTreeA(HKEY_CLASSES_ROOT,fileType.toLocal8Bit());
              ^~~~~~~~~~~~~~
settingsdialog/environmentfileassociationwidget.cpp:241:14: note: suggested alternative: 'RegDeleteKeyA'
     result = RegDeleteTreeA(HKEY_CLASSES_ROOT,fileType.toLocal8Bit());
              ^~~~~~~~~~~~~~
              RegDeleteKeyA
mingw32-make[2]: *** [Makefile.Release:17325: release/environmentfileassociationwidget.o] Error 1
mingw32-make[2]: Leaving directory 'D:/a/RedPanda-CPP/RedPanda-CPP/RedPandaIDE'
mingw32-make[1]: *** [Makefile:45: release] Error 2
mingw32-make[1]: Leaving directory 'D:/a/RedPanda-CPP/RedPanda-CPP/RedPandaIDE'
mingw32-make: *** [Makefile:50: sub-RedPandaIDE-make_first] Error 2

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.