{"id":15107683,"url":"https://github.com/badetitou/pharo-languageserver","last_synced_at":"2026-03-04T08:12:43.878Z","repository":{"id":41905082,"uuid":"310351954","full_name":"badetitou/Pharo-LanguageServer","owner":"badetitou","description":"A Language Server Protocol implementation in Pharo","archived":false,"fork":false,"pushed_at":"2024-08-08T07:00:58.000Z","size":365,"stargazers_count":30,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"v5","last_synced_at":"2024-09-25T21:40:50.035Z","etag":null,"topics":["language-server-protocol","pharo"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badetitou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-05T16:08:52.000Z","updated_at":"2024-08-08T07:01:02.000Z","dependencies_parsed_at":"2023-10-27T16:39:01.466Z","dependency_job_id":"263761e5-f0c2-42e5-8b5e-082589cc923d","html_url":"https://github.com/badetitou/Pharo-LanguageServer","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badetitou%2FPharo-LanguageServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badetitou%2FPharo-LanguageServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badetitou%2FPharo-LanguageServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badetitou%2FPharo-LanguageServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badetitou","download_url":"https://codeload.github.com/badetitou/Pharo-LanguageServer/tar.gz/refs/heads/v5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219871956,"owners_count":16554471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["language-server-protocol","pharo"],"created_at":"2024-09-25T21:41:01.746Z","updated_at":"2025-10-23T02:31:29.701Z","avatar_url":"https://github.com/badetitou.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pharo Language Server\n\n[![Continuous](https://github.com/badetitou/Pharo-LanguageServer/actions/workflows/continuous.yml/badge.svg)](https://github.com/badetitou/Pharo-LanguageServer/actions/workflows/continuous.yml)\n[![Pharo 12](https://img.shields.io/badge/Pharo-12-%23aac9ff.svg)](https://github.com/pharo-project/pharo)\n[![Moose version](https://img.shields.io/badge/Moose-12-%23aac9ff.svg)](https://github.com/moosetechnology/Moose)\n[![Coverage Status](https://coveralls.io/repos/github/badetitou/Pharo-LanguageServer/badge.svg?branch=v5)](https://coveralls.io/github/badetitou/Pharo-LanguageServer?branch=v5)\n\nI am an implementation of the [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/implementors/servers/) for the [Pharo programming language](https://pharo.org/).\nMy main goal is to provide a unique interface for several generic IDE to manipulate a Pharo environment.\n\nI am used by the following client extensions:\n\n- [vscode-pharo](https://github.com/badetitou/vscode-pharo)\n- [eclipse-pharo](https://github.com/badetitou/eclipse-pharo) *Really only a POC. But you might be interested to have a look at it.*\n\n\u003e If you experiement with other IDE, do not hesitate to contact us in an Issue :)\n\n## Features\n\nAs a language server, I accept two Pharo/SmallTalk formats:\n\n- *.st* for smalltalk script (as you can see in a playground).\n- *.class.st* for tonel files.\n\nMost of the features are available for both formats.\n\n- Code highlighting\n- Hover\n- Auto-completion\n\n### Script specific features\n\n- Code formatting\n\n### Tonel specific features\n\n- Saving the file create/update the corresponding class in the image\n\n## Installation\n\nExecute this code in any Pharo10/11 Image\n\n```Smalltalk\nMetacello new\n  githubUser: 'badetitou' project: 'Pharo-LanguageServer' commitish: 'v5' path: 'src';\n  baseline: 'PharoLanguageServer';\n  load\n```\n\n\u003e Or download a pre-existing image in the [release](https://github.com/badetitou/Pharo-LanguageServer/releases) section.\n\n## Usage\n\nOnce you have an image with the project installed, you can run it using\n\n```sh\n/path/to/vm/pharo [--headless] /path/to/pls.image st /path/to/run-server.st\n```\n\nIn above example, we used an another file named `run-server.st` that is used to define the Pharo script that run the code.\nYou can find the definition of this file for the [vscode extension](https://github.com/badetitou/vscode-pharo/blob/main/res/run-server.st) and for the [eclipse extension](https://github.com/badetitou/eclipse-pharo/blob/main/res/run-server.st).\n\nBasically the file looks like this\n\n```st\n| server |\n\"Stop and reset potential existing instance in the image you start\"\nPLSServer reset.\n\"Create a new Language Server\"\nserver := PLSServer new.\n\"Start the new language server\"\nserver start.\n```\n\nBy default, the server will start a socket and give you the port of the opened socket in the standard output.\nIf you want to use standard input/ouput to deal with communication, you can use the folowing option:\n\n```st\nserver := PLSServer new\n  withStdIO: true;\n  yourself\n```\n\n\u003e This option is less tested and might create bug with Pharo writing to the standard output for other reason\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadetitou%2Fpharo-languageserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadetitou%2Fpharo-languageserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadetitou%2Fpharo-languageserver/lists"}