I'm still using some old screens with the resolution 1920x1080, some of my clients are still using Windows 7 with smaller screen. Update the Scintilla code is hard.
I'm still using some old screen with the resolution 1920x1080, some of my client are still using Windows 7 with smaller screen. Update the Scintilla code is hard.
When I looked at the source code of the dragscroll.cpp, especially in the class MouseEventsHandler, do you mean that before each return statement, there is a call to the event.Skip();? I see some functions do not have that function call.
When I looked at the source code of the dragscroll.cpp, especially in the class MouseEventsHandler, do you mean that before each return statement, there is a call to the event.Skip();? I see some function does not have that function call.
I'm using the rev13826, plus I have some patches locally mainly on the codecompletion plugins. I'm under Windows 10 64bit, and I used the latest GCC version(15.2) in msys2/mingw64 platform. My wxWidgets version is 3.3.2. I don't have such issue.
I'm using the rev13826, plus I have some patches locally mainly on the codecompletion plugins. I'm under Windows 10 64bit, and I used the latest GCC version in msys2/mingw64 platform. I don't have such issue.
* update.bat: replace some wilcards by a for...do syntax(thanks gd_on)
* cbp: add -Wextra to clangd_client_Windows.cbp and codesnippets_Windows.cbp, move WX_VER setting to a higher level(thanks gd_on)
I think you can not unzip the files in program files folder.
There was also error when I tried to compile my code and it said something like "Coudn't find the gcc compiler at desired location". You need to set the compiler path in the codeblocks' settings.
Secondly, when I unziped files in another folder that build immediatly suggested me to install a few more plugins and compiler just didn't work. What should I do? Can you tell use what are the steps you did? I haven't see such error before. Who suggested me to install some plugins? Can you give use some screen shots?
- wxSmith: fix build error against wxWidgets 3.3.2 library
* cbp: add the unified CodeBlocks cbps for Windows OS. (thanks gd_on)
- remove the usage of $(CODEBLOCKS) in the *.cbp files, because the $(CODEBLOCKS) points to the host Code::Blocks path, not the built Code::Blocks path
Thanks for the reply. Billboard labels aren't yet supported and the scene clipping bounds have yet to be adjusted to account for animation transforms. But at least the core functionality is in the C++ code so we can now focus on updating the online AsyGL library. For now, use settings.autobillboard=false; forWebGL animations. OK, I'm using this setting now. Hopefully it will be fixed in the future. Also, when using the beginTransform function, I see that the last argument, which was bool is now removed....
Hi, John, thanks for the recent updates and releases. Could you please look at this comment in github issue: https://github.com/vectorgraphics/asymptote/issues/535#issuecomment-3940910354 The animation in WebGL has label issues, thanks.
Hi, John, can you looked at this comment: https://github.com/vectorgraphics/asymptote/issues/535#issuecomment-3889440719 It looks some kinds of the 3D object can be transformed, but some types are not, can you fix this issue? Thanks.
Codeblock crashing when returning to main.cpp
Compiler plugin : renaming a compiler deletes all its personal configuration datas .
Committed r13793. Sorry for the delay. Thanks for your contribution. Happy Chinese New Year!
* apply patch #1508: Compiler plugin : renaming a compiler deletes all its personal configuration data . (Thanks homertp)
C::B is still using svn, and I suggest C::B to use git. And we can have pull request like in github. While, building C::B under C::B is simple, I'm not sure how you build C::B.
* sdk: handle empty valued members in global compiler variable
Hi, John, thanks for the update. For quick test, the "b key" works fine in the downloaded html file. The next step is: I think I need to change my code: simple animation for rigid body movement for the webgl generated html file · Issue #535 · vectorgraphics/asymptote by using this new feature. Hopefully, there will be more asymptote 3D animation examples in the example folder. Maybe, all the existing animation code those used to generate gifs file can be translated to webgl code.
Preliminary support for WebGL animations was added Nice feature, thanks for your hard work. BTW: Can you update the https://asymptote.ualberta.ca/ version. I see it still runs 3.05 version. If I just paste the content of the https://github.com/vectorgraphics/asymptote/blob/master/examples/teapotAnimation.asy To this web IDE and press the run button, it will report build errors. Thanks.
OK, I solved the problem myself, its my mistake. In the config.asy file, I have to change those 3 paths to the new texlive 2025 path. Here is the correct 3 values: texpath = "E:\texlive\2025\bin\windows"; dvips="E:\texlive\2025\bin\windows\dvips.exe"; dvisvgm="E:\texlive\2025\bin\windows\dvisvgm.exe"; My mistake is that I only changed the first texpath to point to the texlive 2025 path, but leave the last 2 lines point to the wrong value.
Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...
Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...
Hi, I recently install the latest Tex Live 2025, but I'm not fully install it, I just choose a basic install(if I remember correctly). So when building tex files, I may need to install the packages manually. But when I call the asymptote to build an asy file, I see some error: C:\Program Files\Asymptote\asy.exe --keep pipes.asy -f html -v -V Process started (PID=4544) >>> Processing pipes t1 = 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 1 t2 = 0.939692620785908 0 -0.342020143325669 -0.684040286651337 0 1 0 3 0.342020143325669...
Hi, thanks for the report. I'm not sure, but my guess is that no C::B devs are using Windows XP as their PC. This is a 32bit Windows version, right? So, I think it will be hard to debug such issue. If others would like to reproduce this issue, they should know which version of wxWidgets do you use, which version of C::B do you use, which compiler suite do you use to build the final C::B running on Windows XP.
Hi, good work! If you looked at this post: Re: The 06 December 2025 build (13761) is out. You can see Xaviou posted a Windows 32 bit version of C::B in every nightly build version. I'm not sure whether it works on Windows XP. It was really sad that a lot of compiler and packages were dropping the old Windows support. For example, the msys2 packages mainly drop the support for Windows7, because it is hard to maintain. See this post: Latest msys2/mingw64's gdb failed to start under Windows 7 and its...
Hi, thanks for the report, I'm not sure, but is this related to the help plugin? It is located here: src/plugins/contrib/help_plugin Any ideas?
This is the patch file I used to test the Windows (wx 3.3) build of C::B. I have enabled the __WXWIN__ option. The result C::B looks OK, I don't see much difference(cpu usage) when i scroll the editor window.
Thanks for your work, I will test your v4 patch under my Windows system as soon as possible.
All what I expect is the those scintilla core classes should not have any wxWidgets related code, that is, it should be more general code for all platforms, and the derived classes are for any platforms, such as the wxWidgets platforms.
The problem is that Window::InvalidateRectangle() operates on wxWindow base class, so it can't access Editor methods/members. -> crash. I'm not fully understand this sentence. I see in your patch: @@ -106,6 +106,10 @@ Editor::Editor() { ctrlID = 0; +#ifdef SCI_DC_CACHE_ENABLED + DCcache = new devctx_cache(wxDefaultSize); +#endif + stylesValid = false; technology = SC_TECHNOLOGY_DEFAULT; scaleRGBAImage = 100.0f; I'm not sure why the DCcache variable should be put inside the Editor class, can this...
Here are my comments about the patch. From my point of view, I think you should keep the scintilla's core code unchanged. So, here is my suggest: I see you have made some changes to the file: src/sdk/wxscintilla/src/scintilla/src/Editor.cxx for example: @@ -466,6 +474,7 @@ void Editor::RedrawRect(PRectangle rc) { rc.right = rcClient.right; if ((rc.bottom > rc.top) && (rc.right > rc.left)) { + SCI_DC_CACHE_INVALIDATE; wMain.InvalidateRectangle(rc); } } But I see the function wMain.InvalidateRectangle(rc);...
Another thing I see is that it looks like the file: src/sdk/wxscintilla/src/scintilla/src/Editor.cxx is a more general file, which means every portion of the scintilla should use this file, and the platform dependent file is under the folder src/sdk/wxscintilla/src, not inside the core editor control folder src/sdk/wxscintilla/src/scintilla. My question is: can you code change be only inside the platform dependent files? Thanks.
Hi, thanks for the update. From my point of view, I think your added two files devcontextcache.h and devcontextcache.cpp should be put in the SDK level, Option 1: the header file should be put here: src/include and the cpp file should be put here: src/sdk Option 2: if it is only for the wxScintilla control, it should be put inside the folder: src/sdk/wxscintilla/src(for both cpp and header files). When I build C::B yesterday with your patch, I'm using the option 2, and I'm using the src/CodeBlocks_wx33_64.workspace...
I put the devcontextcache.h file under the folder: codeblocks_sfmirror\src\sdk\wxscintilla\include, and the cpp file is put in the folder: codeblocks_sfmirror\src\sdk\wxscintilla\src. So, the build continues.
-------------- Build: scintilla in Code::Blocks wx3.3.x (64 bit) (compiler: GNU GCC Compiler)--------------- [ 14.3%] g++.exe -Wall -m64 -g -pipe -mthreads -fmessage-length=0 -fexceptions -DHAVE_W32API_H -D__WXMSW__ -DWXUSINGDLL -DcbDEBUG -DNOPCH -DwxUSE_UNICODE -D_WIN64 -D__WX__ -DWINVER=0x0501 -DLINK_LEXERS -DSCI_LEXER -DWXMAKINGDLL_SCI -std=gnu++11 -iquote.objs33_64\include -I.objs33_64\include -I. -IF:\code\wxWidgets-3.3.1\include -IF:\code\wxWidgets-3.3.1\lib\gcc_dll\mswu -Isdk\wxscintilla\include...
Yes, the 2 projects(C::B and wxWidgets) code are not synchronized for a long time. And the code enclosed with // C::B begin and // C::B end are C::B's own modification to the scintilla wxWidgets ports, for example, C::B need to handle the wxSmith code as special code folding, and those code can't be contributed to wxWidgets' port.
Good work, I will test it under Windows.
macOS: fix timer crashes in CodeCompletion plugin
our Codeblocks forum is broken
I'm trying to read the v3 patch, it is a big patch, so it will take some time to understand and test.
do not set the PATH twice, which fix a PATH overwrite issue mentioned here:
OK, I think I can reproduce this bug. Thanks.
First copy, restart C::B, second copy, restart C::B again? I just did this, and i don't see the data lost.
For precisions , this bug happens only on compilers that have been copied from original installed compilers in codeblocks . eg "Copy of GNU GCC Compiler" . Renaming "Copy of GNU GCC Compiler" to "Copy of GNU GCC2 Compiler" will delete all its personal configuration datas . What does this mean? I need to copy twice? First copy, restart C::B, second copy, restart C::B again? I don't know the steps.
Hi, thanks for the report. I just run the steps in your first post, and it looks like the renamed compiler's setting is correct after I restart the C::B, see the image shot below.
Compiler plugin : renaming a compiler deletes all its personal configuration datas .
A bit late reply. But the TDM-GCC-64 does not update for years, so can you try some other compiler suite? Such as this one: WinLibs - GCC+MinGW-w64 compiler for Windows
Hi, which web page? Do you mean this page: https://www.codeblocks.org/downloads/binaries/ Is this ticket reported issue get already fixed now?
The crash report file shows that the crash happens in the plugin code: codeblocks.exe caused an Access Violation at location 00007FF9987B2FCE in module BrowseTracker.dll Writing to location 0000000000000000. So, can you remove this dll file from the plugins folder? So that you can start C::B without this plugin.
Hi, how can we "reproduce" you mentioned bug? I mean can you have a step by step instructions to reproduce this issue? Thanks.
OK, I just search the official wxWidgets' version, and they use hashmap too. See this line: https://github.com/wxWidgets/wxWidgets/blob/9e5b420c970fe922051955f1fa1ed35216fffc1a/src/stc/ScintillaWX.h#L209 From my point of view, do you think this patch can sumit to the wxWidgets's official github? I think both of the 2 projects(codeblocks and wxWidigets) should use the same code base for maintaining reasons.
Hi, thanks for the patch, the code changes looks OK. I agree that using a hash table for the timers is not necessary. Our scintilla based wxWidgets code is a bit old, at least it is behind the official wxWidgets' version. But we have our own hacks. I'm not sure the official wxWidgets' version use the same timer array?
I have a patch to fix my reported issue, see here: Re: The library search path is not included in the PATH in the compilergcc plugin
Hi, Morten, I report an issue about this change here: The library search path is not included in the PATH in the compilergcc plugin
our Codeblocks forum is broken
Hi, Jan. Though your first post is in year 2020, it is 4 years later, I think I still need a way to move/hide/tweak the objects in the webgl scene. My idea is the same as yours, we need "tag" names for the objects. I have some test on this, can you have a look at this github issue: simple animation for rigid body movement for the webgl generated html file · Issue #535 · vectorgraphics/asymptote Thanks.
I wrote a github issue here for discussion my modifications and ideas: simple animation for rigid body movement for the webgl generated html file · Issue #535 · vectorgraphics/asymptote
Hi, thanks, I did some test, and I have added a very basic local transform matrix for each Geometry instances, so I can tweak its position. I will move the discussion to github site, because adding the gif and other patch file is much easier.
I can use the msys2 to build the asygl.js file. (I need to first install the node.js pacakge, see here: https://packages.msys2.org/packages/mingw-w64-x86_64-nodejs After that, in the win64 shell of msys2, I can run the code: ./build-scripts/build-asygl debug, and I see that there is a new file named "asygl.js" in the folder base/webgl, now I just replace the line: src="https://vectorgraphics.github.io/asymptote/base/webgl/asygl-1.02.js"> </script> ``` With the line: `asygl.js`, so the local generated...
https://github.com/vectorgraphics/asymptote/blob/master/build-scripts/build-asygl This code shows how the asygl library is made. By default, it using the online version: src="https://vectorgraphics.github.io/asymptote/base/webgl/asygl-1.02.js"> </script> So, hack should be done in the file: https://github.com/vectorgraphics/asymptote/blob/master/webgl/gl.js Maybe, we can have an interface to query some OpenGL objects, or object group, and add some transformation matrix on those objects
OK, it looks like there is an option named "offline", I just search the source code, and found such code snippet: if(getSetting<bool>("offline")) { out << "<script>" << newl; copy(locateFile(AsyGL)); out << newl << "</script>" << newl; } else out << "<script" << newl << "src=\"" << getSetting<string>("asygl") << "\">" << newl << "</script>" << newl; Does this mean if the offline option is enabled, there will be a separate js file instead of the embedded js file in the html file?
Here comes another question, currently, I see all the javascript files were embeded in the generated html file. Are there any option that I can generate some separate js file? So that after generating the html file which has some object contents, I can got some chance to hack the separated js file. Thanks.
Hi, I'm a long time asymptote user, and it is great to see Asymptote has html output with webgl support. But the webgl output of the html only allow us to use the mouse to rotate the scene, or zoom in/out the scene. My question is that is it possible to hack the gl.js (which is from: https://github.com/vectorgraphics/asymptote/blob/master/webgl/gl.js), so that I can move some object in the scene, for example, I can rotate the object or move the object, because this is a very simple kinds of animation,...
I think you can adjust the color (change yellow to other colors) in the below code: import graph3; // load 3D graphing routines size(200); currentprojection = perspective(4,4,4); // set a perspective view // Define the function f(x,y) = sin(x*y) real f(pair xy) { return sin(xy.x * xy.y); } // Construct the surface over the rectangle (0,0) to (3,3) // The "Spline" parameter ensures the surface is drawn smoothly. surface s = surface(f, (0,0), (3,3), Spline); // Draw the surface with a yellow material....
- headerfixup plugin: remove SVNInside options from the Extensions section in cbp files
- ProjectOptionsManipulator plugin: regenerate the dialog code by the latest wxSmith plugin
- CC: translate the message text by adding the _() like macro
Hi, John, thanks for the help. Though I'm not fully understand the logic you explained. You said the "bounding volume", this is the bounding 3D box of the 3D graphics coordinates. I mean the top of the box is the largest Z points in the Z axis, the bottom of the box is the largest negative value of the data points on Z axis. So as the X and Y boundaries. Am I correct? So, the projection center(the camera) should move out of this bounding volume? Thanks.
Hi, I use such code: import graph3; // load 3D graphing routines size(200); currentprojection = perspective(1,1,1); // set a perspective view // Define the function f(x,y) = sin(x*y) real f(pair xy) { return sin(xy.x * xy.y); } // Construct the surface over the rectangle (0,0) to (3,3) // The "Spline" parameter ensures the surface is drawn smoothly. surface s = surface(f, (0,0), (3,3), Spline); // Draw the surface with a yellow material. Here we use 'yellow' // for the diffuse and emissive components...
This code generated by AI, and the result looks like the one generated by Mathematica. Not sure why Mathics3 generate a lot of triangles. import graph3; // load 3D graphing routines size(200); currentprojection = perspective(1,1,1); // set a perspective view // Define the function f(x,y) = sin(x*y) real f(pair xy) { return sin(xy.x * xy.y); } // Construct the surface over the rectangle (0,0) to (3,3) // The "Spline" parameter ensures the surface is drawn smoothly. surface s = surface(f, (0,0), (3,3),...
Thanks for sharing this site, nice resource about asymptote.
Every time you rename or delete a file, the current vertical list position is resetted to top, and one has to scroll to locate the original position again. I can confirm this bug, indeed, it is annoying.
How to globally set the "custom variables" in the cbp files under a workspace I think this is a very important contribution we could add to our svn, you can see the discussion in the above forum link.
Hi, I just did some test on using lwarp to generate an html file which could embed some asymptote 3D images. See the detailed steps here in the lwarp github discussion forum: How to embed asymptote's 3D webgl image in the generated html file · bdtc/lwarp · Discussion #32 But I still has an issue that the embedded 3D image is a static image, no an interactive webgl view, can you help on this? Thanks.
- CodeBlocks_wx32_64.cbp: finename get sorted alphabetically
- CC: fix typo in comments
- CBLauncher: fix a typo in comment
* src: Use "WX_CPPFLAGS" instead of "WX_CXXFLAGS" in Makefile.am(Thanks stahta01)
* Update ax_cxx_compile_stdcxx.m4(Thanks stahta01)
* wxSmith: fix dll symbol export issue when building C::B under msys2's configure/make (Thanks stahta01)
* SDK: codeblocks plugin fix in the case that The MSys2 UCRT64 package gives a false failure message when installing a cbplugin(Thanks stahta01)
* SmartIndent plugin: disable parallel make for SmartIndent(Thanks stahta01)
* CbLauncher: build the CbLauncher.exe in the Makefile.am
Firstly, thanks for the report. This feature belongs to the File Manager plugin - Code::Blocks. I have never used this plugin expect for file browse. Indeed, remove the whole drive is very dangerous, so, the proposed method could be: Check to see the current folder is a root folder of a hard disk drives, if it is, just prompt a dialog and say "you are not allowed to delete the drive". Any ideas?
Hi, I would like to create some tutorial and put them on the web, the tutorial could include some 3D structure, like the robotics or math tutorial. What is the simple and correct tool to do that? I see at least two tools: 1, bdtc/lwarp: The LaTeX lwarp package — Convert LaTeX to HTML. This tool can directly convert the latex document to html, but I'm not sure whether it support asymptote 3D or not. 2, PreTeXtBook/pretext: PreTeXt: an authoring and publishing system for scholarly documents This is...
Text font does not scale in HiDPI displays
DirectWrite has other issues, if you want to use C::B from Windows remote desktop, DirectWrite option will cause C::B crash, I have report such issue several times in C::B's forum.
Hi, guys, this patch is nice, and now in our trunk, but when I'm trying to remove all the IDs from the wxSmith, I see that I can't remove them from menu items. But a quick test shows it could. See my comments here: https://github.com/GitHubLionel/wxMathPlot/issues/14#issuecomment-2149200427 Any ideas? Thanks.
If a header file belongs to several project, how can we determine which project to activate? There are some other issues, such as when the program is running or being debugged, switch the project is not possible.
[svn-r13518/Windows10] auto-generated c-file gets compiled twice
OK, I will close this ticket.
put in in a "wx" folder in the projects root folder. I manually did this. (I mean I create a "wx" folder in my project's root folder) I think the original idea about this "wx/" prefix is that it follows the wx's code base structure. There is another issue about the path, I see that the .wxs file is always located in the root folder of the cbp, sometimes, my code has many plugins, and I would like that the .wxs file should go to some sub folders, but there is no way to change it. The only way I can...
put in in a "wx" folder in the projects root folder. I manually did this. I think the original idea about this "wx/" prefix is that it follows the wx's code base structure. There is another issue about the path, I see that the .wxs file is always located in the root folder of the cbp, sometimes, my code has many plugins, and I would like that the .wxs file should go to some sub folders, but there is no way to change it. The only way I can do is to manually edit the .cbp file, and change the path...
wxSmith Usability: Move Toolbuttons to the left