From farhanw at live.com Thu Apr 2 19:48:48 2020 From: farhanw at live.com (Farhan Wali) Date: Thu, 02 Apr 2020 19:48:48 +0000 Subject: Turning off syntactic indentation in emacs d-mode Message-ID: Hi, So d-mode on emacs seems to have strange indentation issues, some of which seems to be documented here https://github.com/Emacs-D-Mode-Maintainers/Emacs-D-Mode/issues/19 This is almost a non-issue if you turn off syntactic-indentation in the D menu bar. How can I set this to be off by default? At the moment I have to keep turning it off for every frame/buffer it seems. Cheers, Farhan From regeleionescu at gmail.com Sat Apr 11 14:05:43 2020 From: regeleionescu at gmail.com (RegeleIONESCU) Date: Sat, 11 Apr 2020 14:05:43 +0000 Subject: Dexed, revived! In-Reply-To: References: Message-ID: Dear Sir, I am following your instructions on how to compile and build Dexed on Windows 10. Could you please help me find out why I get the following error? C:\temp\dexed-v3.8.3\lazproj>lazbuild -B dexeddesigncontrols.lpk Hint: (lazarus) Missing state file of DexedDesignControls 0.0: C:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64\DexedDesignControls.compiled Info: (lazarus) Execute Title="Compile package DexedDesignControls 0.0" Info: (lazarus) Working Directory="C:\temp\dexed-v3.8.3\lazproj\" Info: (lazarus) Executable="C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.exe" Info: (lazarus) Param[0]="-B" Info: (lazarus) Param[1]="-MObjFPC" Info: (lazarus) Param[2]="-Scghi" Info: (lazarus) Param[3]="-O2" Info: (lazarus) Param[4]="-g" Info: (lazarus) Param[5]="-gl" Info: (lazarus) Param[6]="-l" Info: (lazarus) Param[7]="-venhibq" Info: (lazarus) Param[8]="-vw-" Info: (lazarus) Param[9]="-FuC:\temp\dexed-v3.8.3\src" Info: (lazarus) Param[10]="-FuC:\lazarus\packager\units\x86_64-win64" Info: (lazarus) Param[11]="-FuC:\lazarus\components\lazutils\lib\x86_64-win64" Info: (lazarus) Param[12]="-FuC:\lazarus\lcl\units\x86_64-win64" Info: (lazarus) Param[13]="-FuC:\lazarus\lcl\units\x86_64-win64\win32" Info: (lazarus) Param[14]="-FuC:\temp\dexed-v3.8.3\lazproj\" Info: (lazarus) Param[15]="-FUC:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64\" Info: (lazarus) Param[16]="-dLCL" Info: (lazarus) Param[17]="-dLCLwin32" Info: (lazarus) Param[18]="dexeddesigncontrols.pas" Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.cfg Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.cfg Free Pascal Compiler version 3.0.4 [2019/10/27] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others (1002) Target OS: Win64 for x64 (3104) Compiling dexeddesigncontrols.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas(48,29) Hint: (5024) Parameter "sender" not used C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas(49,30) Hint: (5024) Parameter "sender" not used C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas(50,32) Hint: (5024) Parameter "sender" not used C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas(52,34) Hint: (5024) Parameter "sender" not used C:\temp\dexed-v3.8.3\src\u_dsgncontrols.pas(51,31) Hint: (5024) Parameter "sender" not used (1008) 380 lines compiled, 0.8 sec (1022) 7 hint(s) issued C:\temp\dexed-v3.8.3\lazproj>lazbuild -B dexed.lpi TProject.DoLoadStateFile Statefile not found: C:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64\dexed.compiled Info: (lazarus) Execute Title="Compile Project, Mode: Release, Target: C:\temp\dexed-v3.8.3\bin\dexed.exe" Info: (lazarus) Working Directory="C:\temp\dexed-v3.8.3\lazproj\" Info: (lazarus) Executable="C:\lazarus\fpc\3.0.4\bin\x86_64-win64\fpc.exe" Info: (lazarus) Param[0]="-B" Info: (lazarus) Param[1]="-MObjFPC" Info: (lazarus) Param[2]="-Scghi" Info: (lazarus) Param[3]="-CX" Info: (lazarus) Param[4]="-O3" Info: (lazarus) Param[5]="-XX" Info: (lazarus) Param[6]="-WG" Info: (lazarus) Param[7]="-l" Info: (lazarus) Param[8]="-vewnibq" Info: (lazarus) Param[9]="-vh-" Info: (lazarus) Param[10]="-vm5024" Info: (lazarus) Param[11]="-FiC:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64" Info: (lazarus) Param[12]="-FuC:\temp\dexed-v3.8.3\src" Info: (lazarus) Param[13]="-FuC:\temp\dexed-v3.8.3\etc\terminal" Info: (lazarus) Param[14]="-FuC:\lazarus\components\tachart\lib\x86_64-win64\win32" Info: (lazarus) Param[15]="-FuC:\lazarus\components\rtticontrols\lib\x86_64-win64\win32" Info: (lazarus) Param[16]="-FuC:\lazarus\components\ideintf\units\x86_64-win64\win32" Info: (lazarus) Param[17]="-FuC:\lazarus\components\synedit\units\x86_64-win64\win32" Info: (lazarus) Param[18]="-FuC:\lazarus\components\lazcontrols\lib\x86_64-win64\win32" Info: (lazarus) Param[19]="-FuC:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64" Info: (lazarus) Param[20]="-FuC:\lazarus\components\anchordocking\lib\x86_64-win64" Info: (lazarus) Param[21]="-FuC:\lazarus\lcl\units\x86_64-win64\win32" Info: (lazarus) Param[22]="-FuC:\lazarus\lcl\units\x86_64-win64" Info: (lazarus) Param[23]="-FuC:\lazarus\components\lazutils\lib\x86_64-win64" Info: (lazarus) Param[24]="-FuC:\lazarus\packager\units\x86_64-win64" Info: (lazarus) Param[25]="-FuC:\temp\dexed-v3.8.3\lazproj\" Info: (lazarus) Param[26]="-FUC:\temp\dexed-v3.8.3\lazproj\lib\x86_64-win64\" Info: (lazarus) Param[27]="-FEC:\temp\dexed-v3.8.3\bin\" Info: (lazarus) Param[28]="-oC:\temp\dexed-v3.8.3\bin\dexed.exe" Info: (lazarus) Param[29]="-dLCL" Info: (lazarus) Param[30]="-dLCLwin32" Info: (lazarus) Param[31]="-dRELEASE" Info: (lazarus) Param[32]="dexed.lpr" Compiling Release Version Free Pascal Compiler version 3.0.4 [2019/10/27] for x86_64 Copyright (c) 1993-2017 by Florian Klaempfl and others (1002) Target OS: Win64 for x64 (3104) Compiling dexed.lpr (3104) Compiling C:\temp\dexed-v3.8.3\src\u_sharedres.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_observer.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_common.pas Warning: (5059) Function result variable does not seem to initialized (3104) Compiling C:\temp\dexed-v3.8.3\src\u_libman.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_writablecomponent.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dcd.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_interfaces.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_synmemo.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_d2syn.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dlangutils.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dlangmaps.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_txtsyn.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dialogs.pas (3104) Compiling C:\temp\dexed-v3.8.3\src\u_dastworx.pas C:\temp\dexed-v3.8.3\src\u_dastworx.pas(92,9) Error: (5000) Identifier not found "dlgOkError" C:\temp\dexed-v3.8.3\src\u_dastworx.pas(103,9) Error: (5000) Identifier not found "dlgOkError" u_dastworx.pas(199) Fatal: (10026) There were 2 errors compiling module, stopping Fatal: (1018) Compilation aborted Error: C:\lazarus\fpc\3.0.4\bin\x86_64-win64\ppcx64.exe returned an error exitcode Error: (lazarus) Compile Project, Mode: Release, Target: C:\temp\dexed-v3.8.3\bin\dexed.exe: stopped with exit code 1 Error: (lazbuild) failed compiling of project C:\temp\dexed-v3.8.3\lazproj\dexed.lpi I am using the last Lazarus 2.0.6 with FPC 3.0.4, on a Win10 64 machine From jiyan at jiyan.info Sat Apr 11 14:21:33 2020 From: jiyan at jiyan.info (Jiyan) Date: Sat, 11 Apr 2020 14:21:33 +0000 Subject: VisualD intelli sense not working Message-ID: Hey, i am using VisualD, the debugger is working correctly and if i write sth like import std. it show me the correct suggestions (stdio etc) but if i write sth like struct A{int a;} A b; b. Intelli sense doesnt work What might be wrong with my configuration? From regeleionescu at gmail.com Sat Apr 11 15:18:32 2020 From: regeleionescu at gmail.com (RegeleIONESCU) Date: Sat, 11 Apr 2020 15:18:32 +0000 Subject: Atom, ide-dlang and.. a better doc for beginners ? In-Reply-To: References: Message-ID: On Tuesday, 11 February 2020 at 12:02:14 UTC, ffred wrote: > the package ide-dlang for Atom has been updated by its author. > there's now a 'build', 'run' & 'test' functions included (F7). > :-) > https://atom.io/packages/ide-dlang Hello! A more beginner here :) I am trying to setup Atom. I installed ide-dlang 1.17.0, atom-dlang 1.1.2, d-struct 1.2.3, build 0.70.0, I set the path to dub executable as "C:\ldc\bin\dub.exe", as I am using LDC, I run "dub fetch dls" and "dub run dls:bootstrap" from the command line as instructed at https://code.dlang.org/packages/dls, I set in ide-dlang the path to DLS executable as "C:\Users\admin\AppData\Local\dub\packages\.bin\dls-latest\dls.exe", I copied your build-provider.js file in place of the original one, I even replaced dmd.exe with ldc2.exe where appears in the build-provider.js file but I keep getting "No targets found" when pressing F7 or "No eligible build target No configuration to build this project exists." when pressing F9. Could you please help me identify the issue and sort it out? I am on Win10 64. From r.sagitario at gmx.de Sun Apr 12 05:41:48 2020 From: r.sagitario at gmx.de (Rainer Schuetze) Date: Sun, 12 Apr 2020 07:41:48 +0200 Subject: VisualD intelli sense not working In-Reply-To: References: Message-ID: On 11/04/2020 16:21, Jiyan wrote: > Hey, > i am using VisualD, the debugger is working correctly and if i write sth > like import std. it show me the correct suggestions (stdio etc) but if i > write sth like > > struct A{int a;} > A b; > b. If you write this code at module scope, it isn't valid because a declaration is expected, but it looks like you are starting an expression. inside a function, it this works for me. I get different results depending on what semantic engine is used, though. You can try switching them with the "use DMD parsing engine" setting on the Text Editor->D->Intellisense options page. > > Intelli sense doesnt work > > What might be wrong with my configuration? "doesnt work" is rather unspecific. Does that mean it doesn't show a completion box, or that there are no results, or too many? From jiyan at jiyan.info Sun Apr 12 22:25:46 2020 From: jiyan at jiyan.info (Jiyan) Date: Sun, 12 Apr 2020 22:25:46 +0000 Subject: VisualD intelli sense not working In-Reply-To: References: Message-ID: On Sunday, 12 April 2020 at 05:41:48 UTC, Rainer Schuetze wrote: > > > On 11/04/2020 16:21, Jiyan wrote: >> [...] > > If you write this code at module scope, it isn't valid because > a declaration is expected, but it looks like you are starting > an expression. > > inside a function, it this works for me. I get different > results depending on what semantic engine is used, though. You > can try switching them with the "use DMD parsing engine" > setting on the Text Editor->D->Intellisense options page. > >> [...] > > "doesnt work" is rather unspecific. Does that mean it doesn't > show a completion box, or that there are no results, or too > many? Hey, i fixed the problem by reinstalling VisualD, i had an old version of it. Thank you it works now :) From b2.temp at gmx.com Fri Apr 24 08:44:10 2020 From: b2.temp at gmx.com (Basile B.) Date: Fri, 24 Apr 2020 08:44:10 +0000 Subject: Dexed, revived! In-Reply-To: References: Message-ID: On Saturday, 11 April 2020 at 14:05:43 UTC, RegeleIONESCU wrote: > Dear Sir, I am following your instructions on how to compile > and build Dexed on Windows 10. Could you please help me find > out why I get the following error? > > [...] Sorry I don't know how I've managed to miss your message since the 11. Maybe it's because the topic was more about Akira's fork originally. The compiler error message means that u_dastworx is missing in the "use" clause (it's like D imports). You can try to add it by editing u_dastworx.pas. > Fatal: (1018) Compilation aborted > Error: C:\lazarus\fpc\3.0.4\bin\x86_64-win64\ppcx64.exe > returned an error exitcode > Error: (lazarus) Compile Project, Mode: Release, Target: > C:\temp\dexed-v3.8.3\bin\dexed.exe: stopped with exit code 1 > Error: (lazbuild) failed compiling of project > C:\temp\dexed-v3.8.3\lazproj\dexed.lpi > > [...] Note that the problem wont be fixed. 1. next version, v3.9.0, doesn't use dastworx anymore but rather a library, compiled with LDC. 2. I don't support Windows anymore so people have to submit their fixes if they want dexed to continue working on Windows. This can be done by sending me patches by email (clone the gitlab project, look at the git history to find my mail) or gitlab merge_requests. From b2.temp at gmx.com Fri Apr 24 09:20:22 2020 From: b2.temp at gmx.com (Basile B.) Date: Fri, 24 Apr 2020 09:20:22 +0000 Subject: Dexed, revived! In-Reply-To: References: Message-ID: On Friday, 24 April 2020 at 08:44:10 UTC, Basile B. wrote: > On Saturday, 11 April 2020 at 14:05:43 UTC, RegeleIONESCU wrote: >> Dear Sir, I am following your instructions on how to compile >> and build Dexed on Windows 10. Could you please help me find >> out why I get the following error? >> >> [...] > > Sorry I don't know how I've managed to miss your message since > the 11. Maybe it's because the topic was more about Akira's > fork originally. > The compiler error message means that u_dastworx is missing in > the "use" clause (it's like D imports). You can try to add it > by editing u_dastworx.pas. > >> Fatal: (1018) Compilation aborted >> Error: C:\lazarus\fpc\3.0.4\bin\x86_64-win64\ppcx64.exe >> returned an error exitcode >> Error: (lazarus) Compile Project, Mode: Release, Target: >> C:\temp\dexed-v3.8.3\bin\dexed.exe: stopped with exit code 1 >> Error: (lazbuild) failed compiling of project >> C:\temp\dexed-v3.8.3\lazproj\dexed.lpi >> >> [...] > > Note that the problem wont be fixed. > > 1. next version, v3.9.0, doesn't use dastworx anymore but > rather a library, compiled with LDC. > 2. I don't support Windows anymore so people have to submit > their fixes if they want dexed to continue working on Windows. > This can be done by sending me patches by email (clone the > gitlab project, look at the git history to find my mail) or > gitlab merge_requests. I think that this might work fine actually. On linux I've just updated LDC and linking the new library doesn't require anything to be moved thanks to "-link-defaultlib-shared=false" so after clonig master, installing Laz and FPC 1. Have the path to ldc binaries in your PATH env variable 2. $ lazbuild -B dexeddesigncontrols.lpk 3. $ lazbuild -B dexed.lpi should be enough. At the beginning of step 3, DUB is automatically called to build the library. on linux the shortcut to dexed must now include a special env change so that the shell sees the library. For example, the "Exec" value of the .desktop file should be env LD_LIBRARY_PATH= /dexed mine concrectly is env LD_LIBRARY_PATH=~/dev/projects/dexed/bin ~/dev/projects/dexed/bin/dexed on windows I think that a dll is still detected when it stands in the same folder as the exe requiring it. To be verified. Everything is up to date here : https://basile.b.gitlab.io/dexed/build.html It just that nobody has tested if the windows version is still ok.