Adding Project to TFS?

Hi

I hope someone can help or point to some infomation about TFS integration.  Im trying to add a project from my MAC to our company TFS 2010. but cant figura out what im missing. Looks like im connected to the Server, but im not able to add a project.

I hope someone can help or point to some good info.

Lennart

25 comments

Update: Im getting "No mapping found for folder 'xxx'"

0

Hi Lennart,

Currently you cannot create new Team project with IntelliJ IDEA, you need some other client to do that (see e.g. Visual Studio), still you can add your project files to the server. Assuming you have Team project 'Foo' with server path $/Foo you need to create a workspace and set up mapping $/Foo <---> /Home/user/Foo (or whatever is the local path of your project). Then your projects files will show up as undersioned and you will be able to add them to version control and commit.

Regards,
Kirill

0

Hi Kirill

Thx for your answer, but not sure where to do the map in Mac.

0

Main menu: IDEA -> Preferences -> Version Control -> TFS page, click Manage servers and workspaces, then click Create new workspace.

0

Hi Kirill,

Could you please elaborate on your phrase "and set up mapping $/Foo <---> /Home/user/Foo"?

I have a project on TFS under the folder $/FOO/Foo1/Project

Locally, I create the folder /Users/Vasilis/FOO/Foo1/Project  (I am on Mac). Is this correct?

In the logs, I get the message "Team Foundation Server mappings not found for ...." and after a while the message "I/O exception (java.net.SocketException) caught when processing request: Malformed reply from SOCKS server "

Thank you in advanced for your time

0

Hi Vasilis,

I have a project on TFS under the folder $/FOO/Foo1/Project
Locally, I create the folder /Users/Vasilis/FOO/Foo1/Project  (I am on Mac). Is this correct?

