Giter Site home page Giter Site logo

Comments (8)

objeck avatar objeck commented on September 28, 2024

Thanks, I will look into this this week. I suspect the issue has to do with the order of calls.

from objeck-lsp.

objeck avatar objeck commented on September 28, 2024

What version should I test against? 12.0_alpha_2?

from objeck-lsp.

 avatar commented on September 28, 2024

You should test with the nightly version:

https://github.com/orbitalquark/textadept/releases/download/textadept_nightly/textadept_nightly.win.zip

https://github.com/orbitalquark/textadept/releases/download/textadept_nightly/textadept_nightly.modules.zip

from objeck-lsp.

objeck avatar objeck commented on September 28, 2024

Thanks, I need help setting the the LSP client for TextAdept. Can you ping me on Discord?

from objeck-lsp.

 avatar commented on September 28, 2024

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.

objeck avatar objeck commented on September 28, 2024

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.

objeck avatar objeck commented on September 28, 2024

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.

Thank you for the detailed instructions, very helpful! See above.

from objeck-lsp.

 avatar commented on September 28, 2024

Thanks to objeck/objeck-lang#240 we no longer have to set the OBJECK_STDIO environment variable.

from objeck-lsp.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.