Commit graph

53 commits

Author SHA1 Message Date
Christopher Dunn
cf7c147121 Choose USER-specific tmpdir
re: #80
2019-05-26 12:56:27 -05:00
Yuriy Glukhov
22485bbd6a Fixed finExe in nimscript 2018-12-13 19:15:10 +02:00
Clyybber
66d79bf9a0 Replace deprecated procs (#560)
* Replace deprecated procs

* Remove deprecated proc

* Use sugar instead of future

* Use sugar instead of future 2

* Remove renameBabelToNimble

since it wasn't exported or used anyways

* Use sugar instead of future 3

* Use toUnix
2018-10-14 17:45:18 +01:00
Sebastien Braun
964af450dd Properly guard access to NimCompilerApiVersion.
Makes master compile on latest released Nim 0.18.0.
2018-09-15 21:36:33 +02:00
Andreas Rumpf
e6c41248e6 prepare Nimble for NimCompilerApiVersion 3 2018-09-07 01:40:01 +02:00
Dominik Picheta
8134427266 Fixes isNil errors for compatibility with latest Nim. 2018-08-27 17:27:09 +01:00
Dominik Picheta
db222bbae1 Improves pre and post hooks. Fixes #524. 2018-08-23 00:33:06 +01:00
LemonBoy
8d4b0b34dd Add missing call to cleanup() 2018-07-13 14:55:35 +02:00
Andreas Rumpf
3b177e278b Make Nimble compatible with the upcoming compiler API changes (#500)
* Make Nimble compatible with the upcoming compiler API changes

* make travis use nim-0.18.0

* make Nimble compile with older compiler versions

* attempt to make tests green with Nim v0.18
2018-06-10 13:50:40 +01:00
Yuriy Glukhov
5fcd7e5965 Fixed getPkgDir 2018-05-31 14:59:35 +03:00
Araq
12b5a9a4d1 fixes #491 2018-05-17 00:22:40 +02:00
Andreas Rumpf
02945e57b5 prepare Nimble for the upcoming compiler API (#489)
* prepare Nimble for the upcoming compiler API changes

* attempt to make tests green

* make some tests green with the upcoming compiler API
2018-05-14 11:35:30 +01:00
Andreas Rumpf
e2869714b8 prepare Nimble for the upcoming compiler API changes (#488)
* prepare Nimble for the upcoming compiler API changes

* attempt to make tests green
2018-05-13 19:07:27 +01:00
Dominik Picheta
2b9215256b Show friendly error message when stdlib is outdated. 2018-01-27 15:37:51 +00:00
Dominik Picheta
6354132959 Implement nimLibPrefix config var and add better messages for it. 2018-01-09 22:32:08 +00:00
Dominik Picheta
c271435a84 Lower priority of messages from NimScript parser. 2018-01-09 21:57:39 +00:00
Dominik Picheta
182893c529 Show better error when standard library cannot be found. 2018-01-09 21:56:12 +00:00
Xiao-Yong
4992707e8b Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363 (#416)
* Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363

By default, the module will be under
  $HOME/.nimble/nimblecache/nimblepkg/nimscriptapi.nim
and the following directory will be in the searchPaths
  $HOME/.nimble/nimblecache/

* Put "nimblepkg/nimscriptapi.nim" under nimbleDir, fix #363

By default, the module will be under
  $HOME/.nimble/nimblecache/nimblepkg/nimscriptapi.nim
and the following directory will be in the searchPaths
  $HOME/.nimble/nimblecache/
2017-10-19 18:58:50 +01:00
Dominik Picheta
301a366dd2 Refactoring and many fixes to PR #378. (Broken)
This commit is broken due to a cleanup issue with NimScript eval.
2017-09-03 17:37:52 +01:00
Daniil Yarancev
29c9cf8ce7 Removed deprecated warnings, also tiny refactoring 2017-08-10 12:51:16 +03:00
Dominik Picheta
4a71ccbbd4 Improve getNimPrefixDir to support choosenim and env var.
See comment for more information. This commit also adds support
for an environment variable so that users have a workaround
when Nimble cannot find the Nim stdlib.
2017-05-05 12:36:54 +01:00
Andrea Ferretti
83731a9b32 Fixed #329 2017-02-10 16:53:27 +01:00
Dominik Picheta
ee07fb83e7 Always overwrite temporary nimscriptapi.nim in /tmp. 2017-01-11 00:10:40 +01:00
Dominik Picheta
4f175749e4 Don't search for nimscriptapi overrides. Fixes #306. 2017-01-04 16:05:43 +00:00
Dominik Picheta
b629048249 Just check for nimdistros instead of adding an additional define. 2017-01-03 19:00:39 +00:00
Dominik Picheta
fcbb3de783 More intelligent definition of nimbledistros.
This fixes issues with using latest Nimble in an
0.15.2 environment.

Squashed commit of the following:

commit 4c5f791873b7965a25b9dbdb29a96b38a065c478
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Tue Jan 3 18:41:30 2017 +0000

    Disable output in tester.

commit 9f4af9685a36fbebc5a71b6d39130c2d2b30bc05
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Tue Jan 3 18:30:38 2017 +0000

    Attempt at fixing tests.

commit d0de031d1ce11be0f106eb6d92885b6833ce95b0
Author: Dominik Picheta <dominikpicheta@gmail.com>
Date:   Tue Jan 3 18:16:40 2017 +0000

    Testing.
2017-01-03 18:41:51 +00:00
Dominik Picheta
040189dfca Define new symbol to support distros in older Nimble versions. 2017-01-03 17:06:18 +00:00
Araq
e813aa6448 Merge branch 'master' into native-pkg-support 2016-12-23 16:01:37 +01:00
Araq
b3b4c6343f moved new feature to separate 'distros.nim' module 2016-12-23 16:01:10 +01:00
Dominik Picheta
c0f2bd03b1 More use of the cli module. 2016-12-22 16:30:24 +01:00
Araq
ee3ad4353e fixes a 'break search loop' bug; got rid of most compiler warnings 2016-11-06 23:06:37 +01:00
Araq
a0670e9620 finish migration to new compiler API 2016-11-06 19:58:37 +01:00
Araq
417136e57e make Nimble compiler with the lastest version of the compiler API 2016-11-05 01:17:05 +01:00
Araq
9c81e28343 Merge branch 'master' into araq-compiler-api2 2016-11-01 00:21:51 +01:00
Araq
4ce6f2b395 make Nimble compile with the changed compiler API 2016-10-31 20:40:21 +01:00
Dominik Picheta
06b942680b Remove spammy message about nimscriptapi.nim. 2016-10-26 21:14:18 +02:00
Dominik Picheta
65dbd97269 Moves nimbleVersion to common.nim and uses it in .nimble file. 2016-10-09 15:19:42 +02:00
Dominik Picheta
b0737ada9b Fixes #186. 2016-10-08 21:13:49 +02:00
Dominik Picheta
138a5a2ae9 Statically read nimscriptapi.nim into the executable.
Fixes #238.
2016-10-08 20:27:47 +02:00
Dominik Picheta
b50426c3d3 Set compiler.options.gPrefixDir to help it find the stdlib.
Fixes #220. Fixes #173.
2016-06-06 21:16:08 +01:00
Dominik Picheta
1fa209a689 Fix tests. Add test for hooks. 2015-12-30 20:20:04 +00:00
Dominik Picheta
42ef358459 Various optimisations to PackageInfo reading and bug fixes.
* PackageInfo objects are now cached because NimScript evaluation is expensive.
* before/after hooks now return `true` by default.
* Bugfix: when hooks weren't found Nimble would still think that a hook told it
  to skip an action.
* PackageInfo now includes info about which hooks are defined to prevent
  unnecessary execution of those hooks.
* Probably more.
2015-12-30 19:43:20 +00:00
Dominik Picheta
5d55a5f7a2 Fix NimScriptApi builtins. Implement before/after hooks for NimS. 2015-12-30 18:14:32 +00:00
Dominik Picheta
8d4c6446d1 Fixes #171 2015-12-28 16:40:21 +00:00
Dominik Picheta
ca99ad7d21 Moved Nimble-specific Nimscript definitions to nimscriptapi module.
* Moved package info reading procedures to a packageparser module. This is to prevent recu
rsive dependencies between nimscriptsupport and packageinfo modules.
* Passed the Options object to all procedures which read package info (necessary for nimscriptsupport module, to find the path of the nimscriptapi module)
* Introduced an ``isInstalled`` field to the ``PackageInfo`` type. This is a bug fix for g
etRealDir: it no longer uses the ``src`` field in the path it returns for installed packag
es' PackageInfo objects.
* Improved error reporting from NimScript evaluator.
* Renamed compiler/options import to ``compiler_options`` in ``nimscriptsupport`` module.
* Backward compatibility for .babel packages in getNameVersion proc.
* Introduced a getInstalledPkgsMin procedure which does not read package info, but only pr
ovides minimal info instead.
2015-12-28 16:33:34 +00:00
Dominik Picheta
84f371982b Implemented flags and arguments for NimScript's setCommand. 2015-12-25 16:32:46 +00:00
Yuriy Glukhov
6cb0c5043b Fixed compilation 2015-12-24 11:25:59 +02:00
Dominik Picheta
7d5428be19 Improved the init command. Fixes #96. 2015-12-23 22:40:14 +00:00
Dominik Picheta
dbd478bc20 The .nimble extension is now used for both ini and nims .nimble files.
This is done by parsing the .nimble file using the ini parser first, then if that fails evaluating it using nimscript.
2015-12-23 20:48:05 +00:00
Dominik Picheta
0fcf0b2de9 Implemented `tasks` command. 2015-12-23 13:33:14 +00:00