Skip to content
Permalink
Browse files

v0.115.3

  • Loading branch information...
vladdu committed Jun 4, 2018
2 parents 76c1a25 + 26cceaa commit 763a7fe47213f374b59862fd5a17d5dcc2811c7b
Showing with 70 additions and 1,510 deletions.
  1. +0 −9 API.md
  2. +0 −14 Jenkinsfile
  3. +3 −7 README.md
  4. +5 −4 build
  5. +2 −0 build_utils.sh
  6. +50 −0 common/apps/erlide_tools/src/erlide_eunit_listener.erl
  7. +1 −0 eclipse/build
  8. +2 −1 eclipse/org.erlide.kernel.common/META-INF/MANIFEST.MF
  9. +2 −1 eclipse/org.erlide.kernel.debugger/META-INF/MANIFEST.MF
  10. +1 −1 eclipse/org.erlide.kernel.feature/feature.xml
  11. +1 −1 eclipse/org.erlide.kernel.feature/pom.xml
  12. +2 −1 eclipse/org.erlide.kernel.ide/META-INF/MANIFEST.MF
  13. 0 ide/apps/{erlide_ide → erlide_ide_core}/src/erlide_cache.erl
  14. +1 −0 rebar.lock
  15. BIN rebar3
  16. +0 −18 server/apps/erlide_server/.project
  17. +0 −3 server/apps/erlide_server/.settings/org.eclipse.core.resources.prefs
  18. +0 −7 server/apps/erlide_server/.settings/org.erlide.core.prefs
  19. +0 −3 server/apps/erlide_server/.settings/org.erlide.model.prefs
  20. 0 server/apps/erlide_server/include/.keep
  21. 0 server/apps/erlide_server/priv/.keep
  22. +0 −157 server/apps/erlide_server/src/cancellable_worker.erl
  23. +0 −113 server/apps/erlide_server/src/erlide_db.erl
  24. +0 −45 server/apps/erlide_server/src/erlide_db.yaml
  25. +0 −94 server/apps/erlide_server/src/erlide_doc_server.erl
  26. +0 −13 server/apps/erlide_server/src/erlide_edoc.erl
  27. +0 −12 server/apps/erlide_server/src/erlide_edoc_doc_provider.erl
  28. +0 −198 server/apps/erlide_server/src/erlide_lsp_proxy.erl
  29. +0 −277 server/apps/erlide_server/src/erlide_lsp_server.erl
  30. +0 −17 server/apps/erlide_server/src/erlide_lsp_utils.erl
  31. +0 −57 server/apps/erlide_server/src/erlide_module.erl
  32. +0 −11 server/apps/erlide_server/src/erlide_otp_xml_doc_provider.erl
  33. +0 −10 server/apps/erlide_server/src/erlide_server.app.src
  34. +0 −37 server/apps/erlide_server/src/erlide_server.erl
  35. +0 −19 server/apps/erlide_server/src/erlide_server_app.erl
  36. +0 −253 server/apps/erlide_server/src/erlide_server_core.erl
  37. +0 −24 server/apps/erlide_server/src/erlide_server_sup.erl
  38. 0 server/apps/erlide_server/test/.keep
  39. +0 −11 server/build
  40. +0 −80 server/rebar.config
  41. +0 −12 server/rebar.lock
9 API.md

This file was deleted.

Oops, something went wrong.
@@ -47,15 +47,6 @@ pipeline {
}
}
}

stage('Server') {
steps{
script {
buildServer()
publishServer()
}
}
}
}
//post {
//always {
@@ -122,11 +113,6 @@ def buildEclipse() {
step([$class: 'ArtifactArchiver', artifacts: "eclipse/org.erlide.kernel.site-*.zip", fingerprint: true])
}

def buildServer() {
sh "cd server && ./build escriptize && cd .."
step([$class: 'ArtifactArchiver', artifacts: "server/_build/default/bin/erlide_server", fingerprint: true])
}

