Difference between revisions of "ApCoCoA-1:HowTo:Tips for developing (Ap)CoCoA with Eclipse"

From ApCoCoAWiki
(Added category tag)
(Added Mercurial section)
Line 3: Line 3:
 
In this case it could be that you are currently working within a <code>#ifdef SOME_SYMBOL</code> block and the symbol <code>SOME_SYMBOL</code> has not been declared within your Eclipse project. Symbols can be declared by clicking on Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols. Be sure to declare the symbol for the correct programming language (e.g. "GNU C++").
 
In this case it could be that you are currently working within a <code>#ifdef SOME_SYMBOL</code> block and the symbol <code>SOME_SYMBOL</code> has not been declared within your Eclipse project. Symbols can be declared by clicking on Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols. Be sure to declare the symbol for the correct programming language (e.g. "GNU C++").
  
 +
=Mercurial plugin troubleshooting=
 +
==Linux specific problems==
 +
In at least one case, it was not possible to push changes into a repository if Eclipse had not been started from a shell. The reason for this was that the password  entered into the password form of the Eclipse Mercurial plugin was ignored and had to been entered manually in the shell instead. It might be worth noting that the password entered in Eclipse was shown in clear text in the shell as well.
 +
 +
==Push fails==
 +
There are several (unconfirmed) reasons why this might happen.
 +
*Using a ssh connection: Eclipse has not been started from a shell under Linux. Please see section above. (?)
 +
*Wrong path to repository. In this case the Eclipse error message is very precise.
 
[[Category:HowTo|{{PAGENAME}}]]
 
[[Category:HowTo|{{PAGENAME}}]]

Revision as of 16:11, 31 October 2008

Code completion troubleshooting

Code completion does not work and my editor window has a gray background

In this case it could be that you are currently working within a #ifdef SOME_SYMBOL block and the symbol SOME_SYMBOL has not been declared within your Eclipse project. Symbols can be declared by clicking on Project -> Properties -> C/C++ General -> Paths and Symbols -> Symbols. Be sure to declare the symbol for the correct programming language (e.g. "GNU C++").

Mercurial plugin troubleshooting

Linux specific problems

In at least one case, it was not possible to push changes into a repository if Eclipse had not been started from a shell. The reason for this was that the password entered into the password form of the Eclipse Mercurial plugin was ignored and had to been entered manually in the shell instead. It might be worth noting that the password entered in Eclipse was shown in clear text in the shell as well.

Push fails

There are several (unconfirmed) reasons why this might happen.

  • Using a ssh connection: Eclipse has not been started from a shell under Linux. Please see section above. (?)
  • Wrong path to repository. In this case the Eclipse error message is very precise.