Comments (4)
Not Windows, but seemingly similar issue for a non-root install of janet on a linux box:
from janet-lsp.
@sogaiu I just published a pre-release version of Janet++ that bundles Janet LSP as a .jimage rather than a compiled executable. This means that when the Language Server starts up, it will be running on the user's locally-installed copy of Janet (assuming janet
is on the user's path, which it ought to be). In my preliminary testing, this seems to fix the module import issue, since the Language Server is running as the user's own install which means it should discover modules the same way any other invocation of janet
on their system would.
Would you like to test this on your non-root Void Linux install? You can do so by switching to the Pre-release version on the extension page in VS Code:
![image](https://private-user-images.githubusercontent.com/55862180/278434058-cf81e223-938a-4ce8-8394-4194cec7c622.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTY0NTIwNDQsIm5iZiI6MTcxNjQ1MTc0NCwicGF0aCI6Ii81NTg2MjE4MC8yNzg0MzQwNTgtY2Y4MWUyMjMtOTM4YS00Y2U4LTgzOTQtNDE5NGNlYzdjNjIyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTIzVDA4MDkwNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk0NDQzYWFmOGIwYmRkNDJhY2MyMzVmMGVkODRmYzBjYTFkZDQwMzY0NDc4N2U2ZjU2NDg1N2NhYTZkMTMxY2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WCLPHeqKj_w6LIryGzl1t12QSZ1tpSZIpAjm6t4X0OY)
from janet-lsp.
@CFiggers Thanks for the heads up.
I gave it a try and it seems to be working better 👍
from janet-lsp.
Fixed in Janet++ by running the LSP from a .jimage rather than a compiled executable. May need to revisit in the future if Janet LSP will be a stand-alone CLI tool in addition to editor integration.
from janet-lsp.
Related Issues (10)
- Make Janet LSP evaluation error tolerant HOT 8
- Buggy behavior when `jpm_tree` exists HOT 1
- Add debug console functionality to Janet LSP HOT 1
- Bug: In Janet++, backspacing over a top-level form crashes the LSP
- startup.janet stopped working HOT 3
- Problem communicating with helix HOT 1
- Implement Signature Help HOT 1
- Allow use of custom JANET_PATH/JANET_TREE etc. HOT 10
- Better Sandboxing of User Code HOT 4
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 janet-lsp.