Comments (8)
Thanks, I will look into this this week. I suspect the issue has to do with the order of calls.
from objeck-lsp.
What version should I test against? 12.0_alpha_2?
from objeck-lsp.
You should test with the nightly version:
from objeck-lsp.
Thanks, I need help setting the the LSP client for TextAdept. Can you ping me on Discord?
from objeck-lsp.
Thanks, I need help setting the the LSP client for TextAdept. Can you ping me on Discord?
I afraid I can't. We live in different parts of the world. It's day for you but it's midnight here for me. We can't talk in real time. You could setup TextAdept yourself. It's easy. First, download both of the file above and extract them, you will have two directories. Go to textadept
and run textadept.exe
and then close it. Rename the directory textadept-modules
to just modules
and move it into %userprofile%/.textadept
directory. In %userprofile%/.textadept
create a directory named lexers
then download objeck.lua from https://github.com/iqskpduswupkcjqg/textadept-objeck-lexer/blob/main/objeck.lua and put it there. Finally open textadept.exe
again, choose Edit -> Preferences and init.lua
will be opened. Paste these lines to init.lua (remember to modify the paths to objeck-lsp):
lexer.detect_extensions.obs='objeck'
local lsp = require('lsp')
require('lsp').log_rpc = true
lsp.server_commands.objeck = 'obr C:/objeck-lsp/objeck_lsp.obe C:/objeck-lsp/objk_apis.json stdio'
Close init.lua
then quit TextAdept. The next time you launch it, everything is already setup and ready. Just open a .obs source file, the lsp server will be auto started. About how to debug the lsp server from TextAdept, see orbitalquark/textadept#388 (comment) (I already added everything needed to init.lua
for you). After that, you should talk with the TextAdept developer on orbitalquark/textadept#388.
from objeck-lsp.
Successfully session with the Textadapt night build (downloaded on 4/2/2023) and the latest LSP/Objeck code under MSYS2-UCRT64. I made tweaks to support the Zeus IDE that benefited Textadept.
At a glance, Textadept, and the Zeus IDE do not support delta document updates and thus resend the entire document when changes are made. I added LSP support for full document updates a couple of days ago.
Steps for Text Adapt:
- Configure TextAdept as described above
- Launch the MSYS2-UCRT64 shell
- Set environment variables
export OBJECK_STDIO=binary
export PATH=$PATH:/c/objeck-lang/bin
export OBJECK_LIB_PATH=$PATH:/c/objeck-lang/lib
- Start TextAdapt under the MSYS2-UCRT64 shell
"c:\textadept\textadept.exe"
- In TextAdapt, "Tools -> Language Server, Start Server..."
- Open a file ending in
.obs
The steps above should work if global environment variables are set in a non-MSYS environment. However, I only use MSYS2 in my Windows VMs. So far, no errors have been reported, or unsupported messages have been detected.
from objeck-lsp.
Thanks, I need help setting the the LSP client for TextAdept. Can you ping me on Discord?
I afraid I can't. We live in different parts of the world. It's day for you but it's midnight here for me. We can't talk in real time. You could setup TextAdept yourself. It's easy. First, download both of the file above and extract them, you will have two directories. Go to
textadept
and runtextadept.exe
and then close it. Rename the directorytextadept-modules
to justmodules
and move it into%userprofile%/.textadept
directory. In%userprofile%/.textadept
create a directory namedlexers
then download objeck.lua from https://github.com/iqskpduswupkcjqg/textadept-objeck-lexer/blob/main/objeck.lua and put it there. Finally opentextadept.exe
again, choose Edit -> Preferences andinit.lua
will be opened. Paste these lines to init.lua (remember to modify the paths to objeck-lsp):lexer.detect_extensions.obs='objeck' local lsp = require('lsp') require('lsp').log_rpc = true lsp.server_commands.objeck = 'obr C:/objeck-lsp/objeck_lsp.obe C:/objeck-lsp/objk_apis.json stdio'
Close
init.lua
then quit TextAdept. The next time you launch it, everything is already setup and ready. Just open a .obs source file, the lsp server will be auto started. About how to debug the lsp server from TextAdept, see orbitalquark/textadept#388 (comment) (I already added everything needed toinit.lua
for you). After that, you should talk with the TextAdept developer on orbitalquark/textadept#388.
Thank you for the detailed instructions, very helpful! See above.
from objeck-lsp.
Thanks to objeck/objeck-lang#240 we no longer have to set the OBJECK_STDIO
environment variable.
from objeck-lsp.
Related Issues (14)
- Code symbols HOT 1
- Test with Lite XL HOT 5
- Add wrapper for Linux HOT 1
- Objeck-lsp failed to work with RJ Texted HOT 9
- Is objeck-lsp working fine with Vim? HOT 2
- Add syntax highlighting for Vim
- Do you still test objeck-lsp on Emacs? HOT 3
- What happen if I don't specify the port to 6013? HOT 9
- Please remove the now obsolete `objeck_lsp.bat` HOT 1
- Pack `objeck-lsp` using `obb` HOT 3
- Support stdio HOT 4
- [Tutorial] Setup Kate to use objeck-lsp HOT 2
- Objeck-lsp failed to work with Zeus IDE HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objeck-lsp.