Neil Hodgson | 1 May 2012 01:11

Re: Scite Scintilla window updates bad on gtk3

zetah:

> When scrolling with mouse (either fast or slow, it doesn't matter) editor window blinks for relatively
long periods. It flickers too much.
> Is there any workaround for this behaviour.

   Video performance is going to depend on your video drivers and versions of various components including
GTK+. My Xubuntu 12.04 installation performs similarly to the previous Xubuntu.

> BTW, FYI (gtk-vector-screenshot)
https://launchpad.net/ubuntu/quantal/+package/gtk-vector-screenshot doesn't work with SciTE
(gtk3) even more it freezes the app. I tried it with other applications without issue so far

   I won't be working on this.

> Also I'd like to know if status of gtk3 can be described as experimental and preferred way of compiling
SciTE would be without using gtk3 switch?

   No, GTK+ 3 has been working quite well. I do not anticipate Linux or GTK+ releases by building with
pre-release versions so there will be some lag between a new release of GTK+ and a supporting release of
Scintilla. There would be some benefit to building and testing against GTK+ pre-releases but I don't have
the time to do this.

   I'm particularly displeased by GTK+ sending smooth scroll events to Scintilla when it hasn't been asked
for them by setting the GDK_SMOOTH_SCROLL_MASK.

   Neil

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
(Continue reading)

zetah | 1 May 2012 01:56
Picon

Re: Scite Scintilla window updates bad on gtk3

On Tuesday, May 1, 2012 1:11:49 AM UTC+2, Neil Hodgson wrote:

> When scrolling with mouse (either fast or slow, it doesn't matter) editor window blinks for relatively long periods. It flickers too much.
> Is there any workaround for this behaviour.

   Video performance is going to depend on your video drivers and versions of various components including GTK+. My Xubuntu 12.04 installation performs similarly to the previous Xubuntu.

Well, I compared it with GEdit, which scrolls really slick (also others like Nautilus or other non-editor applications, where blinking can be expected), but as we know where it comes from we can't expect SciTE to do same. I use default Ubuntu version with default WM and everything by default, so I suspect many Ubuntus do the same, although less will urge for SciTE source like me :)



> Also I'd like to know if status of gtk3 can be described as experimental and preferred way of compiling SciTE would be without using gtk3 switch?

   No, GTK+ 3 has been working quite well. I do not anticipate Linux or GTK+ releases by building with pre-release versions so there will be some lag between a new release of GTK+ and a supporting release of Scintilla. There would be some benefit to building and testing against GTK+ pre-releases but I don't have the time to do this.

   I'm particularly displeased by GTK+ sending smooth scroll events to Scintilla when it hasn't been asked for them by setting the GDK_SMOOTH_SCROLL_MASK.

Thanks for your reply, much appreciated, as I wondered about this from the start

Cheers
 

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scite-interest/-/En5_xTqX_kYJ.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
Picon

Re: Scite-Mac OSX 3.1 and pdflatex

Hi,
I am sorry to continue this thread as I can't solve my problem yet. Hopefully this isn't too big of a deal. I
added ~/.bashrc to the Allow Access Dialog as well as the top directory that would host any and all .tex
files I would work. Now I am getting this message.

>pdflatex oral_exam_cddesjardins.tex
lstat(./pdflatex) failed ...
./pdflatex: No such file or directory
warning: kpathsea: configuration file texmf.cnf not found in these directories: $SELFAUTOLOC:$SELFAUTODIR:$SELFAUTOPARENT:$SELFAUTOLOC/share/texmf-local/web2c:$SELFAUTODIR/share/texmf-local/web2c:$SELFAUTOPARENT/share/texmf-local/web2c:$SELFAUTOLOC/texmf-local/web2c:$SELFAUTODIR/texmf-local/web2c:$SELFAUTOPARENT/texmf-local/web2c:$SELFAUTOLOC/share/texmf/web2c:$SELFAUTODIR/share/texmf/web2c:$SELFAUTOPARENT/share/texmf/web2c:$SELFAUTOLOC/texmf/web2c:$SELFAUTODIR/texmf/web2c:$SELFAUTOPARENT/texmf/web2c.
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)

kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: No such file or directory
I can't find the format file `pdflatex.fmt'!

All I add to ~/.bashrc was 
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Applications/Mplus:

Any continued help and I would be very grateful.

Also, any chance of adding a BibTeX entry in the Tools Menu by default for .tex files? Seems like it would be
useful. I have done this for myself using the Help manual.

Chris

On Apr 30, 2012, at 5:43 PM, Neil Hodgson wrote:

> Christopher David Desjardins:
> 
>>> pdflatex oral_exam_cddesjardins.tex
>> shell-init: error retrieving current directory: getcwd: cannot access parent directories:
Operation not permitted
> 
>   You have probably opened the file oral_exam_cddesjardins.tex in SciTE. This has provided SciTE with
permission to read and write just the file oral_exam_cddesjardins.tex. It does not have any permissions
for the directory that file is in. A consequence of this is that SciTE (and programs it runs) can set the
current directory to that directory but then cannot ask what the name of that directory is (getcwd). This
can be fixed by allowing access to that  that directory with the Allow Access dialog.
> 
>> 
>> /bin/bash: pdflatex: command not found
>>> Exit code: 0
> 
>   You should check the path in the output pane and ensure it is the same as in Terminal. If not set the path in
~/.bashrc. Ensure ~/.bashrc is in Allow Access.
> 
>   Neil
> 
> -- 
> You received this message because you are subscribed to the Google Groups "scite-interest" group.
> To post to this group, send email to scite-interest <at> googlegroups.com.
> To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
> 

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Neil Hodgson | 1 May 2012 16:42

Re: Scite-Mac OSX 3.1 and pdflatex

Christopher David Desjardins:

> warning: kpathsea: configuration file texmf.cnf not found in these directories:
...
> kpathsea: Running mktexfmt pdflatex.fmt
> mktexfmt: No such file or directory
> I can't find the format file `pdflatex.fmt'!

   OK, I think it wants the 3 files mentioned (texmf.cnf, mktexfmt, and pdflatex.fmt) added to Allow Access.
Find them, either using the command line 'find' command from a Terminal or the search box in a Finder window
and then add their directories. There's probably a parent directory containing all the TeX stuff and
allowing access to it will make all of these visible.

> Also, any chance of adding a BibTeX entry in the Tools Menu by default for .tex files? Seems like it would be
useful. I have done this for myself using the Help manual.

   All the existing commands and settings come from TeX users since these aren't areas that I am familiar with.
If someone contributes reasonable settings for BibTeX, they can be distributed.

   Neil

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Picon

SciTE-Mac OSX 3.1 and pdflatex SOLVED, BibTeX, Sweave.sh

OK, I finally solved the problem. In case anyone else has the issue here is what I did.

First, I added everything from echo $PATH to ~/.bashrc 

PATH=stuff:from:echo$PATH
export PATH

Second, I added the following to "Allow Access"
~/.bashrc
/Where/I/Store/My/TeX/Files
/usr/local/texlive

And now I have it working.

RE: BibTeX here's what I got in SciTEUser.properties

command.name.2.$(file.patterns.tex)=BibTeX
command.name.2.$(file.patterns.latex)=BibTeX
command.name.2.$(file.patterns.context)=BibTeX
command.2.$(file.patterns.tex)=bibtex $(FileName)
command.2.$(file.patterns.latex)=bibtex $(FileName)
command.2.$(file.patterns.context)=bibtex $(FileName)

Finally, if someone is using Sweave with SciTE here's how I got the Sweave.sh script to work

1) Allow Access to /tmp

