digitalmars / med Goto Github PK
View Code? Open in Web Editor NEWMicro Emacs in D
License: Other
Micro Emacs in D
License: Other
I get errors on the following lines when compiling on 64-bit Linux (Ubuntu or Fedora, but I assume this is not distro-specific). The problem in all cases is the use of size_t
, causing a ulong
to be passed as a parameter that should be int
.
display.d: Lines 323, 324, 327
more.d: Lines 399, 402
Importing std.conv
and adding to!int
as needed fixed the problem in all cases. I'd have submitted a PR, but I don't know if this is how you want to fix it.
I'm using Mac OS.
Joels-MBP:med joelcnz$ dub build
Building med 1.0.0 configuration "application", build type debug.
Compiling using dmd...
src/med/display.d(166): Error: undefined identifier term
src/med/display.d(167): Error: undefined identifier term
src/med/display.d(168): Error: undefined identifier term
src/med/display.d(169): Error: undefined identifier term
src/med/display.d(176): Error: undefined identifier term
src/med/display.d(191): Error: undefined identifier term
src/med/display.d(207): Error: undefined identifier term
src/med/display.d(208): Error: undefined identifier term
src/med/display.d(209): Error: undefined identifier term
src/med/display.d(235): Error: undefined identifier term
src/med/display.d(237): Error: undefined identifier term
src/med/display.d(238): Error: undefined identifier term
src/med/display.d(341): Error: undefined identifier term
src/med/display.d(342): Error: undefined identifier term
src/med/display.d(366): Error: undefined identifier ttkeysininput
src/med/display.d(375): Error: undefined identifier term
src/med/display.d(457): Error: undefined identifier term
src/med/display.d(458): Error: undefined identifier term
src/med/display.d(604): Error: undefined identifier term
src/med/display.d(607): Error: undefined identifier term
src/med/display.d(624): Error: undefined identifier term
FAIL .dub/build/application-debug-posix.osx-x86_64-dmd_2066-35C0D2528E338048941413D2E9B5CC19/ med executable
Error executing command build: dmd failed with exit code 1.
Joels-MBP:med joelcnz$
make -f linux.mak
dmd -c -g -odobj -Isrc/med src/med/ed.d
dmd -c -g -odobj -Isrc/med src/med/basic.d
src/med/main.d(360): Error: undefined identifier 'help'
linux.mak:42: recipe for target 'obj/basic.o' failed
make: *** [obj/basic.o] Error 1
Steps to reproduce
What happens?
Explosion.
core.exception.SwitchError@console(314): No appropriate switch clause found
----------------
0x00436F34 in char[][] core.sys.windows.stacktrace.StackTrace.trace()
0x00436DBF in core.sys.windows.stacktrace.StackTrace core.sys.windows.stacktrace.StackTrace.__ctor()
0x00420418 in onSwitchError
0x004171B9 in int console.ttkeysininput() at C:\Users\Bernard\Coding\src\med\console.d(382)
0x004156FF in int main.getkey() at C:\Users\Bernard\Coding\src\med\main.d(649)
0x0041506D in _Dmain at C:\Users\Bernard\Coding\src\med\main.d(489)
0x0041C9FC in extern (C) int rt.dmain2.main(int, char**).void runMain()
0x0041CA36 in extern (C) int rt.dmain2.main(int, char**).void runAll()
0x0041C658 in main
0x00441971 in mainCRTStartup
0x75C3339A in BaseThreadInitThunk
0x77919EF2 in RtlInitializeExceptionChain
0x77919EC5 in RtlInitializeExceptionChain
----------------
What do you expect to happen?
No idea, but not that.
Using dub registry url 'http://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/swoorup/.dub/packages/local-packages.json
Try to load local package map at /home/swoorup/.dub/packages/local-packages.json
Determined package version using GIT: dash 0.12.0-beta1+commit.27.gb7d589a
Determined package version using GIT: med 1.0.0
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/swoorup/.dub/packages/local-packages.json
Try to load local package map at /home/swoorup/.dub/packages/local-packages.json
Checking for missing dependencies.
Refreshing local packages (refresh existing: false)...
Looking for local package map at /var/lib/dub/packages/local-packages.json
Looking for local package map at /home/swoorup/.dub/packages/local-packages.json
Try to load local package map at /home/swoorup/.dub/packages/local-packages.json
Checking for upgrades.
Using cached upgrade results...
Generating using build
Generate target med (executable /home/swoorup/git/dlang_projects/med/bin med)
Performing "debug" build using dmd for x86_64.
Target '/home/swoorup/git/dlang_projects/med/.dub/build/application-debug-linux.posix-x86_64-dmd_2070-EC714E7D07A609E23735D82D8B1F2761/med' doesn't exist, need rebuild.
med 1.0.0: building configuration "application"...
dmd -c -of.dub/build/application-debug-linux.posix-x86_64-dmd_2070-EC714E7D07A609E23735D82D8B1F2761/med.o -debug -g -w -version=Have_med -Isrc/med src/med/basic.d src/med/buffer.d src/med/console.d src/med/disp.d src/med/display.d src/med/disprev.d src/med/ed.d src/med/file.d src/med/fileio.d src/med/line.d src/med/main.d src/med/more.d src/med/mouse.d src/med/random.d src/med/region.d src/med/search.d src/med/spawn.d src/med/tcap.d src/med/terminal.d src/med/termio.d src/med/window.d src/med/word.d src/med/xterm.d -vcolumns
src/med/buffer.d(254,16): Warning: instead of C-style syntax, use D-style syntax 'dchar[6 + 1] b'
src/med/buffer.d(255,16): Warning: instead of C-style syntax, use D-style syntax 'dchar[128] line'
src/med/console.d(188,15): Warning: instead of C-style syntax, use D-style syntax 'CHAR_INFO[256] sbbuf'
src/med/disp.d(34,11): Warning: instead of C-style syntax, use D-style syntax 'ubyte[3] reserved'
src/med/display.d(948,9): Warning: instead of C-style syntax, use D-style syntax 'dstring[HISTORY_MAX] history'
src/med/main.d(71,9): Warning: instead of C-style syntax, use D-style syntax 'dchar[256] kbdm'
src/med/main.d(453,8): Warning: instead of C-style syntax, use D-style syntax 'CMDTAB[] cmdtab'
src/med/tcap.d(54,6): Warning: instead of C-style syntax, use D-style syntax 'char[2048] tcapbuf'
src/med/tcap.d(209,14): Warning: instead of C-style syntax, use D-style syntax 'char[16] backc'
src/med/display.d(1167,13): Warning: switch case fallthrough - use 'goto default;' if intended
src/med/main.d(515,5): Warning: statement is not reachable
src/med/search.d(208,5): Warning: statement is not reachable
src/med/search.d(211,5): Warning: statement is not reachable
src/med/search.d(214,5): Warning: statement is not reachable
src/med/search.d(328,7): Warning: switch case fallthrough - use 'goto case;' if intended
FAIL .dub/build/application-debug-linux.posix-x86_64-dmd_2070-EC714E7D07A609E23735D82D8B1F2761/ med executable
dmd failed with exit code 1.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.