Commit Graph

2760 Commits

Author SHA1 Message Date
Mitchell Rosen
6d8ea064c1 Add 'delete' command, which combines 'delete.term' and 'delete.type' 2019-12-08 17:29:47 -05:00
Paul Chiusano
f1f5ead2ef
Merge pull request #1024 from unisonweb/mitchellwrosen/dead-parser-code
Remove some dead parser code
2019-12-08 14:04:48 -05:00
Mitchell Rosen
e38f3046c9 Move Unison.Codebase.SearchResult from unison-core to unison-parser-typechecker 2019-12-08 01:43:47 -05:00
Arya Irani
603ffb04dc
Merge pull request #1032 from unisonweb/mitchellwrosen/fewer-blank-lines
Output fewer blank lines when only whitespace is input
2019-12-08 01:02:15 -05:00
Arya Irani
2976e3c83b
Merge pull request #1034 from unisonweb/mitchellwrosen-fix-selected-terms
Fix selectedTerms
2019-12-08 00:56:48 -05:00
Mitchell Rosen
c6f59e0a12 Delete term/type refactor 2019-12-07 23:28:11 -05:00
Mitchell Rosen
863138d637 Fix selectedTerms 2019-12-07 21:53:12 -05:00
Mitchell Rosen
b8c267859e Output fewer blank lines when only whitespace is input 2019-12-07 20:45:17 -05:00
Mitchell Rosen
8ab5ff31a5 remove some dead parser code 2019-12-06 01:13:13 -05:00
Arya Irani
fdbbc1d4f5 Merge branch 'master' into topic/bug991 2019-12-05 13:46:05 -05:00
Paul Chiusano
6841df00e8
Merge pull request #1019 from unisonweb/fix/625
Switch to (hopefully) more robust debouncing logic for file events
2019-12-05 13:11:58 -05:00
Mitchell Rosen
83af25773b Carve out unison-core package 2019-12-04 18:57:26 -05:00
Paul Chiusano
5c40135c5c Switch to more robust debouncing logic for file events.
We eliminate usage of FSNotify debouncing as it seems to ignore later events within the debounce window and just use it "unbounced".
2019-12-04 14:53:10 -05:00
Noah Haasis
eb1ff619ee Add implementation for Nat.toFloat 2019-12-02 14:48:08 +00:00
Alvaro Carrasco
e021b023f4 Fixed pretty printing of Char when it is part of a pattern 2019-11-28 21:19:25 -07:00
Rúnar
5a08f210fd
Fix term printer for delayed bindings. Fixes #642 (#1007)
* Fix term printer for delayed bindings. Fixes #642
2019-11-27 22:52:02 -05:00
Runar Bjarnason
ee990407c8 Remove traces 2019-11-27 14:13:41 -05:00
Paul Chiusano
17bac527c0
Merge pull request #1002 from unisonweb/topic/shorthash-for-names-command
Use a short hash in the `names` output
2019-11-27 09:31:30 -05:00
Runar Bjarnason
60f0e997d6 Fix #970 2019-11-27 09:30:37 -05:00
Arya Irani
777d87672f cleanup outdated defns in IOSource 2019-11-26 14:44:37 -05:00
Arya Irani
edd410ae09 Use a short hash in the names command (shows the hash and aliases of a given definition) 2019-11-26 14:40:18 -05:00
Runar Bjarnason
91f28709e6 Fix type propagation so that it does something 2019-11-25 15:18:31 -05:00
Paul Chiusano
acf30eda0c
Merge pull request #941 from TomasMikula/CompilerBug
A few improvements to the typechecking result
2019-11-25 09:22:38 -05:00
Arya Irani
0579ed0c91 reset permissions on {Term,Type}Printer.hs 2019-11-22 13:59:02 -05:00
Arya Irani
f1ef35df6a
fixed the input names for the reflog 2019-11-21 15:06:00 -05:00
Paul Chiusano
504e53bbc5 resolve.{term,type} => replace.{term,type} and updated transcripts
Also curiously transcripts with invalid commands would just silently noop. Now they fail the transcript.
2019-11-21 13:01:46 -05:00
Arya Irani
f9a348dbce
Merge branch 'master' into CompilerBug 2019-11-20 17:02:19 -05:00
Arya Irani
46c0f04f5c
Merge pull request #976 from unisonweb/topic/971-git-error
fix #971 — `push` to empty repo fails
2019-11-20 11:34:16 -05:00
Arya Irani
d0db373952 delete test-git.bash (and its Github API fns) in favor of haskell test 2019-11-20 11:21:15 -05:00
Arya Irani
4acc33eb1f delete stray traceShowId 2019-11-20 11:06:48 -05:00
Arya Irani
20f148e379 remove redundant fetch & flesh out scripts/test-git.bash 2019-11-19 11:41:29 -05:00
Paul Chiusano
9a0350a669 Address PR comments 2019-11-19 11:28:23 -05:00
Arya Irani
63333db985 push no longer requires git repo to contain a codebase...
- minimalCodebaseStructure has been further minimized to just `paths/_head`
- `Command.LoadRemoteRootBranch`, `FileCodebase.getRootBranch`, and `Git.pullGitBranch` take a BranchLoadMode argument which dictates whether to fail or silently succeed if the source repo doesn't contain a codebase
- documented an unhelpful crash in createDir
- no-op instead of crash when `copyFromGit` `from` arg doesn't exist
- renamted `writeAllTermsAndTypes` to `syncToDirectory` for readability
- we noticed that relative local git repos aren't resolved correctly (they are resolved relative to the git/codebase staging dir where git commands are executed)
- pushing to bare repos is untested
- added `scripts/test-git.bash` to start collecting git-related tests, but haven't wired it into `.travis.yml`.  It could probably also be a regular EasyTest, since it's no longer calling Github APIs.
2019-11-18 17:31:11 -05:00
Tomas Mikula
a83f7a9a0c Merge branch 'master' into CompilerBug 2019-11-15 00:01:56 +01:00
Tomas Mikula
24b3af8136 Output all type errors instead of just the first one where possible
by using `Result` instead of `M` where possible, because
Applicative instance for `Result` accumulates errors.
2019-11-14 23:49:20 +01:00
Paul Chiusano
00d0fc8c56 type based search uses suffixed input + regenerated transcripts 2019-11-13 13:57:51 -08:00
Paul Chiusano
6fb968cce5 display command uses suffixified output 2019-11-13 13:10:23 -08:00
Paul Chiusano
aa4990848e Merge remote-tracking branch 'origin/master' into topic/suffix-resolve
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
#	parser-typechecker/src/Unison/Codebase/Editor/Output.hs
2019-11-13 13:01:57 -08:00
Paul Chiusano
fdeb175486 ls and todo output suffixified 2019-11-13 12:50:22 -08:00
Arya Irani
bf631d2fcd support remote Unison paths in push/pull (#935)
* wip git url parser & some Git module cleanup

* modern-uri

* trailing whitespace

* dice up the git uri parser for more easily testable implementation

* ipv6 address reference

* add an ipv4 test for `UriParser.parseProtocol`

* remove duplicate test and typo

* add some autocompletion shortcuts for git urls

* clean up gitUrlArg

* partially update `push` and `pull` InputPatterns & docs

* it compiles!

* sometimes even comments can break the build

* missed a couple of `gitIn`s, so command executed in wrong working dir

* delete UriParser.webRepoParser in favor of autocompletes

* bikeshedding the ConfiguredGitUrlIncludesShortBranchHash error message

* cleanup

* simplify push/pull help

* pretty-print reflog entry for `pull` using RemoteRepo.printNamespace
2019-11-12 16:52:48 -05:00
Paul Chiusano
226bc8ba93 Merge remote-tracking branch 'origin/master' into topic/suffix-resolve 2019-11-12 11:30:48 -08:00
Runar Bjarnason
a75f9a2573 Restrict transitive closure to current branch 2019-11-12 14:03:43 -05:00
Paul Chiusano
fa780146fd Merge remote-tracking branch 'origin/master' into topic/suffix-resolve
# Conflicts:
#	parser-typechecker/src/Unison/Codebase/Editor/HandleInput.hs
2019-11-12 08:29:12 -08:00
Paul Chiusano
5bd4d67120 fix printing of recursive definitions 2019-11-12 08:25:06 -08:00
Paul Chiusano
fa5c5f06c0 using suffixified pretty printer, looks great
One remaining loose end is that in recursive definitions are using the suffixified name in the body, for instance:

foo.bar.baz x = baz x + 1

the body `baz` should be fully qualified. Fix might be to unhashComponent before printing, or to create a more interesting PPE on a per declaration basis (it could use the non-suffix name for any references part of the same cycle as the declaration itself)
2019-11-12 08:04:23 -08:00
Runar Bjarnason
e62a1809fe Propagate always succeeds 2019-11-11 21:31:49 -05:00
Paul Chiusano
0d4dc069f5 suffixify0 / suffixify cleanup 2019-11-11 16:48:17 -08:00
Paul Chiusano
d6b903cdca hook up suffix-based resolution to the parser + add test case for it 2019-11-11 16:33:31 -08:00
Rúnar
bd81a46e83
Quality-of-life improvements for type refactoring (#952)
* Transcript :error blocks now.just.expect an error for _any_ of commands, rather than _all_ of them

* Removed confusing and uninformative error message

* io mode transcript

* Deleted transcript
2019-11-11 17:14:08 -05:00
Paul Chiusano
d35688a3b4 remove trace 2019-11-10 12:21:47 -05:00