Pelles C forum

Pelles C => Bug reports => Topic started by: nicolas.sitbon on June 22, 2009, 01:47:57 PM

Title: poide don't see a (special) partition
Post by: nicolas.sitbon on June 22, 2009, 01:47:57 PM
Hi,
I'm currently testing the RC2 of pelles C, and I encounter a problem, I want to use the IDE for linux programming. I use Expandrive (http://www.expandrive.com/ (http://www.expandrive.com/)) in order to mount my linux partition on Windows, then I want to use the browse utility of Pelles C (for completion code) but  I can't select the partition because I don't see it and if I try to type the correct partiton letter, it tells me : "unable to change folder 'E:\'".
(http://img229.imageshack.us/img229/5950/proofq.jpg)
(http://img155.imageshack.us/img155/9405/proof2m.jpg)
as you can see, partition E: doesn't appear...
thanks for your help.
Title: Re: poide don't see a (special) partition
Post by: AlexN on June 22, 2009, 03:12:02 PM
Christian had an other way to use Pelles C for Linux:

Look at:

http://forum.pellesc.de/index.php?topic=2466.0
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 22, 2009, 03:17:20 PM
It seems you don't understand me:
I program on Windows for Linux, the linux server doesn't have wine nor server X.
Title: Re: poide don't see a (special) partition
Post by: AlexN on June 22, 2009, 06:16:03 PM
I program on Windows for Linux, the linux server doesn't have wine nor server X.
I think, that Pelles C is the best (freeware-) C-development-package for Windows I know. But when I had to write programs for Linux on Windows, I would take an IDE like Code::Blocks (http://www.codeblocks.org) or CodeLite (http://www.codelite.org) which work together with GCC (MinGW) and many other compilers and thay are made for both worlds Windows and Linux.
I haven't developed programs for Linux (exept perhaps a "Hello world!" program ;) ) but if you don't know this IDE give them a try. :)
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 22, 2009, 06:21:50 PM
I know codeblock and codelite but they don't parse the header so you don't have code completion...
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 12:01:23 AM
Hi,

yes, code:block is really good. I like wxdev/c++ too.
For accessing Linux partitions from within windows i can advice the use of this here its really good:
http://www.fs-driver.org/

Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 07:58:14 AM
Thanks but the problem is the same:
- my linux partition is JFS
- I need a sshfs client on Windows

expandrive is the best tool for that, I never had any problem with other software, it's strange.
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 11:02:26 AM
Hi,

i have no experience with JFS sorry.

But http://wxdsgn.sourceforge.net/ has code completion. Maybe you should give it a try. I mostly use this or Code::Blocks when i port Unix/Linux Code.

Greetings

Seltsamuel

Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 11:08:39 AM
Is it possible to specify the source path to browse for code completion?
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 11:13:03 AM
Hi,

yes, when i understand right what you want :-)
http://wxdsgn.svn.sourceforge.net/viewvc/wxdsgn/trunk/wxdevcpp/Help/html/editor_codecompletion.html

EDIT:
The best of this Suite is its under heavy development not like other dev/c++ projects that stagnate since months and years.

Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 11:37:39 AM
I've just tried wxdevc++, the stable doesn't see the partition, and the release candidate sees it, create the cache completion file, but the code completion in the editor doesn't work, nothing happens.
Title: Re: poide don't see a (special) partition
Post by: AlexN on June 23, 2009, 11:37:55 AM
Is it possible to specify the source path to browse for code completion?
At Code::Blocks you can choose at settings Editor -> Code-completion and symbols browser the C/C++ parser and there you have the options:
-> Follow LOCAL includes
-> Follow GLOBAL includes
-> Parse preprocessor directives
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 11:48:40 AM
code block doesn't see the partition too.
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 11:57:49 AM
Hi,

did you add your sources to the completion cache of wxdev/c++ ?
Maybe you should take some minutes to look at the documentation its well made.



Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 12:00:09 PM
I looked at the documentation, it's not difficult, I can add the directory with the release candidate version but the code completion doesn't work, I also tried the stable version, but it doesn't see the partition, so...
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 12:37:24 PM
Hi,

dont know what else i can advice i use 7.0 RC5 and it works flawless.
Did you really add all FILES to the Cachelist? This takes a moment then your files are inside the list!
Inside the add dialogue you can select multiple together but i dont know if you can add a folder to get automatic included.

Another thing is inside editor optionstab CODE -> CLASSBROWSER you can check lokal AND global files to scan i have checked both!

Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 01:22:38 PM
OK, now ti works, BUT, there isn't code completion on function name...
Title: Re: poide don't see a (special) partition
Post by: AlexN on June 23, 2009, 01:36:11 PM
code block doesn't see the partition too.
So I think it's a case for the Expandrive-support. ;)
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 01:47:02 PM
code block doesn't see the partition too.
So I think it's a case for the Expandrive-support. ;)
I don't think so, I have just tried netbeans and it works perfectly, so the problem comes from poide, code block or wxdev-c++ (stable).
Title: Re: poide don't see a (special) partition
Post by: AlexN on June 23, 2009, 02:14:34 PM
I don't think so, I have just tried netbeans and it works perfectly, so the problem comes from poide, code block or wxdev-c++ (stable).
AFAIK Pelle works at poide with memory mapped files. What the other IDEs do, I don't know. But if you know three applications, which don't work with Expandrive, you can ask if they have a workaround (or to search for a forum).
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 02:46:16 PM
The problem is not in the method for reading file, rather it is in the "file chooser" (GetOpenFileName()).
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 03:10:44 PM
Hi,

http://anon676.an.ohost.de/images/rgh1245762482q.png

as you see it works for me.

Im sure we shouldnt continue the offtopic here else Pelle wont like this :-)
So please get comfortable with wxdev/c++ and if necessary create a topic outside of Bug reports.

Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 03:31:56 PM
What you show is the completion on function parameter not function name. Now, I still think that it's a bug, a misused api for example, cause I can see that partition in other software like Netbeans or Explorer.
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 04:42:46 PM
Hi,

functions work too:

http://anon676.an.ohost.de/images/bwy1245767864a.png

Just type as far as you know then hold down STRG and press SPACE while holding STRG. This pops up all functions matching from all known includes and files headers and c files you added to the cache.

Greetings

Seltsamuel
Title: Re: poide don't see a (special) partition
Post by: nicolas.sitbon on June 23, 2009, 04:49:05 PM
What is STRG? I tried with CTRL + SPACE but it didn't work. Doesn't matter, I use netbeans which is fine.
Title: Re: poide don't see a (special) partition
Post by: Seltsamuel on June 23, 2009, 04:56:51 PM
Hi,

sorry my fault i use german keyboard ^^

strg=CTRL

And it should work as you see else you not added the files to the cache. Hm maybe it only shows functions not inside the local file but i doubt that.

Greetings

Seltsamuel