|
[Sponsors] |
Possible Missing Tab Completion in OFv1712? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 1, 2018, 14:45 |
Possible Missing Tab Completion in OFv1712?
|
#1 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
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 |
|
January 1, 2018, 14:54 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick questions:
__________________
|
|
January 1, 2018, 14:56 |
|
#3 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
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' alias ofcd='source /scratch/kb8e10/OpenFOAM/OpenFOAM-v1712/etc/bashrc' |
|
January 1, 2018, 15:04 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 No completion added for /home/bmss/OpenFOAM/OpenFOAM-v1712/platforms/linux64GccDPInt32Opt/bin 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 |
|
January 1, 2018, 15:12 |
|
#5 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
For me,
Code:
bash --version Code:
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. |
|
January 1, 2018, 15:13 |
|
#6 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
||
January 1, 2018, 15:17 |
|
#7 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
I assume you meant the following piece of code under etc/config.sh/bash_completion:
Code:
# Uses 'declare -gA' for the implementation # The '-A' requires bash >= 4.0 and the '-g' requires bash >= 4.2 if [ "${BASH_VERSINFO[0]:-0}${BASH_VERSINFO[1]:-0}" -ge 42 ] then # Global associative array (cached options for OpenFOAM applications) declare -gA _of_complete_cache_; # Clear existing cache and reassign bash completions. # But for tcsh wrapper make use of caching and avoid this overhead. if [ -z "$_of_complete_tcsh" ] then _of_complete_cache_=() # Generate completions for predefined directories foamAddCompletion $FOAM_APPBIN # And a few scripts from bin/ foamAddCompletion paraFoam fi else # Bash version is too old. ## echo "No bash completions - requires bash >= 4.2" 1>&2 unset -f foamAddCompletion 2>/dev/null foamAddCompletion() { echo "foamAddCompletion disabled - requires bash >= 4.2" 1>&2 } unset -f _of_complete_ 2>/dev/null fi 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! |
|
January 1, 2018, 15:30 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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 |
||
January 3, 2018, 05:24 |
|
#10 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
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. |
||
January 3, 2018, 06:07 |
|
#11 |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
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? |
|
January 3, 2018, 06:30 |
|
#12 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 |
Quote:
Yes, I agree - this is definitely required. It may take a day or two to rectify. Thanks. /mark |
||
January 4, 2018, 08:28 |
|
#13 |
Member
Peter
Join Date: Nov 2015
Location: Hamburg, Germany
Posts: 57
Rep Power: 11 |
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? |
|
January 4, 2018, 08:37 |
|
#14 | |
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14 |
Quote:
PS: I misunderstood your Q, sorry. You can obtain OpenFOAM between the main releases through development repositories. |
||
May 23, 2018, 04:55 |
|
#15 | |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
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:
|
||
June 13, 2018, 01:11 |
Open FOAM Installation really sucks
|
#16 |
New Member
Arslan Adeel Ur Rehmann
Join Date: Jun 2018
Posts: 9
Rep Power: 8 |
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. |
|
June 13, 2018, 05:16 |
|
#17 |
New Member
Gorg
Join Date: Oct 2013
Posts: 5
Rep Power: 13 |
Hello Arsian.
Have you found the solution for this error?. I have the same problem. Thanks in advance |
|
June 13, 2018, 06:52 |
|
#18 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
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. |
|
July 12, 2018, 04:04 |
|
#19 |
New Member
govind
Join Date: Apr 2018
Posts: 8
Rep Power: 8 |
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 |
|
July 12, 2018, 07:27 |
|
#20 |
Member
Join Date: Jan 2014
Posts: 32
Rep Power: 12 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] missing internal faces and uncovered faces after redifining parts containing surface. | grv | ANSYS Meshing & Geometry | 2 | December 9, 2016 05:38 |
[Other] paraFoam error | scybchenjun | OpenFOAM Meshing & Mesh Conversion | 0 | May 12, 2016 00:25 |
what is syntax error : missing ')' before ';' | aleisia | Fluent UDF and Scheme Programming | 8 | March 10, 2015 16:42 |
[OpenFOAM] Xlib: extension "GLX" missing on display | goldbeard | ParaView | 5 | March 24, 2013 14:12 |
errors when installing openfoam2.1 on ubuntu12.o4 | hewei | OpenFOAM Installation | 5 | May 29, 2012 08:43 |