Commit Graph

86 Commits

Author SHA1 Message Date
Al Poole 4b12a5a1ae scm: add method to get diff of changes in SCM repository.
Add method to obtain the diff of changes and also add this to the
commit screen. There is also some minor UI tweaks included in
this commit, though related to methods modified.
2017-09-11 16:27:40 +01:00
Al Poole 64648b87f5 edi_exe: don't send data if socket connect fails.
May be a use case where we don't send data indicative of
exit status.
2017-09-09 16:16:47 +01:00
Al Poole 2fcd434e3c edi_exe: Don't use global variables.
Globals are unnecessary here.
2017-09-09 11:19:51 +01:00
Al Poole b19befd089 edi_exe: modify method to allow additional data parameter.
This adds an additional pointer for abritrary data. Have utilised
this to make the notidy on build more verbose without code
duplication.
2017-09-08 00:16:10 +01:00
Al Poole 9be1db4858 build: Add status detection of all build types.
This adds tracking of other build types and their exit status and
allows us to use desktop notification for these also. Also cleaned
up some unnecessary cleanup code.
2017-09-06 13:08:02 +01:00
Al Poole 7e9f33a635 exe: Add methods to handle async shell execution and acting on exit status.
This adds two methods for handling executing shells async. The notification
has been reworked to use this method so there is less blocking. A callback
can be passed to the handler method for various actions on the exit status
of the script execution.
2017-09-05 15:58:00 +01:00
Al Poole 5aba714f90 build: Add support for tracking build process exit code and add notification.
This patch adds tracking of the build process's status code. This allows us
to respond to the build process within the program much easier. Also added
a simple API for desktop notification of the build process and its exit code
which is useful and pretty.
2017-09-04 20:52:34 +01:00
Al Poole d4d8d4fb91 edi_scm: make sure we always delete the file if it is untracked.
Summary:
there are times when new files are difficult to delete without adding commiting and removing etc.
this should stop that.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5120
2017-08-28 14:02:45 +01:00
Andy Williams 26f65e4167 build: fall back to make don't try it first.
Other providers have far more specific requirements
2017-08-18 15:37:07 +01:00
Jean-Philippe Andre 9a5eb35e60 build: Add crude meson/ninja support
This only uses "build" as build folder. Very simplistic.
2017-07-11 19:04:01 +09:00
Andy Williams 405f93efe1 build: Add support for cargo based rust projects
In the process we needed to define if a project can be run...
Python and rust can always be run as they will build their binaries
whereas make and cmake need to be configured etc...
2017-07-05 20:51:38 +01:00
Andy Williams 33b09484a0 make: use our CPU count to speed up build 2017-06-25 16:56:57 +01:00
Andy Williams c608163e31 Merge build fixes from 'arcpatch-D4917' 2017-06-25 09:17:16 +01:00
YeongJong Lee 792ca745e7 Fix build warning
Summary: Add some error log

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4917
2017-06-25 08:54:30 +01:00
Sanjeev BA 06410fa8b0 Fix typos.
Summary: Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

Reviewers: ajwillia.ms, jpeg, cedric

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4973
2017-06-18 21:50:42 +01:00
Al Poole a232dccaba edi_scm: add support to add status of changes to the commit dialogue.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4959
2017-06-17 13:04:52 +01:00
Andy Williams 03053cad15 taskpanel: Better ignore files that are not relevant
Also improve layout slightly by aligning line starts better
2017-06-16 12:52:48 +01:00
Andy Williams ca83101e61 debug: Fix up exe_free usage as it is not needed for pipe_run calls 2017-06-11 18:51:13 -07:00
Andy Williams 19c62faa48 console: Fix error highlighting for builds
Also avoid potential crash on non-gnu systems
2017-06-09 10:36:09 -07:00
Andy Williams 31d2d30980 welcome: Add support to clone a project from the welcome screen
Also re-lay it out a little to be clearer :)
2017-06-08 23:13:02 -07:00
Andy Williams a10c4aacb6 ui: Speed up screen load and remember current tab
This is a pretty simple type of backgrounding - only load files for tabs as they become visible :)
2017-06-08 18:31:45 -07:00
Andy Williams f7d2a85044 scm: Add avatar to commit window
But it's crashing and I can't figure why
2017-06-07 22:38:21 -07:00
Andy Williams b257e81955 scm: Fix naming and hide implementation details
Also don't set credentials for push - only needed for commit
2017-06-07 14:32:10 -07:00
Andy Williams 9cf9fa415c scm: make remote adding not overwrite previous remotes
Also set upstream tracking by default not fixing retrospectively
2017-06-06 19:23:40 -07:00
Andy Williams e69cdf44d1 scm: add safety in code and in git branching
We assume origin is the name of our remote in some places so must
do so everywhere - otherwise we can overwrite the wrong remote
2017-06-06 18:11:45 -07:00
Al Poole d208afac91 scm: add support for SCM (git) in library and the UI.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Tags: #edi

