Possible Missing Tab Completion in OFv1712?
Hi,
Has anyone else also been experiencing the lack of tab completion (command line completion) for the options of OpenFOAM commands in version 1712? As you may remember, this functionality was added in version 1706?: Bash shell completion |
Quick questions:
|
1. I use bash.
2. Currently, I removed the other versions. Yet in general I keep the versions separate through ~/.bashrc. For instance: Code:
alias ofcv='source /scratch/kb8e10/OpenFOAM/OpenFOAM-v1706/etc/bashrc' |
Everything looks correct in your description... I haven't tried installing it yet, so I haven't tested it yet... let me download and check...
OK, so when I first source the script, I get a warning: Code:
$ source etc/bashrc I've taken a look into the script and it seems like it will silently complain that it needs at least Bash 4.2. What does this give you? Code:
bash --version |
For me,
Code:
bash --version Code:
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) |
|
I assume you meant the following piece of code under etc/config.sh/bash_completion:
Code:
# Uses 'declare -gA' for the implementation I now wonder where this warning message is supposed to appear? During the installation? PS: I cannot update the bash version while I work in a cluster. Nevermind. I think this is very likely old-version issue. Many thanks for your help! :) |
Quote:
Please report this on their bug tracker at http://develop.openfoam.com I deduce that they changed how the auto-complete feature is done so that it would be more automatically, instead of using a very large auto-complete file like the one provided by the versions at the OpenFOAM Foundation, for example, over 7000 lines of script code here: https://github.com/OpenFOAM/OpenFOAM...ash_completion |
|
Quote:
It is also trivial for the end-user to add completions for their own OpenFOAM solvers and applications. Eg, Code:
foamAddCompletion $FOAM_USER_APPBIN On the plus side, it is nice to be warned that your bash is too old. On the minus side, it can be annoying or interfering to have these warnings each time a new shell is opened. Add an extra variable to configure reporting or suppressing these warnings? Again more complexity. It is probably difficult to find a practical solution to satisfy all situations. |
Hi,
IMHO, it might then be good at least to warn the prospective users in system requirements regarding the bash preference, if possible? I think, this is the wisest option considering your well-justified point of view? |
Quote:
Yes, I agree - this is definitely required. It may take a day or two to rectify. Thanks. /mark |
More general question concerning the bug-fixing process:
Will the bug-fixes from https://develop.openfoam.com be inserted into the download-versions on https://openfoam.com/download/? This would be valuable to achieve an improved code, but then the version, e.g. v1712, changes with time, right? |
Quote:
PS: I misunderstood your Q, sorry. You can obtain OpenFOAM between the main releases through development repositories. |
I have Bash 4.2 on CentOS 7.5, installed v1712 in /opt, and still get the "No completion added for /opt/OpenFOAM-v1712/platforms/linux64GccDPInt640Opt/bin" warning, before and after installing OpenFOAM. So I don't think it's necessarily Bash version related. It stopped happening after a reboot. I might be interpreting what tab completion means wrong, but it seems to work, e.g. if I type "simple" then hit tab, "simpleFoam" is one of the suggestions.
Quote:
|
Open FOAM Installation really sucks
when i am trying to install OpenFoamV-1712 I get this error
No completion added for /home/arslan/OpenFOAM/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/bin I tried many times but nothing changes. I even tried the whole installtion by ignoring the error but in installtion test its says FATAL ERROR icoFOAM....I have read the whole thread above but really could not get the solution out of it. I am new to linux and open foam. If anyone knows how to solve the issue please help. thanks in advance. |
Hello Arsian.
Have you found the solution for this error?. I have the same problem. Thanks in advance |
If you're getting a fatal error, it means that something else is going wrong with the installation.
This tab completion error can be ignored (it just means that tab completion won't work because openfoam hasn't been built successfully yet) and should go away after installing correctly and a reboot. Here is a guide I put together from multiple sources for building OpenFOAM+ v1712 from source on a headnode and compute nodes running CentOS. If you just care about installing OpenFoam v1712 on a workstation, then only follow the headnode instructions. If you want to use the OpenMPI in the thirdparty folder, then skip the OpenMPI portion of the guide. If you aren't using CentOS/RHEL, then you'll have to adjust some of the steps, but the general method should work. |
I am facing same issue. I have removed the old one and re-installed the new version i.e. v1806. After downloading the tar files (and after extracting) when I go for source the openfoam bashrc (source ~/OpenFoam/OpenFOAM-v1806/etc/bashrc ) it results in:
No completion added for /home/govind/OpenFoam/OpenFOAM-v1806/platforms/linux64GccDPInt32Opt/bin ... incorrect platform, or not yet compiled? I am not understanding what's happening even after reading above discussions? Please let me clarify this doubt. Govind, IIT Delhi |
That error can be ignored until after installation. Did you try the installation? If the installation succeeds, reboot, then see if that error goes away.
|
All times are GMT -4. The time now is 19:00. |