Thread overview
Visual D doesn't work, now Visual Studio Code / D doesn't work!!!! ....
Oct 02, 2022
Daniel Donnell, Jr
Oct 02, 2022
Imperatorn
Oct 02, 2022
Sergey
Oct 02, 2022
Mike Parker
Oct 02, 2022
rikki cattermole
Oct 03, 2022
Rainer Schuetze
Oct 04, 2022
Alain De Vos
Oct 07, 2022
z
October 02, 2022

I thought I set everything up correctly, and now:

Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 0xC0000096: Privileged instruction.
Unable to open natvis file 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.

So what the hell do you D developers use to code with if A) Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always something that pops up and doesn't work right. And it never gets fixed. How the heck do you expect me to debug without a proper debugging IDE :|

October 02, 2022

On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr wrote:

>

I thought I set everything up correctly, and now:

Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 0xC0000096: Privileged instruction.
Unable to open natvis file 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.

So what the hell do you D developers use to code with if A) Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always something that pops up and doesn't work right. And it never gets fixed. How the heck do you expect me to debug without a proper debugging IDE :|

This is partly valid criticism. Many other languages have a better oob-experience.

But, D is underpowered.

Coming from C# to D was a rather painful experience. D is a great language for a lot of stuff, but when it comes to IDE and debugging, you can't expect the same "just works" experience as with C# for example.

That's just the way it is unfortunately.

Are you running as administrator or not btw?

October 02, 2022

On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr wrote:

>

I thought I set everything up correctly, and now:

Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 0xC0000096: Privileged instruction.
Unable to open natvis file 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.

So what the hell do you D developers use to code with if A) Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always something that pops up and doesn't work right. And it never gets fixed. How the heck do you expect me to debug without a proper debugging IDE :|

Did you try DlangIDE or Dexed?
They could be a solution

October 02, 2022

On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr wrote:

>

I thought I set everything up correctly, and now:

Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 0xC0000096: Privileged instruction.
Unable to open natvis file 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.

So what the hell do you D developers use to code with if A) Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always something that pops up and doesn't work right. And it never gets fixed. How the heck do you expect me to debug without a proper debugging IDE :|

Plenty of people are using Visual D and VS Code with D. Whatever the source of your problem, it's surely fixable. Though if no one has encountered this particular issue, then it may take some doing to figure out the problem.

I've emailed Rainer, the maintainer of Visual D, to notify him of this thread. He might have an idea of what's wrong, or at least will be in a position to ask more informed questions than I or others to help you solve the problem.

In the future, when you encounter Visual D issues, please post in the IDEs forum. Rainer checks in there more regularly and will be more likely to see your posts.

https://forum.dlang.org/group/ide

October 03, 2022
Visual Studio with its c++ components can debug D code, it should not require Visual D to do so.

Open executable as project.

If this does not work, you have a serious issue in your system/VS install.

This may help to narrow down what is going on.

October 03, 2022

On 02/10/2022 13:00, Daniel Donnell wrote:
> Visual D doesn't work - it just ate my app.obj file and can't find it
> anymore no matter if I clean or re-order the executable paths in
> settings.

Can you be more specific what you are doing and what is going wrong?

On 02/10/2022 23:28, rikki cattermole wrote:
> Visual Studio with its c++ components can debug D code, it should not
> require Visual D to do so.
>
> Open executable as project.

Or start "devenv program.exe" from the command line.

Indeed, you don't have to build with Visual D to use the debugger. The C++-only native debugger works, but having Visual D installed also comes with a debugger extension that makes debugging smoother, e.g. you don't have to know the respective C++ syntax for watch expressions.

BTW: Using compiler options -gf instead of -g will add more debug info and can improve the debug experience.

October 04, 2022
why not try neovim.
October 07, 2022

On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr wrote:

>

I thought I set everything up correctly, and now:

Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 0xC0000096: Privileged instruction.
Unable to open natvis file 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.

So what the hell do you D developers use to code with if A) Visual D doesn't work - it just ate my app.obj file and can't find it anymore no matter if I clean or re-order the executable paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always something that pops up and doesn't work right. And it never gets fixed. How the heck do you expect me to debug without a proper debugging IDE :|

dlang.org seems to implicitly recommends a form of Visual Studio(interchangeable with vscodium?), it's recommended enough that the DMD(or is it just visual D?) installer proposes to install it too.
However, i can confirm that the situation is not that good outside of it, most general purpose code editors' D support is broken. it seems that implementing support for D is difficult.
Maybe try dexed if it's available on your platform?

If you need debugger badly and VS is inadequate, i can recommend x96dbg or another "normal"(not integrated) debugger, it should retrieve the debug symbols without difficulty.