Differential Revision: https://phab.enlightenment.org/D4938
2017-06-06 18:09:25 -07:00
Andrew Williams 528d3aa665 exe: capture command output to console 2017-06-04 16:41:13 +01:00
Andy Williams 7f39682980 exe: add a helper for exe waiting 2017-05-30 23:30:39 +01:00
Davide Andreoli 4614a105aa Improve the python build provider 2017-05-29 22:02:47 +02:00
Andy Williams 06954e00ef create: Allow detection of skeletons of different type.
In input ask user to choose which skeleton to use.
Thanks for the contribution davemds
2017-05-28 21:24:24 +01:00
Al Poole a9853b2b62 build_provider: add support for BSD using GNU make.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4909
2017-05-26 12:29:21 +01:00
Andy Williams 2d86f50a26 build: Fix python project detection 2017-05-16 22:43:39 +01:00
Andy Williams 0483196de4 clang: Update clang command database to support cmake too 2017-02-19 22:25:12 +00:00
Andy Williams 32b6169e0d Centralise some more path handling methods 2017-02-19 16:22:53 +00:00
Andy Williams b5c061bc4d build: Split make from cmake so we can specialise better 2017-02-18 22:19:17 +00:00
Andy Williams 7735a90cc0 clang: Generate compile_commands.json using cmake builtin 2017-02-18 21:58:56 +00:00
Andy Williams f89f1bb0c6 clang: Add support for compile command databases
Relies on having bear (https://github.com/rizsotto/Bear).
Also refactor clang code to only have 1 instance per tab.
2017-02-17 22:49:27 +00:00
Andy Williams a053bb9757 build: add trivial python project support 2017-02-07 00:05:06 +00:00
Andy Williams 14498afdaa config: Store relative paths for open files
Avoid problems with moving project
or having multiple copies of the same codebase!
2017-01-02 21:19:55 +00:00
Andy Williams c5a4aafe4d build: Fix some issues with the build output 2016-12-26 18:35:36 +00:00
Andy Williams 65cda5ee4d fix extension lookup so we can see .eo files again 2016-11-30 04:00:48 +00:00
Andy Williams a874a6b4ee Fix build warning 2016-11-06 16:24:17 +00:00
Andy Williams 1855b437af config: Move project config into global config area
A little refactoring to get the project name to index this
2016-11-04 14:49:39 +00:00
Andy Williams 1ab2700a7c fix typo 2016-10-23 19:59:54 +01:00
Andy Williams a775d378e3 Change sed usage to be portable.
@fix T4676
2016-10-22 20:26:38 +01:00
Andy Williams 97e2192a2b files: tidy code to be easier to read
Thanks for the tip, vtorri
2016-09-30 21:47:05 +01:00
Andy Williams 8b7fbed43b files: Also ignore .a and .la for a make project 2016-09-30 10:34:11 +01:00
Andy Williams 51c3cdeca6 lib: let the callback to create be optional 2016-09-25 15:58:36 +01:00
Andy Williams 357acdca7b [build] Abstract build logic to provider lookup
Allow future extensibility for different build types.
Display detected type in project window title.
2016-05-16 09:11:11 +01:00
Andy Williams 18f1a87b09 [builder] use builtin sh support in Ecore_Exe
Thanks for the hint Vincent :)
2016-01-17 17:58:53 +00:00