mirror of
https://github.com/enso-org/enso.git
synced 2024-12-29 04:42:46 +03:00
Update CONTRIBUTING (#3189)
This commit is contained in:
parent
10dac4fb21
commit
7467efda59
@ -626,8 +626,9 @@ have appeared in the `built-distribution` directory.
|
|||||||
|
|
||||||
The IDE will connect to the running project manager to look up the project and
|
The IDE will connect to the running project manager to look up the project and
|
||||||
start the language server. The required version of the language server is
|
start the language server. The required version of the language server is
|
||||||
specified in the `enso-version` field of the `project.yaml` project description
|
specified in the `edition` field of the `package.yaml` project description. Enso
|
||||||
(Enso projects are located in the `~/enso` directory).
|
projects are located in the `~/enso` directory on Unix and `%userprofile%\enso`
|
||||||
|
on Windows systems by default.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/enso/projects/Unnamed/package.yaml
|
cat ~/enso/projects/Unnamed/package.yaml
|
||||||
@ -635,22 +636,24 @@ cat ~/enso/projects/Unnamed/package.yaml
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: Unnamed
|
name: Unnamed
|
||||||
|
namespace: local
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
enso-version: 0.0.0-SNAPSHOT
|
|
||||||
license: ""
|
license: ""
|
||||||
authors: []
|
authors: []
|
||||||
maintainers: []
|
maintainers: []
|
||||||
|
edition: "2021.20-SNAPSHOT"
|
||||||
|
prefer-local-libraries: true
|
||||||
```
|
```
|
||||||
|
|
||||||
We need to set `enso-version` to a value that will represent the development
|
We need to set `edition` to a value that will represent the development version.
|
||||||
version. It should be different from any Enso versions that have already been
|
It should be different from any Enso versions that have already been released.
|
||||||
released. In this case, we chose the `0.0.0-SNAPSHOT`. The project manager will
|
In this case, we chose the `2021.20-SNAPSHOT` (the current development edition).
|
||||||
look for the appropriate subdirectory in the _engines_ directory of the
|
The project manager will look for the appropriate subdirectory in the _engines_
|
||||||
distribution folder. Distribution paths are printed when you run project manager
|
directory of the distribution folder. Distribution paths are printed when you
|
||||||
with `-v` verbose logging.
|
run project manager with `-v` verbose logging.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ./built-distribution/enso-project-manager-0.2.12-SNAPSHOT-linux-amd64/enso/bin/project-manager -v
|
$ ./built-distribution/enso-project-manager-0.2.32-SNAPSHOT-linux-amd64/enso/bin/project-manager -v
|
||||||
[info] [2021-06-16T11:49:33.639Z] [org.enso.projectmanager.boot.ProjectManager$] Starting Project Manager...
|
[info] [2021-06-16T11:49:33.639Z] [org.enso.projectmanager.boot.ProjectManager$] Starting Project Manager...
|
||||||
[debug] [2021-06-16T11:49:33.639Z] [org.enso.runtimeversionmanager.distribution.DistributionManager] Detected paths: DistributionPaths(
|
[debug] [2021-06-16T11:49:33.639Z] [org.enso.runtimeversionmanager.distribution.DistributionManager] Detected paths: DistributionPaths(
|
||||||
dataRoot = /home/dbv/.local/share/enso,
|
dataRoot = /home/dbv/.local/share/enso,
|
||||||
@ -663,7 +666,7 @@ $ ./built-distribution/enso-project-manager-0.2.12-SNAPSHOT-linux-amd64/enso/bin
|
|||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
On Linux it looks for the `~/.local/share/enso/dist/0.0.0-SNAPSHOT/` directory.
|
On Linux it looks for the `~/.local/share/enso/dist/0.2.32-SNAPSHOT/` directory.
|
||||||
|
|
||||||
We can build an engine distribution using the `buildEngineDistribution` command
|
We can build an engine distribution using the `buildEngineDistribution` command
|
||||||
in SBT.
|
in SBT.
|
||||||
@ -680,19 +683,19 @@ sbt buildEngineDistribution
|
|||||||
sbt.bat buildEngineDistribution
|
sbt.bat buildEngineDistribution
|
||||||
```
|
```
|
||||||
|
|
||||||
And copy the result to the `0.0.0-SNAPSHOT` engines directory of the
|
And copy the result to the `0.2.32-SNAPSHOT` engines directory of the
|
||||||
distribution folder.
|
distribution folder.
|
||||||
|
|
||||||
##### Bash
|
##### Bash
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cp -r built-distribution/enso-engine-0.2.12-SNAPSHOT-linux-amd64/enso-0.2.12-SNAPSHOT ~/.local/share/enso/dist/0.0.0-SNAPSHOT
|
cp -r built-distribution/enso-engine-0.2.32-SNAPSHOT-linux-amd64/enso-0.2.32-SNAPSHOT ~/.local/share/enso/dist/0.2.32-SNAPSHOT
|
||||||
```
|
```
|
||||||
|
|
||||||
##### PowerShell
|
##### PowerShell
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
cp -r built-distribution/enso-engine-0.2.12-SNAPSHOT-linux-amd64/enso-0.2.12-SNAPSHOT ~/.local/share/enso/dist/0.0.0-SNAPSHOT
|
cp -r built-distribution/enso-engine-0.2.32-SNAPSHOT-linux-amd64/enso-0.2.32-SNAPSHOT ~/.local/share/enso/dist/0.2.32-SNAPSHOT
|
||||||
```
|
```
|
||||||
|
|
||||||
Now, when the project manager is running and the engines directory contains the
|
Now, when the project manager is running and the engines directory contains the
|
||||||
@ -706,7 +709,7 @@ version of the language server.
|
|||||||
2. Copy or symlink the development version of the engine created with SBT's
|
2. Copy or symlink the development version of the engine created with SBT's
|
||||||
`buildEnginedistribution` command to the engines directory of the Enso
|
`buildEnginedistribution` command to the engines directory of the Enso
|
||||||
distribution folder.
|
distribution folder.
|
||||||
3. Set the `enso-version` field of the `project.yaml` project definition to the
|
3. Set the `edition` field of the `package.yaml` project definition to the
|
||||||
version that you created in the previous step.
|
version that you created in the previous step.
|
||||||
4. Run the IDE with `--no-backend` flag.
|
4. Run the IDE with `--no-backend` flag.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user