Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve symbol 'scp' in IntelliJ IDEA 11 Ant build script

I'm running IntelliJ IDEA 11 on Ubuntu Linux. I have an existing project that I've imported into IDEA with a build script that performs a bunch of <scp> tasks. IntelliJ is underlining all of my <scp> tasks and giving me the message of cannot resolve symbol even though I have jsch-0.1.42.jar both on my Global Classpath in IntelliJ as well as on the Additional Classpath for this specific Ant file.

Cannot Resolve SymbolAnt Additional Classpath

What do I need to do so that IntelliJ will recognize <scp> as a valid task?

like image 219
Mike Avatar asked Jan 18 '12 15:01

Mike


2 Answers

I was having this same problem with IntelliJ version 12.1.4. I solved it by putting jsch-0.1.50.jar into the default ant directory of IntelliJ (IntelliJ IDEA 12.1.4\lib\ant\lib).

like image 52
Pytry Avatar answered Nov 15 '22 04:11

Pytry


We can't reproduce the problem, scp is correctly recognized in the editor and works with just jsch-0.1.45.jar added to the Additional Classpath:

scp works

Please submit a bug with an isolated test case and the steps to reproduce if you still have this problem.

like image 23
CrazyCoder Avatar answered Nov 15 '22 04:11

CrazyCoder