2) Add the following to SciTEUser.properties
	file.patterns.r=*.R;*.rsource;*.S;*.r;*.Rnw;
	command.name.3.$(file.patterns.r)=Sweave
	command.3.$(file.patterns.r)=Sweave.sh -old="open -a Skim.app" $(FileNameExt)

3) Add the location of Sweave.sh to ~/.bashrc

You should be good to go after this.

If I take the time to create a lexer for .Rnw files could this potentially get added? These are .tex files that
include R code. I am not sure the best way to do this and if anyone already has a lexer that would be greatly appreciated.

Still haven't figured out spellchecking but I'll keep looking ;)

Cheers,
Chris

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Neil Hodgson | 2 May 2012 01:58

Re: SciTE-Mac OSX 3.1 and pdflatex SOLVED, BibTeX, Sweave.sh

Christopher David Desjardins:

OK, I finally solved the problem. In case anyone else has the issue here is what I did.

First, I added everything from echo $PATH to ~/.bashrc

PATH=stuff:from:echo$PATH
export PATH

Second, I added the following to "Allow Access"
~/.bashrc
/Where/I/Store/My/TeX/Files
/usr/local/texlive

   One of the reasons for Sandbox.html was so that application-specific instructions could be published. Updated http://www.scintilla.org/Sandbox.html with a TeX section.

   The only other support question I have received for the OS X 3.1.0 release was about pdflatex too.

