Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

visual studio 2010 throws exception when editing .clj files #143

Open
speige opened this Issue Feb 23, 2014 · 17 comments

Comments

Projects
None yet
3 participants
Contributor

speige commented Feb 23, 2014

Open an .clj file in vs2010 and an error message will be displayed.

@speige speige added this to the Version 2.2 milestone Feb 23, 2014

@speige speige added the Bug label Feb 23, 2014

Contributor

frankhale commented Mar 3, 2014

I'm looking into this right now.

Contributor

frankhale commented Mar 3, 2014

I don't get an error message, Visual Studio just locks up. What I'm doing is just opening a .clj file by itself, not within any project. This is with version 2.1.6 from the VS Gallery.

vsclojure-vs2010-clj-lockup

Contributor

frankhale commented Mar 3, 2014

It also locks up for me using the most current code for vsClojure from the repo. Tested this on Visual Studio 2010 Premium on Windows Server 2008 R2.

Contributor

frankhale commented Mar 3, 2014

After creating a new Clojure project in Visual Studio 2010 this is the error I am seeing when opening a .clj.

vs2010-clojure-project-edit-clj-error

Contributor

speige commented Mar 3, 2014

I was seeing this also. I tried attaching to vs2010 from vs2013 but I wasn't able to get it to break on the exception.

I pulled the previous version from the gallery (several months old) & it also had this issue. Maybe this has been broken for awhile & I just didn't notice it.

I wonder if we should test older commits to see if we can isolate which commit broke this. For example, go back 50 commits, compile, & test. If the issue exists, go back 50 more. If the issue goes away, we know it was within that range of 50 commits. Then we can shrink to a smaller range, maybe 10 commits at a time. Once we can isolate the exact commit where it broke, it should be relatively easy to fix it.

Contributor

frankhale commented Mar 3, 2014

That sounds like an excellent plan!

Contributor

frankhale commented Mar 3, 2014

@speige, I went back to the last commit before you started committing. That commit is March 2012. This seems to work.

reference 3be5a0d

Contributor

frankhale commented Mar 3, 2014

I will try some newer commits and see if it breaks.

Contributor

frankhale commented Mar 3, 2014

No matter what I try I cannot build 6ff6b52 because the deployment and clojurescript projects say incompatible and won't load. I'll try some other commits in a little while.

full link to the source code

https://github.com/vsClojure/vsClojure/tree/6ff6b522f2135b3c22597b10664c6fcd3db2eb03

@frankhale frankhale removed this from the Version 2.2 milestone Aug 22, 2014

shrayasr commented Nov 3, 2014

Any update on this? I am facing the same problem :(

Contributor

frankhale commented Nov 3, 2014

This is not resolved. To my knowledge vsClojure is not being developed anymore.

shrayasr commented Nov 3, 2014

Oh. Any alternatives?

Contributor

frankhale commented Nov 3, 2014

It seems like people are using options available for Clojure JVM to develop code. So things like Emacs, VIM, etc.. Beyond lein-clr I don't know of anything that is out there for working more directly with Clojure CLR. I guess most people are working in a combination of editors and console windows open to interact with the various other tools.

shrayasr commented Nov 3, 2014

Oh man. Our company works majorly on the .NET stack and was looking at this as a promising solution. Ah well, i'll figure something out. Thanks

Contributor

frankhale commented Nov 3, 2014

What I meant was that people are using editors and tools available for the Clojure JVM to develop for Clojure CLR. Because of the nature of Clojure and how people develop with it there is not a following around something like a Visual Studio solution. The Visual Studio approach seems to go against the grain as far as Clojure goes, or so my opinion of what I've seen.

shrayasr commented Nov 3, 2014

Oh. I get what you mean. But what if I need to build a solution with a clojure library project as a dependency? I can't version my source together then, right?

Maybe I'm not too clear with this. Let me do some more research and get back. Thanks a ton again :) I got some idea now

Contributor

frankhale commented Nov 3, 2014

My guess is that people that are working with Clojure CLR and other code like C#, etc... are mucking with MSBuild and csproj files directly in order to integrate the Clojure code with other .NET code. There is a plugin for Leiningen called lein-clr which is probably worth investigating as well. I don't know how deep the ecosystem is for Clojure components/libraries on the .NET CLR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment