Fails to install/run on first try clean system - m1 osx.
See original GitHub issueHey! Just tried to install the vscode extension, on am m1 mac (so no dmd - but do have ldc and dub)
Anyway, when I open a D file I get a serve-d related message asking if I would like to compile it. And then this happens:
Installing into ~/.vscode/extensions/webfreak.code-d-0.23.2/bin
Removing old version
Removed old version
> git clone --recursive https://github.com/Pure-D/serve-d.git serve-d
Cloning into 'serve-d'...
> git checkout v0.7.4
Note: switching to 'v0.7.4'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at e1fcbb8 bump to 0.7.4
> /opt/homebrew/bin/dub upgrade
Upgrading project in ~/.vscode/extensions/webfreak.code-d-0.23.2/bin/serve-d
> /opt/homebrew/bin/dub build --compiler=ldc2
## Warning for package serve-d, configuration unittest-optimized ##
The following compiler flags have been specified in the package description
file. They are handled by DUB and direct use in packages is discouraged.
Alternatively, you can set the DFLAGS environment variable to pass custom flags
to the compiler, or use one of the suggestions below:
debugInfo: Call DUB with --build=debug
optimize: Call DUB with --build=release
unittests: Call DUB with --build=unittest
Invalid source/import path: ~.dub/packages/dfmt-0.14.1/dfmt/bin
Invalid source/import path: ~/.dub/packages/dscanner-0.11.1/dscanner/bin
Invalid source/import path: ~/.dub/packages/dcd-0.13.6/dcd/bin
Running pre-generate commands for dfmt...
/bin/sh: rdmd: command not found
Command failed with exit code 127: rdmd "~/.dub/packages/dfmt-0.14.1/dfmt/dubhash.d"
Failed to install serve-d (Error code 2)
Is it that I have to install rdmd manually or something?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
Install after repairing your disk. Use Disk Utility to repair your startup disk. Then try updating or installing macOS again.
Read more >How to Fix the "macOS Could Not Be Installed on Your ...
Open the Apple () menu and select Restart from the dropdown menu to do so. If your Mac is unresponsive, press and hold...
Read more >How to Reinstall macOS on M1 24" iMac 3 DIFFERENT WAYS ...
1. Use the internal macOS recovery = 1-2 Hours total reinstall time 2. Use Big Sur or Monterey USB Installer Drive = 30-45...
Read more >How to clean install macOS on your Mac - Macworld
1. We're going to re-download the installer file for our chosen version of macOS and store it on a USB stick or external...
Read more >Mac won't update to macOS Monterey? Try this - MacPaw
As with any macOS, it can contain undiscovered bugs, but it's not the reason it occasionally gets stuck during the installation. The system...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

dfmt: https://github.com/dlang-community/dfmt/issues/472 D-Scanner: https://github.com/dlang-community/D-Scanner/issues/821
the changes required an update in dub which is now included with DMD 2.100 and the changes have been merged with dfmt and D-Scanner. Currently you still need them on the master branch, which you can try out now by cloning them and calling
dub add-local <dir>on both of them and then building serve-d. (and then calldub remove-local <dir>on both of them again to unregister them globally)