Comments (6)
I can confirm this. I have the same issue on Linux atm.
Which is kind of awkward... because I know it used to work oO
from scvim.
If I remember correclty it used to work on my behalf also but I don't know what changed.
From I have understood, the 'which' command is not really recommended for this purpose.
I've tested with other commands, such as 'command' and 'type' but no luck with those either.
Maybe we should look into the whole structure of detecting the 'sclang' and 'scsynth' paths?
One idea would be to be able to define the paths in the .scvimrc file and have 'sclangpipe_app' check if those are defined. If not defined, the script should try to find the paths automatically.
from scvim.
Yes.
My idea after doing the additions for tmux and screen was to rewrite the sclang_app in bash or something similar anyways.
Not sure if this can be done easily, but it would be system-independent.
I'd like to not use ruby for it but go into a general python direction, maybe even further adhering to the standards introduced with neovim.
Fleshing out the way the plugin looks for the paths is surely a good idea.
I think scvim is also still using (now) deprecated methods from Platform (like helpDir).
from scvim.
Another idea is making only one default location, i.e. OS X '/Application/SuperCollider..' and linux '/usr/local/share/SuperCollider..', which could be overridden by the .scvimrc file.
I'd prefer that instead of having the script look into many different folders, not really knowing which version is being run.
from scvim.
It's more than just the aliasing. (even if you mean symlink)
Qt linking requires that you run it from the directory where the original is. You can use a shell script that execs sclang and passes the arguments through. That's what I've done in the past. That only really works for scsynth though; Qt linking is still a problem and the app will not run.
from scvim.
Cleaning up ancient issues!
When using a bash alias sclang=sclang -g 512k
that's not normally something you can expect a unix system to pick up outside of your shell. We could warn, but the behavior is actually standard behavior for a *nix system, so I would suggest to just close this since it's more about unix than supercollider.
The best way I found to add parameters by default was, indeed, to create small shell scripts. I usually put them in both ~/bin/sclang and ~/bin/scsynth, worked fine.
#!/bin/bash
exec /usr/bin/sclang -g 512k $@
#!/bin/bash
exec /usr/bin/scsynth -w8196 $@
Sucker as I am for over-engineering, here's a generic script that will pick out the next command up the path with the same name as the file, so you can copy paste the line instead of having to type /usr/bin/sclang by hand (the horror).
#!/bin/bash
CMD=$(which -a $(basename $0) | head -2 | tail -1)
exec $CMD -g 512k $@
from scvim.
Related Issues (20)
- provide scvim system-wide HOT 7
- Running block of code between parenthesis sometimes doesn't work HOT 3
- executing a visually selected block doesn't work HOT 4
- SCVim: SCfindArgs() doesn't work on classes with implicit .new-methods HOT 1
- SCVim: Use vim native help system HOT 22
- scvim stopped working HOT 5
- scvim dose not load $SCVIM_TAGFILE HOT 4
- supercollider with vim HOT 2
- installation help HOT 4
- Disable gpu HOT 10
- Errors on Ubuntu 19.04 HOT 1
- E117: Unknown function: SClang_line HOT 1
- scvim fails to start with nvim HOT 6
- x-terminal-emulator required on linux HOT 1
- find outermost paren doesn't ignore comments HOT 1
- need help installing HOT 3
- SCvim does not highlight some of supercollider syntax
- [0108/181607.596102:WARNING:stack_trace_posix.cc(699)] Failed to open file: /memfd:/.glXXXXXX (deleted) HOT 3
- "there is already a sclang session running" nvim keeps hanging
- How to install scvim on linux?
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 scvim.