Comments (9)
others are reporting that the pscIdePort option is being ignored as well
from purescript-language-server.
I think maybe here?
from purescript-language-server.
I agree this setting shouldn't be ignored, but if before launching the plugin you echo -n 12345 > .psc-ide-port
it will connect to that port. You'll need to make sure a server is running with the correct working directory in that case.
from purescript-language-server.
I think the idea is to start a server in the "wrong" working directory and still have the server compile into that folders output/ directory.
from purescript-language-server.
from purescript-language-server.
I just tried this and it doesn't work. Just to re-describe the issue: I have a parent directory containing several related purescript projects, for example a "web" project that depends on a "core" project. I want to start a psc ide server in the "web" project, but open my editor in the parent folder so that I can easily edit code in either the "core" or the "web" projects and have changes reflected immediately in the "web" project's output folder by having my editor communicate changes to the psc ide server. It doesn't work in either Atom or VSCode, but it does work in vim, so I'm certain I have not setup the psc ide server incorrectly.
Just to reiterate - I've tried: putting .psc-ide-port with port 4242 in the parent folder, web, and core. And it didn't work. Doing that did stop Atom and VSCode from running their own servers, but They don't seem to interact much with the running server. The only logging output I get is the following when the editor loads (nothing when saving files):
[Debug] Accepted a connection @(main:Command.Ide app/Command/Ide.hs:204:5)
[Debug] Received command: {"command":"cwd"} @(main:Command.Ide app/Command/Ide.hs:214:9)
[perf] Command Cwd took 0.14ms
whereas with I use vim I get the following from opening the editor and saving a file:
[Debug] Accepted a connection @(main:Command.Ide app/Command/Ide.hs:204:5)
[Debug] Received command: {"command": "load"} @(main:Command.Ide app/Command/Ide.hs:214:9)
[perf] Command Load took 2301.55ms
[perf] Finished populating volatile state in: 119.67ms
[Debug] Accepted a connection @(main:Command.Ide app/Command/Ide.hs:204:5)
[Debug] Received command: {"params": {"file": "/Users/dtwhitney/development/valence/valence/projects/core/src/Core/Components/Workspace.purs"}, "command": "rebuild"} @(main:Command.Ide app/Command/Ide.hs:214:9)
[perf] Sorting externs: 16.75ms
[perf] Rebuilding Module: 171.20ms
[perf] Command Rebuild took 195.84ms
[perf] Finished populating volatile state in: 100.64ms
Hope this helps. I tried to poke around in the code base, but I couldn't figure out how to get the extension stuff going in VSCode. I'm not really familiar with making extensions
from purescript-language-server.
What output do you get from the PureScript output panel in vscode? That should tell you what's going on, I expect in this case it's finding that you are connecting to a server in the wrong directory (it runs Cwd and refuses to continue).
We can add an option to skip the cwd check on server startup, but the reason it's there is that connecting to random servers is going to give wrong results.
Regarding "open my editor in the parent folder" - you should not do this, this will not work in either atom or vscode plugin just now - in vscode you should open each project as a root folder (multi-root workspace)
from purescript-language-server.
This should now be fixed, along with the port configuration, with the latest LS release. That's released in the latest vscode plugin (0.18.1) but not yet in atom.
from purescript-language-server.
from purescript-language-server.
Related Issues (20)
- Support configuring spago file/target
- Neovim configuration HOT 6
- BUG: Deleting/renaming modules does NOT purge them from the cache HOT 3
- Support completion for qualified do imports
- Docs: Update formatter section HOT 1
- Organizeing imports deletes comments HOT 1
- Hover (show documentation) does not work with recent coc.nvim HOT 8
- Suggestion: Extend diagnostics on type to buffer switches HOT 1
- Support multiple spans per diagnostic
- Incorrect "Go to definition" behavior for the `Bind` data type.
- E715: Dictionary required when trying to apply sourse.sortImports code action HOT 2
- Breakpoints?
- Use with spaghetto (spago@next)
- amazing stuff; just wondering if it supports eval? like in -- >> HOT 1
- Warning/Error reporting not working? HOT 5
- Action to export HOT 1
- Find references returns no references HOT 1
- Should optional field return null? HOT 1
- Stale errors/warnings stick around after a full build
- Presence of VTA prevents LSP functionality
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 purescript-language-server.