Forums

Cobra.Compiler.dll

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Cobra.Compiler.dll

Postby Charles » Sat Jul 28, 2012 1:33 am

I just tweaked the install program so that Cobra.Core.Compiler.dll is now Cobra.Compiler.dll which is what I originally intended. FYI.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Cobra.Compiler.dll

Postby nerdzero » Thu Aug 09, 2012 11:46 am

I just ran the latest installer in Ubuntu and the permissions on all the files under /usr/local/cobra/Cobra-svn-2771/ are 750 instead of 755 so a regular user doesn't have read or execute permissions. Did it always work this way? Maybe I just updated the permissions manually back when I first installed Cobra and I don't remember.
nerdzero
 
Posts: 286
Location: Chicago, IL

Re: Cobra.Compiler.dll

Postby Charles » Thu Aug 09, 2012 6:07 pm

I haven't recently changed anything with regards to permissions. So you're saying non-root users cannot access it?

I suppose we'll slip in a /bin/chmod call then.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Cobra.Compiler.dll

Postby nerdzero » Thu Aug 09, 2012 7:59 pm

Yes, but someone else should confirm in case I have some weird rules in my fstab or something else I forgot about.
nerdzero
 
Posts: 286
Location: Chicago, IL

Re: Cobra.Compiler.dll

Postby nerdzero » Tue Sep 04, 2012 8:01 pm

My install must be hosed or I have some funky values in my path or something. Look what I get when I try to compile hello.cobra

Code: Select all
ramon@ragnarok:~$ cobra -ert:yes my_workspace/cobra/trunk/Source/hello.cobra
error: COBRA INTERNAL ERROR / UnauthorizedAccessException / Access to the path "/usr/local/cobra/Cobra-svn-2790/bin/Cobra.Core/CobraCore.cobra.cs" is denied.
Compilation failed - 1 error, 0 warnings
Not running due to errors above.

Am I interpreting that correctly? It's trying to write the C# files to the installation folder? Man, time for me to take a break and grab some beer.
nerdzero
 
Posts: 286
Location: Chicago, IL

Re: Cobra.Compiler.dll

Postby Charles » Wed Sep 05, 2012 12:38 am

That's a known bug.

On a somewhat related note, I was thinking of adding a -copy-core option like:

cobra -c -copy-core Program.cobra

Which could copy the Cobra.Core.dll (and debugging symbol file) next to cobra.exe to be next to Program.exe. This would provide some insulation from new installations of Cobra so that they don't complain that the installed Cobra.Core.dll is the wrong version number. You could recompile/rebuild, of course, but sometimes you don't want to.

And you could copy the file manually. This would just be a convenience.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Cobra.Compiler.dll

Postby nerdzero » Wed Sep 05, 2012 7:31 am

-copy-core would actually be really useful for the MD addin. It would make it easier to squash this bug: https://github.com/ramon-rocha/MonoDeve ... g/issues/3
nerdzero
 
Posts: 286
Location: Chicago, IL

Re: Cobra.Compiler.dll

Postby Charles » Wed Sep 05, 2012 1:50 pm

I got this started with changeset:2791.

I haven't yet automated tests for it and I forgot to respect the -verbosity/-v flag. I used it in one of my projects and the files get copied, but I haven't really tested that this insulates the .exe from future Cobra.Core.dll versions.

Give it a whirl and let me know if you have any problems.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Cobra.Compiler.dll

Postby nerdzero » Wed Sep 05, 2012 1:55 pm

Cool. I'll try it out soon.
nerdzero
 
Posts: 286
Location: Chicago, IL


Return to Discussion

Who is online

Users browsing this forum: No registered users and 11 guests