aaronps / enotepad Goto Github PK
View Code? Open in Web Editor NEWClone of MS Notepad using Erlang (wxWidgets)
License: BSD 2-Clause "Simplified" License
Clone of MS Notepad using Erlang (wxWidgets)
License: BSD 2-Clause "Simplified" License
Hi
Tried it on os x:
x-MacBook-Air:enotepad x$ ./emaker
readlink: illegal option -- e
usage: readlink [-n] [file ...]
escript: Failed to open file: .erl
changed the script
x-MacBook-Air:enotepad x$ git diff
diff --git a/emaker b/emaker
old mode 100644
new mode 100755
index 5d237de..f94983d
--- a/emaker
+++ b/emaker
@@ -1,4 +1,5 @@
#!/bin/bash
-escript `readlink -en "$0"`.erl $@
+#escript `readlink -en "$0"`.erl $@
+escript emaker.erl $@
and then it worked as seen in this screenshot.
Can I submit the one-liner patch?
Hi,
I will be trying to solve this on my own. But thought I would create the issue so-long.
I did a git clone made sure escript
is in my %PATH%
and tried to start it, to only get the following output.
C:\Users\xxx\prj\enotepad>echo %PATH%
...;C:\Program Files\erl7.2.1\bin
C:\Users\xxx\prj\enotepad>emaker
Making 'ENotepad - Notepad clone using Erlang' Version 1.0.0
Recompile: src/wxFindReplaceDialog_ex
Recompile: src/wxFindDialogEvent_ex
Recompile: src/enotepad_wx
Recompile: src/enotepad_util
Recompile: src/enotepad_text
Recompile: src/enotepad_sup
Recompile: src/enotepad_statusbar
Recompile: src/enotepad_print
Recompile: src/enotepad_menu
Recompile: src/enotepad_font
Recompile: src/enotepad_file
Recompile: src/enotepad_config
Recompile: src/enotepad_app
Recompile: src/enotepad
ok
C:\Users\xxx\prj\enotepad>erl -pa ebin
Eshell V7.2.1 (abort with ^G)
1> enotepad:main().
** exception exit: undef
in function filename:basedir/2
called as filename:basedir(user_config,"ENotepad")
in call from enotepad_config:load/0 (src/enotepad_config.erl, line 19)
in call from enotepad_wx:init/1 (src/enotepad_wx.erl, line 110)
in call from wx_object:init_it/6 (wx_object.erl, line 337)
in call from proc_lib:init_p_do_apply/3 (proc_lib.erl, line 240)
2>
C:\Users\xxx\prj\enotepad>erl -pa ebin
Eshell V7.2.1 (abort with ^G)
1> application:start(wx), application:start(enotepad).
{error,
{{shutdown,
{failed_to_start_child,enotepad,
{undef,
[{filename,basedir,[user_config,"ENotepad"],[]},
{enotepad_config,load,0,
[{file,"src/enotepad_config.erl"},{line,19}]},
{enotepad_wx,init,1,
[{file,"src/enotepad_wx.erl"},{line,110}]},
{wx_object,init_it,6,[{file,"wx_object.erl"},{line,337}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}},
{enotepad_app,start,[normal,[]]}}}
=INFO REPORT==== 21-Nov-2016::18:39:50 ===
application: enotepad
exited: {{shutdown,
{failed_to_start_child,enotepad,
{undef,
[{filename,basedir,[user_config,"ENotepad"],[]},
{enotepad_config,load,0,
[{file,"src/enotepad_config.erl"},{line,19}]},
{enotepad_wx,init,1,
[{file,"src/enotepad_wx.erl"},{line,110}]},
{wx_object,init_it,6,
[{file,"wx_object.erl"},{line,337}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,240}]}]}}},
{enotepad_app,start,[normal,[]]}}
type: temporary
2>
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.