Coder Social home page Coder Social logo

Comments (6)

dvzrv avatar dvzrv commented on September 18, 2024

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.

eirikblekesaune avatar eirikblekesaune commented on September 18, 2024

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.

dvzrv avatar dvzrv commented on September 18, 2024

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.

eirikblekesaune avatar eirikblekesaune commented on September 18, 2024

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.

crucialfelix avatar crucialfelix commented on September 18, 2024

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.

capocasa avatar capocasa commented on September 18, 2024

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)

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.