www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Is VisualD compatible with M1s?

reply tastyminerals <tastyminerals gmail.com> writes:
It's been more than half a year since my last try. Still no luck. 
The syntax highlighting works, but no autocompletion on M1 Mac. I 
am using ldc compiler 1.27.1 and VisualD 0.23.2 plugin. Does 
anyone with M1 have it working?
Jun 13 2022
parent reply tastyminerals <tastyminerals gmail.com> writes:
On Monday, 13 June 2022 at 11:34:39 UTC, tastyminerals wrote:
 It's been more than half a year since my last try. Still no 
 luck. The syntax highlighting works, but no autocompletion on 
 M1 Mac. I am using ldc compiler 1.27.1 and VisualD 0.23.2 
 plugin. Does anyone with M1 have it working?
(facepalming) I meant code-d VSCode plugin of course...
Jun 13 2022
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Monday, 13 June 2022 at 11:37:33 UTC, tastyminerals wrote:
 On Monday, 13 June 2022 at 11:34:39 UTC, tastyminerals wrote:
 It's been more than half a year since my last try. Still no 
 luck. The syntax highlighting works, but no autocompletion on 
 M1 Mac. I am using ldc compiler 1.27.1 and VisualD 0.23.2 
 plugin. Does anyone with M1 have it working?
(facepalming) I meant code-d VSCode plugin of course...
I'm not sure what's broken on M1 right now. Are you on nightly serve-d build? There have been some linker errors introduced recently which I need to fix still to get nightly builds to work again (just unittests broken though because of -checkaction=context) You could try to compile serve-d from source yourself and put it in code-d, although autocompletion with DCD might still not work on M1 with the precompiled binaries. Build serve-d: ``` git clone https://github.com/Pure-D/serve-d.git cd serve-d dub build --compiler=ldc2 ``` then try to use it in code-d by setting the user setting `d.servedPath` to `/path/to/serve-d` and reloading the window. Then verify that basic syntax checking works in a simple hello world project (test that you get red squiggly lines for syntax errors) - if this doesn't work serve-d fails to run somehow if that works, try out if auto completion of local symbols work. (define some function or variable named foobar and try to autocomplete it in your main function) - if this doesn't work DCD is broken if that works, import std.stdio and try to autocomplete writeln in your main function. - if this doesn't work there is some problem with stdlib import detection if that works, then DUB packages and build_commands.json should work as well (if using supported feature sets) if anything in that list doesn't work, send your error log or a link to it here. (VSCode Output Tab -> code-d/serve-d log) If it's just DCD that's broken you can try compiling that from source as well: ``` git clone https://github.com/dlang-community/DCD cd DCD dub build --compiler=ldc2 --config=server ``` and setting `d.dcdServerPath` to the resulting dcd-server binary (in bin directory) but do reply to here anyway if you needed to create any of these self-compiled binaries.
Jun 13 2022
next sibling parent WebFreak001 <d.forum webfreak.org> writes:
On Monday, 13 June 2022 at 14:16:54 UTC, WebFreak001 wrote:
 On Monday, 13 June 2022 at 11:37:33 UTC, tastyminerals wrote:
 On Monday, 13 June 2022 at 11:34:39 UTC, tastyminerals wrote:
 It's been more than half a year since my last try. Still no 
 luck. The syntax highlighting works, but no autocompletion on 
 M1 Mac. I am using ldc compiler 1.27.1 and VisualD 0.23.2 
 plugin. Does anyone with M1 have it working?
(facepalming) I meant code-d VSCode plugin of course...
[...]
note: I just saw https://github.com/Pure-D/code-d/issues/395 still depended on dfmt and dscanner rdmd -> $DC -run changes. I have merged those now as with 2.100 and the bundled dub it was possible to replace those in a platform-independent manner, but you might need to clone dfmt and D-Scanner before building serve-d and adding dub local packages: ``` git clone https://github.com/dlang-community/D-Scanner.git git clone https://github.com/dlang-community/dfmt.git dub add-local D-Scanner dub add-local dfmt both folders afterwards) ```
Jun 13 2022
prev sibling parent reply zjh <fqbqrr 163.com> writes:
On Monday, 13 June 2022 at 14:16:54 UTC, WebFreak001 wrote:


 and setting `d.dcdServerPath` to the resulting dcd-server 
 binary (in bin directory)

 but do reply to here anyway if you needed to create any of 
 these self-compiled binaries.
Are there any `'VIM' tutorials` for `'code-d/serve-d'`?
Jun 13 2022
parent reply zjh <fqbqrr 163.com> writes:
On Monday, 13 June 2022 at 14:31:25 UTC, zjh wrote:

 Are there any `'VIM' tutorials` for `'code-d/serve-d'`?
I compiled successfully, but I don't know how to use it in 'VIM'.
Jun 13 2022
parent WebFreak001 <d.forum webfreak.org> writes:
On Monday, 13 June 2022 at 14:33:10 UTC, zjh wrote:
 On Monday, 13 June 2022 at 14:31:25 UTC, zjh wrote:

 Are there any `'VIM' tutorials` for `'code-d/serve-d'`?
I compiled successfully, but I don't know how to use it in 'VIM'.
refer to https://github.com/Pure-D/serve-d/blob/master/editor-vim.md
Jun 13 2022