forked from scalacenter/scastie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initlial commmit of metals server * fix tests, add tests and refactor them * metals add documentation * metals add css, status indicator and refactor the code * add deployment script for metals runner * add configuration files * update CONTRIBUTING.md * fix sbtmatrix scala version * fix cache, blocking and mobile ui
- Loading branch information
Showing
80 changed files
with
2,482 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,4 @@ metals.sbt | |
.bloop | ||
.metals | ||
.vscode | ||
project/project | ||
dist | ||
client/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,43 @@ | ||
version = 1.1.0 | ||
version = 3.5.8 | ||
|
||
style = default | ||
maxColumn = 140 | ||
maxColumn = 120 | ||
|
||
runner.dialect = scala213 | ||
fileOverride { | ||
"glob:**/metals-runner/src/**" { | ||
runner.dialect = scala3 | ||
} | ||
} | ||
|
||
docstrings = JavaDoc | ||
docstrings.blankFirstLine = true | ||
assumeStandardLibraryStripMargin = true | ||
project.git = true | ||
danglingParentheses = true | ||
lineEndings = unix | ||
encoding = UTF-8 | ||
importSelectors = singleLine | ||
project.excludeFilters = [ | ||
instrumentation/src/test/resources | ||
storage/src/test/resources | ||
demo/ | ||
] | ||
] | ||
align.preset = more | ||
|
||
rewrite.rules = [Imports] | ||
rewrite.imports.sort = original | ||
rewrite.imports.groups = [ | ||
["java\\..*", "scala\\..*"], | ||
] | ||
|
||
newlines.beforeMultiline = fold | ||
newlines.topLevelStatements = [before, after] | ||
newlines.topLevelStatementsMinBreaks = 2 | ||
newlines.implicitParamListModifierForce = [before] | ||
|
||
continuationIndent.defnSite = 2 | ||
continuationIndent.extendSite = 2 | ||
|
||
rewrite.imports.expand = false | ||
rewrite.trailingCommas.style = "never" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ You can install a pre-commit hook with `bin/hooks.sh` | |
├── runtime-scala | methods exposed inside scastie | ||
├── sbt-runner | remote actor communicating with sbt instance over I/O streams | ||
├── sbt-scastie | sbt plugin to report errors and console output with the `sbt-api` model | ||
├── metals-runner | server responsible for managing metals instances to provide interactive features | ||
├── server | web server | ||
└── utils | read/writte files | ||
``` | ||
|
@@ -91,22 +92,39 @@ You can install a pre-commit hook with `bin/hooks.sh` | |
|
||
|
||
``` | ||
Scala.js Client run/save/format +-------------------------------------------+ | ||
+-----------------+ AutowireApi +---------------------+ +-------------------------------------------+| | ||
| ScastieBackend | (HTTP) | +------------+ | akka+remote +-------------------------------------------+|| | ||
| +--------+ +-----------------> | |LoadBalancer| <------------------+ | SbtActor Sbt(Proccess) ||| | ||
| | | | | +------------+ | | | +----------+ +-----------+ ||| | ||
| | | | | | +---> | | <-----> |sbt|scastie| ||+ | ||
| | | | | | | +----+-----+ I/O Stream +-----------+ |+ | ||
| | | | | | +-------------------------------------------+ | ||
| | | | | | | ||
| | | | | | | ||
| | | | | | | ||
| | | | | SnippetContainer(DB)| | ||
| | | | | | | ||
| | | | <-----------------+ oauth | | ||
| +--------+ | SnippetProgress | static ressources | | ||
+-----------------+ (sse/websocket) +---------------------+ | ||
Scala.js Client run/save/format +-------------------------------------------+ | ||
+---------------------+ AutowireApi +---------------------+ +-------------------------------------------+| | ||
| ScastieBackend | (HTTP) | +------------+ | akka+remote +-------------------------------------------+|| | ||
| +--------+ +-----------------> | |LoadBalancer| <------------------+ | SbtActor Sbt(Proccess) ||| | ||
| | | | | +------------+ | | | +----------+ +-----------+ ||| | ||
| | | | | | +---> | | <-----> |sbt|scastie| ||+ | ||
| | | | | | | +----------+ I/O Stream +-----------+ ++ | ||
| | | | | | +-------------------------------------------+ | ||
| | | | | | | ||
| | | | | | | ||
| | | | | | | ||
| | | | | SnippetContainer(DB)| | ||
| | | | | | | ||
| | | | <-----------------+ oauth | | ||
| +--------+ | SnippetProgress | static ressources | | ||
| | (sse/websocket) +---------------------+ | ||
| InteractiveProvider | | ||
| +--------+ | +---------------------+ | ||
| | | | | | | ||
| | | | | MetalsRunnerServer | | ||
| | +-------------------> | | | ||
| | | | (HTTP request) | | | ||
| +--------+ | | | | ||
| | | | | ||
+---------------------+ +---------------------+ | ||
Editor: http://asciiflow.com/ | ||
|
@@ -180,6 +198,7 @@ ssh [email protected] | |
./sbt.sh | ||
exit | ||
./server.sh | ||
./metalsRunner.sh | ||
``` | ||
|
||
# Running with docker locally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ import { scastie } from '@linkOutputDir/main.js' | |
import '@resources/sass/app-main.scss' | ||
|
||
import * as Sentry from "@sentry/browser"; | ||
import { BrowserTracing } from "@sentry/tracing"; | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/6778768", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.