Comments (8)
Best guess: the file is too long. Perhaps Windows limits the length
of parameters to curl, which is sending the request.
Might be able to work around this with echo and piping (if possible on
Windows). If that doesn't work, write the contents to a file and make
curl read that somehow.
from omnisharp-emacs.
Occurred on files at 1173 lines and one about 800 LOC so far.
Truncating the file to a lower treshold seems to work around the
issue.
from omnisharp-emacs.
A quick search led me to this:
http://stackoverflow.com/questions/3205027/maximum-length-of-command-line-string
It states there indeed is a character limit in command line statements.
from omnisharp-emacs.
There seem to be viable alternatives built in curl:
http://stackoverflow.com/questions/3007253/send-post-xml-file-using-curl-command-line
http://stackoverflow.com/questions/6408904/how-to-send-post-request-with-data-specified-in-file-via-curl
I'm thinking, on Windows systems we could default to using that
switch to send a temporary file contents (the current buffer contents).
Note that the current buffer contents != current file contents as the
editor commonly contains changed data vs. the actual file.
from omnisharp-emacs.
Oh lord, yes - sorry, only just seen this issue. Command line limits on Windows are a pain. A couple of suggestions:
- Always send your Win7 curl commands via a temp file. It's usually not much slower than using a command line anyway as the file is most likely cached in memory, and it keeps things simple and consistent.
- Switch to using the emacs url library. I'm guessing you've already looked into this and rejected it for a good reason. :)
from omnisharp-emacs.
Point 1 is probably the route I'll take, yes. I had the idea of using
some kinds of temporary files but don't really know much about
the possibilities of them on Windows yet.
About point 2: I tried many different options in the beginning. You
might still be able to find them early in the commit history. All of
them had some problems. Some just hung randomly, and after
a lot of pain I just got fed up and switched to curl. :/
from omnisharp-emacs.
Just implemented a fix for this. Works very well. No noticeable
slowdown, even! :)
Looks like this is usable on Windows again.
Will push fix to master later on.
from omnisharp-emacs.
Merged to master: 32c8ec5
from omnisharp-emacs.
Related Issues (20)
- Doesn't find solution file in parent directory when opened from symbolic link directory HOT 4
- Time to move efforts from omnisharp-emacs to lsp-mode? [Discussion] HOT 11
- server start error on mac ox
- C# documentation not showing up with Omnisharp
- razorfile & cshtml file support HOT 1
- How to show XML documentation when browsing auto-complete results? HOT 1
- problems with flycheck.el (not sure) HOT 1
- emacs does not autocomplete for unity3d types HOT 4
- Optional `add-to-kill-ring' parameter not passed to `omnisharp-current-type-information-worker' HOT 1
- Changes to class files in subfolder are not available in other files HOT 1
- Omnisharp requires external projectile when built-in (>25.1) project.el would do the job as well HOT 1
- no autocomplete without explicitly typing "company-complete"? HOT 3
- Issues on the natively compiled brach with dash macro HOT 1
- `(void-variable it)` errors when starting omnisharp server with Emacs 28 native comp HOT 11
- Omnisharp-mode: Output file descriptor of OmniServer is closed
- No assemblies are being loaded properly. HOT 2
- company omnisharp completion
- Omnisharp doesn't work at all in Emacs 28.1 HOT 10
- Omnisharp MSBuild Error
- Spacemacs: Error while checking syntax automatically: (error "Output file descriptor of OmniServer is closed") HOT 1
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 omnisharp-emacs.