Comments (7)
The first of your two examples looks correct to me. There is an open pull request #55 which deals with discovering the right shell to use bashed on the shebang line at the top. That should probably improve things, but I'm not quite certain about the implementation yet. I would like to avoid the systemlist
call if at all possible. Take a look at that pull request.
The default shell is bash
when the shell cannot be detected otherwise.
from ale.
Check out the branch shell-detection
. I tried to improve shell detection without making a system call. I realised that there are only so many shell programs we can support with a -n
flag, so I can list all of them, and the name of the shell program to run must come basically at the end of the string. You could symlink to the shell programs or something but... just don't do that.
from ale.
9d52d96 looks good to me, but you still can improve it:
- First check if there is a shebang, and if not ...
- check the environment variable
$SHELL
(fnamemodify($SHELL, ':t')
), and if it returns an empty string... - fallback to
g:ale_linters_sh_shell_default_shell
from ale.
What if I change the default value of g:ale_linters_sh_shell_default_shell
to fnamemodify($SHELL, ':t')
or 'bash'
if that string is empty? Then you will be able to override the value of $SHELL
if you want to.
from ale.
Good idea, that should cover all the cases.
from ale.
I have pushed that now, and another commit which documents the option.
from ale.
Great.
For the issue here, its again related to the used local (Mine is french).
A PR is on the way.
from ale.
Related Issues (20)
- Support hurlfmt as fixer and linter
- Add support for include-what-you-use
- Add support for basedpyright
- rust ALEGoToDefinition does not trigger any action HOT 1
- ALE linting .tsx as .ts files when using Biome
- [Biome] Linter not usable
- Should/could ALE pass --no-fix argument to ruff when linting (to override project configuration)? HOT 5
- ALEHover text not appearing in floating preview HOT 1
- Cannot use ALE in MacVim when the file is opened via the right-click context menu or the File > Open dialog in MacVim HOT 2
- error loading shared lib: libicui18n.so.73 HOT 1
- json linting with jq doesn't report errors correctly
- On Windows 11, shell=pwsh/powershell continues breaking ALE lint HOT 1
- `write-good` plugin need make separate files that only have text
- cspell option “-c config.yaml” not work
- `sqlfluff` does not work in Neovim, throws an error when trying to lint an opened file HOT 1
- Signs cannot be customized HOT 5
- ALEFix with clangtidy not updating the buffer HOT 1
- clang++ command not getting correct include paths
- error highlights entire function
- Add support for pymarkdown
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 ale.