A program for a language server based on the test driven development ocean-dsl.
Project description
exampleDSL for reference
Install ANTlR4 for development
- https://www.antlr.org/download.html
- https://www.antlr3.org/works/
- move to /usr/local/lib
- update CLASSPATH (source.sh)
- require java versions up to 55.0 (JDK Version Java 11 Bytecode Version 55.0)
- sudo apt-get install openjdk-11-jre openjdk-11-jdk openjdk-11-demo openjdk-11-doc openjdk-11-jre-headless openjdk-11-source
- sudo update-alternatives --config javac
Add pFUnit4
- sudo apt-get install cmake
- sudo apt install gfortran
- sudo apt install m4
Example installation of pFUnit and pFUnit_demos — Software testing documentation
- https://coderefinery.github.io/testing/code/fortran/build_pFUnit/#on-own-computer
- export FC=/usr/bin/gfortran
- export PFUNIT_DIR=/usr/local/PFUNIT-4.7
Optional: check python packages
- update package manager tools
python -m pip install --upgrade pip setuptools wheel
- check if python package
virtualenvis installed if Python < 3.3 is used else a subset of it has been integrated into the standard library undervenvpython -m pip show virtualenv- if not install package
virtualenvinto global system environmentpython -m pip install virtualenv
Install Server Dependencies
- generate virtual environment in directory
.venvusing the standard libraryvenvpython -m venv .venv- alternative use
virtualenv, see optional python packages
- activate virtual environment
.venvsource .venv/bin/activate
- install
antlr4-python3-runtime,Jinja2,pygls,pytest,pylintandautopep8package into virtual environment.venvpython -m pip install antlr4-python3-runtime Jinja2 pygls pytest pylint autopep8
Optional: update npm and node
- check
npmversionnpm --version
- install
npmandnodeif necessarysudo apt-get install npm nodejs
- install the Node manager via
npmsudo npm install -g n - install latest
nodeversionsudo n latest
- install latest
npmversion globally (-gor--global)sudo npm install -g npm@latest
- Install the dependencies to the global mode (
-gor--global)sudo npm update -g
Install Client Dependencies
- Goto extension directory
python-oceandsls/tdd-dsl - Install the dependencies to the local node_modules
npm install
Run Example using VSCode
- Open
python-oceandsls/tdd-dslin VSCode - Trust author files in
python-oceandsls/tdd-dsl - Goto Run and Debug
Ctrl/Cmd+Shift+D
- Select
Server + Client - Start Debugging via
F5or GUI - Open a
*.tddfile - If server is working correctly notification shows
Text Document Did Open
Troubleshooting
-
If VS Code doesn`t automatically locate the interpreter of the virtual environment. Set it manually
- Open Command prompt
Ctrl/Cmd+Shift+P- Run select interpreter command
Python: Select Interpreter
- Run select interpreter command
- Alternative create
.vscode/settings.jsonfile inpython-oceandsls/tdd-dsldirectory and setpython.defaultInterpreterPathto point to the virtual environment-
settings.json
{ // set Python Interpreter relative to workspaceFolder to virtual environment '.venv' "python.defaultInterpreterPath": "${workspaceFolder}/../.venv/bin/python", // alternative //"python.defaultInterpreterPath": "../.venv", // deprecated // "python.pythonPath": "${workspaceFolder}/../.venv/bin/python", // Pylance VSCode code analysis and auto-completion using Python 3.10 "python.analysis.extraPaths": [ "{workspaceFolder}/../.venv/lib/python3.10/site-packages/:${workspaceFolder}/../antlrLib/" ], // Object with environment variables that will be added to the VS Code process to be used by the terminal on OS X "terminal.integrated.env.osx": {"PYTHONPATH": "${workspaceFolder}/.."}, // Object with environment variables that will be added to the VS Code process to be used by the terminal on Linux "terminal.integrated.env.linux": {"PYTHONPATH": "${workspaceFolder}/.."}, // Object with environment variables that will be added to the VS Code process to be used by the terminal on Windows "terminal.integrated.env.windows": {"PYTHONPATH": "${workspaceFolder}/.."}, }
-
- Open Command prompt
-
If npm version conflicts exists change npm to the required version
- E.g. reset npm version to 9.2.0
sudo npm install -g npm@9.2.0
- E.g. reset npm version to 9.2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TDD-Language-0.80.0.tar.gz
(84.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
TDD_Language-0.80.0-py3-none-any.whl
(108.3 kB
view details)
File details
Details for the file TDD-Language-0.80.0.tar.gz.
File metadata
- Download URL: TDD-Language-0.80.0.tar.gz
- Upload date:
- Size: 84.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dec57461f166518dc0b0a644dcdc6c9035e90ca106be2ae87aafbe284dae5302
|
|
| MD5 |
e72361623eae5d140365bc36057f6cca
|
|
| BLAKE2b-256 |
8afab8fc379091d196d9db2241fa3ec4ae77cbba4775247f9b7ad7ea63cd3e89
|
File details
Details for the file TDD_Language-0.80.0-py3-none-any.whl.
File metadata
- Download URL: TDD_Language-0.80.0-py3-none-any.whl
- Upload date:
- Size: 108.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b695d18bf0f641def862531e34656e5fd69459deeb8e8b49556887508496fa7
|
|
| MD5 |
39e9f66737e8ef0bc70f04066593b461
|
|
| BLAKE2b-256 |
8ade313aeb78f933952081c33a39dc7b5b53e3075d786aecefc64a3964cf6d5b
|