User forums > Help

cannot open files

<< < (3/4) > >>

Jenna:

--- Quote from: stahta01 on December 29, 2016, 12:55:49 pm ---
--- Quote from: oBFusCATed on December 29, 2016, 11:11:36 am ---
--- Quote from: thunderben on December 29, 2016, 10:43:34 am ---An intuition:
It feel like internal editor did not installed correctly.

--- End quote ---
The editor is inseparable part form codeblocks.

I guess it is time to record a video showing us what is going on.

--- End quote ---

I have no idea what happens if the default MIME handler is turn off.
But, it might match the OP problem.

Tim S.

--- End quote ---
It shows an error message (e.g.):
--- Quote ---Could not open file /home/jens/test.txt,
because no extension handler could be found.
--- End quote ---
(just tried on F24).
*.cpp files still open flawlessly.

thunderben:
ISSUE SOLVED!

jens
1)
Your question: "Where are your files located by the way ?" remind me troubles when I developed on Windows. VisualStudio had limitation on projects files path...

My source path was: "/home/benoit/Documents/C\C++/Hello"
BacsSlash seems suspicious, so I turned it to a minus, so here my new path: "/home/benoit/Documents/C-C++/Hello".

And abracadabra, file opening works perfectly now :)
It official: C:B don't like backslashes !!!!!!!

2)
nevertheless, I ran C:B from a console with -d and -v (with faulty file path) and re-try issue.
I had no debug message on console screen, nor I found log file. Do you know where to find it (them) ?

ANYWAY

many thanks to all for your precious help

Jenna:
-v pops up a window for some special problems, -d add a "Code::Blocks debug"-tab to "Logs & others".

thunderben:
Thanks Jens.

I attached a file with a copy/paste of "code:blocks" and "code:blocks debug" tabs.

Have a nice reading ;)

Jenna:
I see the issue here too.
The problem is, that the backslash is an allowed character in Unix/Linux filenames, but space seperator in windows.
C::B converts all backslashes in filenames to "normal" forward slashes on save of the projectfile.
That can be called a bug on Linux, but I don't know if a fix is worth the work.

Using charactares, that are only allowed on one platform, lead to problems problems for cross-platform developping and a fix might introduce new bugs.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version