Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Mac OS » Log file
Log file [message #53591] Tue, 14 April 2020 12:26 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
Hi,

Theide in Mac OSX Catalina (I don't know if the problem exists also on other versions) doesn't create
the log file.
I tried with DLOG and RLOG, but nothing there.
It's a bug, or I'm doing something wrong ?

Ciao

Massimo
Re: Log file [message #53592 is a reply to message #53591] Tue, 14 April 2020 12:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12847
Registered: November 2005
Ultimate Member
mdelfede wrote on Tue, 14 April 2020 12:26
Hi,

Theide in Mac OSX Catalina (I don't know if the problem exists also on other versions) doesn't create
the log file.
I tried with DLOG and RLOG, but nothing there.
It's a bug, or I'm doing something wrong ?

Ciao

Massimo


I guess you probably missed the last discussion about .config, .cache and sandboxing.

Long story short, if you are using Alt+L, rebuild theide.

Mirek
Re: Log file [message #53601 is a reply to message #53592] Tue, 14 April 2020 15:43 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
mirek wrote on Tue, 14 April 2020 12:32


I guess you probably missed the last discussion about .config, .cache and sandboxing.



Yep, and I can't find it...

Quote:


Long story short, if you are using Alt+L,


???
Quote:

rebuild theide.

Mirek


Did a rebuild, but still no log file.
I've the theide.app inside Application folder. Where should the log file go ? Maybe it's e permisison problem here.

[Updated on: Tue, 14 April 2020 15:44]

Report message to a moderator

Re: Log file [message #53602 is a reply to message #53601] Tue, 14 April 2020 16:12 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12847
Registered: November 2005
Ultimate Member
mdelfede wrote on Tue, 14 April 2020 15:43
mirek wrote on Tue, 14 April 2020 12:32


I guess you probably missed the last discussion about .config, .cache and sandboxing.



Yep, and I can't find it...

Quote:


Long story short, if you are using Alt+L,


???
Quote:

rebuild theide.

Mirek


Did a rebuild, but still no log file.
I've the theide.app inside Application folder. Where should the log file go ? Maybe it's e permisison problem here.


Default (in this case) should be

~/.config/u++/{appname}/{appname}.log
Re: Log file [message #53603 is a reply to message #53601] Tue, 14 April 2020 16:12 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12847
Registered: November 2005
Ultimate Member
[quote title=mdelfede wrote on Tue, 14 April 2020 15:43]mirek wrote on Tue, 14 April 2020 12:32


I guess you probably missed the last discussion about .config, .cache and sandboxing.



Yep, and I can't find it...

Quote:


Long story short, if you are using Alt+L,


???

Alt+L in theide opens the default log location.
Re: Log file [message #53605 is a reply to message #53603] Tue, 14 April 2020 16:38 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
Ah, no, I'm using the menu (debug-view log) which is grayed.
The log file is where you said, so for me it's ok... probably theide doesn't find it
or there's a menu problem.

Thank you

Massimo
Re: Log file [message #53607 is a reply to message #53591] Tue, 14 April 2020 17:05 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
index.php?t=getfile&id=6045&private=0

Here is the screenshot. The file is where you said, but the menu stay grayed (and the CTRL-L doesn't work either)
Re: Log file [message #53613 is a reply to message #53607] Wed, 15 April 2020 13:42 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12847
Registered: November 2005
Ultimate Member
Sorry for Alt/Ctrl confusion, I have those keys swapped on Mac so that I have consistent behaviour over all platforms, so yes, it is really Ctrl+L.

I am really confused as to why it does not work for you. I have tested in theide.app in Applications, ~ and in sanboxed mode and it always worked.

The only explanation is that there is for some reason .config dir in Applications with some specific rights that disallow theide.app to write there....

Can you try to copy theide.app to ~ and try from there?

Mirek
Re: Log file [message #53617 is a reply to message #53613] Wed, 15 April 2020 15:33 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1264
Registered: September 2007
Senior Contributor
No, the log file IS there, where you pointed. The only problem is the grayed menu item.
Re: Log file [message #53618 is a reply to message #53617] Wed, 15 April 2020 15:44 Go to previous message
mirek is currently offline  mirek
Messages: 12847
Registered: November 2005
Ultimate Member
mdelfede wrote on Wed, 15 April 2020 15:33
No, the log file IS there, where you pointed. The only problem is the grayed menu item.


OK, where is the binary of program that produces the makefile?

The most important function that probably is causing troubles here is

String Ide::GetTargetLogPath()
{
	if(target.GetCount() == 0)
		return Null;
#ifdef PLATFORM_WIN32
	return ForceExt(target, ".log");
#else
	String title = GetFileTitle(target);
	String pp;
	String h = GetFileFolder(target);
	while(h.GetCount() > 1 && DirectoryExists(h)) {
		String p = AppendFileName(h, ".config");
		FindFile ff(p);
		if(ff && ff.IsFolder() && ff.CanWrite()) {
			pp = p;
			break;
		}
		h = GetFileFolder(h);
	}
	if(IsNull(pp))
		pp = GetEnv("XDG_CONFIG_HOME");
	if(IsNull(pp) || !DirectoryExists(pp))
		pp = GetHomeDirFile(".config");
	pp << "/u++/" << title << '/' << title << ".log";
	return FileExists(pp) ? pp : GetHomeDirFile(".upp/" + title + "/" + title + ".log");
#endif
}


Maybe putting some logs (now that you know where to look for them) here would help to identify the cause...

Mirek
Previous Topic: missing libmysqlclient.dylib [SOLVED]
Next Topic: reference/ConsoleDraw: problem with linking
Goto Forum:
  


Current Time: Fri Oct 30 21:25:39 CET 2020

Total time taken to generate the page: 0.01787 seconds