@NonCPS
def getVersion(String archive) {
def m = (archive =~ /org.erlide.kernel[-_]([0-9]+\.[0-9]+\.[0-9]+)(\.(.+))?.zip/)
@@ -1,6 +1,5 @@
Generic Erlang engine for source code indexing and manipulation, that can be used by code editors and IDES to provide advanced functionality.
Generic Erlang engine for source code indexing and manipulation, that can be used by code editors and IDES to provide advanced functionality. This functionality will be accessible via VSCode's [Language Server Protocol](https://github.com/Microsoft/language-server-protocol) and [Debug Protocol](https://code.visualstudio.com/docs/extensionAPI/api-debugging), possibly with some extensions. The `server` application is the endpoint.

Different IDEs implement clients that use this kernel to do the real work. Currently, only an Eclipse client is implemented (see the [erlide_eclipse](https://github.com/erlang/erlide_eclipse) repository).

# Important note

@@ -24,10 +23,7 @@ The erlide kernel will implement the core functionality of an IDE:
- launch the projects' code and interact with it (debug, trace, profile)
- launch, examine and interact with Erlang nodes

The API will be accessible via the network, using serialized Erlang terms, but in the future a REST API could be useful (for clients that don't talk Erlang). [Detailed API description](API.md). Parts of the API will be asynchronous, so that progress information and partial results can be returned to the client when available; these parts will be marked as such.

The API is meant to be generic i.e. without Eclipse-related leaky abstractions, but we might borrow some of the concepts (like for example, the workspace as a container for several projects).

## Notes

* The OTP version specified in the rebar.config files for each subproject MUST be used for compilation.
* The OTP version specified in the rebar.config files for each subproject MUST be used for compilation. The `build` script installs those using `kerl` in `~/erlide_tools` (in the future the location should be configurable).
* As transport for the communication protocols we will implement TCP and stdio, but others are possible.
9 build
@@ -37,8 +37,11 @@ main() {
"test")
cmds="do eunit -c -v, cover -v"
;;
"verify")
cmds="do xref, dialyzer"
"xref")
cmds="do xref"
;;
"dialyzer")
cmds="do dialyzer"
;;
esac

@@ -49,8 +52,6 @@ main() {
./build $cmds
cd ../ide
./build $cmds
cd ../server
./build $cmds
if [ "$arg" == "compile" ] ; then
./build escriptize
fi
@@ -12,6 +12,8 @@ build_project() {

echo ""
echo "Building --$PRJ-- with OTP ${OTP_VSNS[$VSN]}..."
rm -rf ebin
rm -rf apps/*/ebin
~/erlide_tools/${OTP_VSNS[$VSN]}/bin/escript $REBAR "$@"
}

@@ -0,0 +1,50 @@
-module(erlide_eunit_listener).

-behaviour(eunit_listener).

-export([start/1]).

-export([init/1, handle_begin/3, handle_end/3, handle_cancel/3,
terminate/2]).

start(Options) ->
eunit_listener:start(?MODULE, Options).

init(Options) ->
erlide_jrpc:event(eunit, {init, Options}),
ok.

terminate({ok, Data}, _St) ->
erlide_jrpc:event(eunit, {terminated, Data}),
ok;
terminate({error, Reason}, _St) ->
erlide_jrpc:event(eunit, {crashed, Reason}),
sync_end(error).

sync_end(Result) ->
receive
{stop, Reference, ReplyTo} ->
ReplyTo ! {result, Reference, Result},
ok
end.

handle_begin(group, Data, _St) ->
erlide_jrpc:event(eunit, {begin_group, Data}),
ok;
handle_begin(test, Data, _St) ->
erlide_jrpc:event(eunit, {begin_test, Data}),
ok.

handle_end(group, Data, _St) ->
erlide_jrpc:event(eunit, {end_group, Data}),
ok;
handle_end(test, Data, _St) ->
erlide_jrpc:event(eunit, {end_test, Data}),
ok.

handle_cancel(group, Data, _St) ->
erlide_jrpc:event(eunit, {cancel_group, Data}),
ok;
handle_cancel(test, Data, _St) ->
erlide_jrpc:event(eunit, {cancel_test, Data}),
ok.
@@ -32,6 +32,7 @@ VSN=`get_feature_vsn org.erlide.kernel.feature`
chmod u+x mvnw
./mvnw -B -U tycho-versions:set-version -DnewVersion=${VSN}.qualifier -Dartifacts=org.erlide.kernel.feature,org.erlide.kernel.debugger,org.erlide.kernel.ide,org.erlide.kernel.site,org.erlide.kernel.common
# there will be an error if versions don't match
git commit -am 'foo'
./mvnw -B -U clean verify

mv org.erlide.kernel.site/target/org.erlide.kernel.site-*.zip .
@@ -2,6 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Erlide Kernel
Bundle-SymbolicName: org.erlide.kernel.common;singleton:=true
Bundle-Version: 0.115.1.qualifier
Bundle-Version: 0.115.3.qualifier
Bundle-Vendor: erlide.org project
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-BundleShape: dir
@@ -2,6 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Erlide Kernel
Bundle-SymbolicName: org.erlide.kernel.debugger;singleton:=true
Bundle-Version: 0.115.1.qualifier
Bundle-Version: 0.115.3.qualifier
Bundle-Vendor: erlide.org project
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-BundleShape: dir
@@ -2,7 +2,7 @@
<feature
id="org.erlide.kernel.feature"
label="Erlang IDE kernel"
version="0.115.1.qualifier"
version="0.115.3.qualifier"
provider-name="%vendorName"
image="erlang-64.gif">
<install-handler/>
@@ -12,7 +12,7 @@
</parent>

<artifactId>org.erlide.kernel.feature</artifactId>
<version>0.115.1-SNAPSHOT</version>
<version>0.115.2-SNAPSHOT</version>
<packaging>eclipse-feature</packaging>

</project>
@@ -2,6 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Erlide Kernel
Bundle-SymbolicName: org.erlide.kernel.ide;singleton:=true
Bundle-Version: 0.115.1.qualifier
Bundle-Version: 0.115.3.qualifier
Bundle-Vendor: erlide.org project
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Eclipse-BundleShape: dir
@@ -0,0 +1 @@
[].
BIN -103 KB (87%) rebar3
Binary file not shown.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 763a7fe

Please sign in to comment.
You can’t perform that action at this time.