If I take the time to create a lexer for .Rnw files could this potentially get added?

   Yes, a well-written lexer could be added.

   Neil

--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
Picon

SciTE Mac OS X 3.1.0 and Spotlight

One other thing that I've noticed, though it's trivial to me at least, is that Spotlight doesn't seem to show
SciTE if I search for it there. It did with 3.0.4. Maybe it's an issue with just my laptop?
Chris

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Neil Hodgson | 2 May 2012 05:57

Re: SciTE Mac OS X 3.1.0 and Spotlight

Christopher David Desjardins:

> One other thing that I've noticed, though it's trivial to me at least, is that Spotlight doesn't seem to
show SciTE if I search for it there. It did with 3.0.4. Maybe it's an issue with just my laptop?

    Spotlight doesn't search some of the places it used to. Files in ~/Library don't seem to show up.

   Neil

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

Martin Panter | 2 May 2012 15:18
Picon

Shbang not detected after loading session and switching tab

Hi

This issue has been bugging me for a while. It was happening in 3.0.2
and 3.0.3 Arch Linux packages and still in a 3.1.0 package I compiled
myself, but I think it may be a regression because I’m pretty sure it
used to work better.

I have Scite set up to automatically load the previous tabs (session)
when it starts. When it has loaded the tabs, the initial selected tab
is a file with an extension that selects the syntax highlighting (e.g.
SciTEIO.cxx). When I change to a tab that is meant to be using a
shebang to select the syntax highlighting language (e.g. filename
"filefs" beginning with "#! /usr/bin/env python2"; I have set up
shbang.python2=py), there is no highlighting. However opening the file
manually rather than via session loading automatically selects Python
highlighting, and it also works if the shebang file is initially
selected when Scite loads (rather than switching tabs).

I did a bit of digging and came up with the attached stab-in-the-dark
change which seems to fix the issue for me. There is a "language"
variable which was still holding its value (e.g. "cpp") from the
previous tab when SciTEBase::CompleteOpen() is invoked, which means
that it doesn’t bother calling DiscoverLanguage() to read the shebang
line. It looks like "language" is meant to be initialised in the
ReadProperties() function, so I just moved the call up so
ReadProperties() gets called before DiscoverLanguage().

The code is a bit too complicated for me to say, without spending ages
studying it, if it’s a good fix and doesn’t break anything. I would
appreciate if someone with more knowledge of the code could take a
look at this issue and merge my fix or find a better one.

Thanks
Martin

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.

diff -rup o/scite/src/SciTEIO.cxx src/scite/src/SciTEIO.cxx
--- o/scite/src/SciTEIO.cxx	2012-04-19 23:14:23.000000000 +0000
+++ src/scite/src/SciTEIO.cxx	2012-05-02 12:41:29.000000000 +0000
 <at>  <at>  -367,6 +367,9  <at>  <at>  void SciTEBase::PerformDeferredTasks() {

 void SciTEBase::CompleteOpen(OpenCompletion oc) {
 	wEditor.Call(SCI_SETREADONLY, isReadOnly);
+	if (oc != ocSynchronous) {
+		ReadProperties();
+	}
 	if (language == "") {
 		SString languageOverride = DiscoverLanguage();
 		if (languageOverride.length()) {
 <at>  <at>  -378,7 +381,6  <at>  <at>  void SciTEBase::CompleteOpen(OpenComplet
 	}

 	if (oc != ocSynchronous) {
-		ReadProperties();
 		SetIndentSettings();
 		SetEol();
 		UpdateBuffersCurrent();
Picon

Re: SciTE Mac OS X 3.1.0 and Spotlight

So this isn't a bug? It seems like SciTE should show up when searched for in Spotlight. If I search for Safari,
Chrome, Mail, etc., that are in Applications folder they show up. SciTE is also in the Applications
folder. It just seems strange.
Chris

On May 1, 2012, at 10:57 PM, Neil Hodgson wrote:

> Christopher David Desjardins:
> 
>> One other thing that I've noticed, though it's trivial to me at least, is that Spotlight doesn't seem to
show SciTE if I search for it there. It did with 3.0.4. Maybe it's an issue with just my laptop?
> 
>    Spotlight doesn't search some of the places it used to. Files in ~/Library don't seem to show up.
> 
>   Neil
> 
> -- 
> You received this message because you are subscribed to the Google Groups "scite-interest" group.
> To post to this group, send email to scite-interest <at> googlegroups.com.
> To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.
> 

--

-- 
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com.
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en.


Gmane