There is no need to create local folder to exactly match your server path (you can - but you don't need to). Instead of playing with paths you can use the UI:
tfs-mappings.png

In the logs, I get the message "Team Foundation Server mappings not found for ...." and after a while the message "I/O exception (java.net.SocketException) caught when processing request: Malformed reply from SOCKS server "


I guess you get "... mappins not found..." message due to incorrect mappings indeed. Socket exception looks like something different (related to your proxy server), but at first I would suggest to resolve the first problem.

Regards,
Kirill

0

Hi Kirill,

If I go to VCS->TFS->Edit Configuration, I see an empty screen and the only thing I can do is to add a Team Server. But I can not do that, because of the error message I mentioned in my previous posr.

Thank you

0

I see your point. Could you please attach idea.log? (main menu Help -> Reveal log in Finder). Besides, what is your HTTP Proxy setting?

Thanks,
Kirill

0

There is no proxy. It is a local network



Attachment(s):
idea.log.zip
0

Could you please double-check there's no proxy configured in your OS preferences?

Maybe related: http://www.innovation.ch/java/HTTPClient/errors.html

0

The company that I am working for does have a proxy. But I have configured the network preferences to bypass the proxy settings for specific hosts/domain. One of them is the TFS server.
Also, I can connect to the TFS server from Safari.

I have completed removed the proxy settings from the network settings, and I am still getting "I/O exception (java.net.SocketException) caught when processing request: Malformed reply from SOCKS server "

0

OK I see. Let me ask you to turn on low-level logging so I can look at the messages that IDE sends to the server:

1. open 'IDEA.app/bin/log.xml' with text editor (or AppCode.app/bin/log.xml)

2. add the following lines before the <root> tag:

<logger name="httpclient.wire">

    <level value="debug"/>

</logger>

3. restart IDE, try to connect

4. use main menu: Help -> Reveal log in Finder to find the log file to attach.

Thanks,
Kirill

0

I do not think is working, but here is the new log file



Attachment(s):
idea1.log.zip
0

Yes, it didn't work. Please replace your AppCode.app/bin/log.xml file with one attached, restart and try to connect.



Attachment(s):
log.xml
0

Hi Kirill,

Did you have time to look at the log file?

Thank you

0

Sorry for delay,

I'd like to look at how Java Virtual Machine sees your proxy settings. Could you please execute attached JAR (e.g. run "java -jar printprops.jar" in Terminal) and attach an output? This JAR is nothing more than just

public class Main {
    public static void main(String[] args) {
        System.getProperties().list(System.out);
    }
}


Thanks!



Attachment(s):
printprops.jar
0

-- listing properties --

java.runtime.name=Java(TM) SE Runtime Environment

sun.boot.library.path=/System/Library/Java/JavaVirtualMachi...

java.vm.version=20.6-b01-413

awt.nativeDoubleBuffering=true

gopherProxySet=true

mrj.build=10M3623

java.vm.vendor=Apple Inc.

java.vendor.url=http://www.apple.com/

ftp.proxyHost=slgproxy.slg.gr

path.separator=:

java.vm.name=Java HotSpot(TM) 64-Bit Server VM

file.encoding.pkg=sun.io

user.country=GR

sun.java.launcher=SUN_STANDARD

sun.os.patch.level=unknown

java.vm.specification.name=Java Virtual Machine Specification

user.dir=/Users/vasilis/Desktop

java.runtime.version=1.6.0_31-b04-413-10M3623

java.awt.graphicsenv=apple.awt.CGraphicsEnvironment

java.endorsed.dirs=/System/Library/Java/JavaVirtualMachi...

os.arch=x86_64

java.io.tmpdir=/var/folders/V8/V86VtrXZFPm0PXwymT6FD...

line.separator=


socksProxyPort=8080


java.vm.specification.vendor=Sun Microsystems Inc.
https.proxyHost=slgproxy.slg.gr
gopherProxyHost=slgproxy.slg.gr
os.name=Mac OS X
sun.jnu.encoding=MacGreek
java.library.path=.:/Library/Java/Extensions:/System/Li...
http.proxyPort=8080
java.specification.name=Java Platform API Specification
java.class.version=50.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=10.6.8
http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16...
user.home=/Users/vasilis
user.timezone=
java.awt.printerjob=apple.awt.CPrinterJob
java.specification.version=1.6
file.encoding=MacGreek
user.name=tsirikos
java.class.path=printprops.jar
socksProxyHost=slgproxy.slg.gr
java.vm.specification.version=1.0
sun.arch.data.model=64
java.home=/System/Library/Java/JavaVirtualMachi...
sun.java.command=printprops.jar
java.specification.vendor=Sun Microsystems Inc.
user.language=el
ftp.proxyPort=8080
awt.toolkit=apple.awt.CToolkit
java.vm.info=mixed mode
java.version=1.6.0_31
java.ext.dirs=/Library/Java/Extensions:/System/Libr...
http.proxyHost=slgproxy.slg.gr
sun.boot.class.path=/System/Library/Java/JavaVirtualMachi...
java.vendor=Apple Inc.
file.separator=/
java.vendor.url.bug=http://bugreport.apple.com/
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
mrj.version=1060.1.6.0_31-413
https.proxyPort=8080
gopherProxyPort=8080
socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16...
ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16...
sun.cpu.isalist=
0

Thanks,

Your listing shows that socks proxy is enabled by default:

socksProxyHost=slgproxy.slg.gr
socksProxyPort=8080

Also there's a couple of exclusions which i believe come from System Network configuration dialog.

socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16...



I would suggest to include exact host name of your TFS server to this list, restart IDE and try to connect again.

Regards,
Kirill

0

You are so right :)

Thank you!!!

0

I have one (?)  question

I am trying to checkout a project from TFS, and it does not download all the files!!

Do you have any idea why AppCode is doing this?

0

Did it download anything at all, or nothing? Did it skip certain folders?

May be related bugreport: http://youtrack.jetbrains.com/issue/IDEA-49633.

0

The project has two folders, and from the second folder it did not download all the files.

Also, it did not download the xcodeproj folder and the Entitlements.plist file.

I may have done something wrong, because the first time I tried to check out the project from TFS, AppCode would asked me if I wanted to override the local files. Because there is no option "Apply to all", I had to cancel it. Then, I emptied the local folder, and I retried to check out the project. But in vain, AppCode would download only a couple of files. In my attempt to fix this issue, I deleted the local folder, and I created a new one. Now I have the problem that I described above.

It seems to me that AppCode creates a hidden file that keeps track of the file that are checked out. Where can I find this file?

0

This seems to be exactly the case of http://youtrack.jetbrains.coim/issue/IDEA-49633. Please remove your TFS workspace (Settings -> Version Control -> TFS -> Manage servers and workspaces) and create a new one with the same mappings.

It seems to me that AppCode creates a hidden file that keeps track of the file that are checked out.


Actually it's not AppCode, but TFS server keeps the list of downloaded files for every client workspace, so if you create a new workspace the server will clear that list and suggest all the files for download.

0

Please sign in to leave a comment.