Console plugin environment variable issue
Submitted by
SpiceWare on
Friday, 3 October, 2014 - 17:09
I've been using jEdit for Atari 2600 homebrew development since 2006. Spurred on by a fellow homebrewer, I recent delved into the plugins to figure out how to compile and run code from jEdit. I got it mostly working, though I ran into a problem with the environment variables. To figure out what was going on, I replaced my Custom Command for the Interpteter with an echo command and did some tests:
echo $f
/Users/darrellspice/Projects/Atari/Draconian/draconian.asm
echo $d
/Users/darrellspice/Projects/Atari/Draconian
echo $n
draconian.asm
echo $c
draconian
I know I can use multiple environment variables per command because my custom compile command works. The following compiles my source code (draconian.asm) and creates three output files(draconian.sym, draconian.lst and draconian.bin):
dasm $n -f3 -v0 -s$c.sym -l$c.lst -o$c.bin
For the interpreter step I needed to use the full path to the bin file, which is the source file with the extension .asm replaced with .bin. I thought that could be accomplished by $d/$c.bin but it fails to work.
echo $d/$c.bin
/Users/darrellspice/Projects/Atari/Draconian/.bin
The results I was expecting were:
/Users/darrellspice/Projects/Atari/Draconian/draconian.bin
So for some reason the second environment variable is being ignored. Any ideas? About jEdit shows:
jEdit 5.2pre1 server-background mode, using Oracle Corporation Java 1.7.0_67
In case you're wondering, Draconian is a port of Bosconian for the 2600. You can read about it, and even download a WIP ROM to run in Stella, over at AtariAge:
http://atariage.com/forums/topic/225044-draconian-2600/
http://stella.sourceforge.net
Thanks!
partially case-sensitive mode file?
Submitted by
SpiceWare on
Saturday, 4 October, 2014 - 18:22
When writing code for the Atari 2600 I use the compiler dasm.
With dasm, the opcodes are case-insensitive so LDA can be written as LDA, lda, Lda, etc. As such, I've set the mode file to use <RULES IGNORE_CASE="TRUE">.
I've configured the mode file so the 2600's registers such as GRP0, which holds sprite0's shape for the current scanline*, get syntax highlighted. However, dasm is case-sensitive when it comes to variable names. As such, if I type grp0 into my source code the compile will fail.
As such, I'd like to be able to make some of the keywords case-sensitive even though most of them are not. Can this be done with jEdit? My current mode file, assembly-6502, can be found here. I'm planning to do an update soon and will be renaming it Atari 2600 Assembly as the mode file's not really for generic 6502 assembly language.
* Yep, just the current scanline. When the Atari 2600 was developed memory was extremely expensive, so much so that the 2600 only contains 128 bytes of RAM. So TIA, the video chip, was designed to be scanline based. This means the registers in TIA only contain enough information to draw a single scanline, so your code must update TIA's registers on each and every scanline in order to draw the screen the player sees.
Jedit doesn't find my new Edit mode (SASS).
Submitted by
kosmos890 on
Thursday, 23 October, 2014 - 16:04
I am a linux user and Jedit finds my Edit mode if only I run it as root.
I downloaded sass.xml from
here and I put it into /usr/share/jedit/modes directory.
I add the node <MODE NAME="sass" FILE="sass.xml" FILE_NAME_GLOB="*.sass"/> into the file "catalog" inside the same folder.
I did the same into the /home/<user>/.jedit directory.
All plugins into this directory (user directory) works.
Select_Find_Next.bsh - a BeanShell macro script to multi-select next match. (Select_Find_Next.bsh v1.0 by AhLeung Cheng)
Submitted by
ahlearn on
Saturday, 6 December, 2014 - 21:58
Updated on 12/21/2014 - 07:05
Downloads: 2119
Select_Word.bsh v1.0 by AhLeung Cheng
Submitted by
ahlearn on
Sunday, 21 December, 2014 - 07:01
Replace the built-in textArea.selectWord() which may select non-word characters even if there is a word on the left of the caret
Select contents in between parentheses (excluding parentheses) (Select_Contents_in_Parentheses.bsh v1.0 by AhLeung Cheng)
Submitted by
ahlearn on
Sunday, 21 December, 2014 - 08:51
Updated on 12/21/2014 - 08:51
Downloads: 3539
Ubuntu Trusty won't let me set Jedit as a default editor
Submitted by
jeditcdnguy on
Saturday, 27 December, 2014 - 21:14
It doesn't show up as an application in either 'open with'->'other Applications'
or
'properties->'open with'
Also, I can't browse for it.
Any ideas, please?
Select_All_or_Lines.bsh v1.0 by AhLeung Cheng
Submitted by
ahlearn on
Saturday, 24 January, 2015 - 19:43
If no selection, then select all.
Otherwise, select the whole lines for all selected lines.
Open_Copied_Path.bsh v1.0 by AhLeung Cheng
Submitted by
ahlearn on
Saturday, 24 January, 2015 - 19:47
Open the file with its path copied to the clipboard
Select line (Select_Line.bsh v1.0 by AhLeung Cheng)
Submitted by
ahlearn on
Saturday, 24 January, 2015 - 22:10
Select line - Repeat to select next lines.
Suggested shortcut: C+l
Mark Lines in Find & Replace
Submitted by
CJreige on
Thursday, 5 February, 2015 - 21:06
I would like request a useful feature that I've seen in other editors.
In the Search and Replace dialogue, I'd like to have a 'Mark Lines' button along with the Find, Replace, Replace All, buttons. This feature would mark the lines for all occurrences of the 'Search for' expression.
Thanks
Quick Multi Select
Submitted by
CJreige on
Thursday, 5 February, 2015 - 21:17
Here is a feature that I've seen in another editor that's really useful. I would like to add a feature to the multi-selection that makes it quick to select all the instances of a particular word. Now, a double-click on a word selects that word. I want to be able to CTRL-DoubleClick to multi-select all instances of that word.
This would be a quick way to replace all instances of the chosen word: CTRL-DoubleClick then start typing to replace them all at the same time.
Retina display problem with Mac OS X package
Submitted by
Gregory on
Sunday, 22 February, 2015 - 19:18
I have a problem with getting fonts to display smoothly on the Retina screen on my Macbook Pro. When I install jEdit (currently 5.2.0) using the Mac OS package, the installation goes fine, but when I then launch the application by clicking on jEdit.app (or, within the package on Contents/MacOS/jedit), the fonts are rendered with terrible anti-aliasing problems. These are unaffected by changes to the relevant Global Options.
However, when I launch the application by clicking on the jedit.jar, found inside the package at Contents/Java/jedit.jar), font resolution is perfect. But of course, launching the application this way loses the benefits of having jEdit packaged like a native Mac app. I don't understand why these two methods give different results where resolution is concerned.
I'm not sure how the Mac package is compiled, so I can't fix this myself. Any suggestions of what I can do or who I might contact?
Thanks,
Gregory
Hyper-search all .txt files in home dir (HyperSearch_in_Home_Dir.bsh v1 by AhLeung Cheng)
Submitted by
ahlearn on
Sunday, 12 April, 2015 - 17:41
Updated on 04/12/2015 - 17:41
Downloads: 3284
jEdit 5.2.0 is out!
Submitted by
Vampire on
Thursday, 16 April, 2015 - 02:12
Where/How to submit bug reports?
Submitted by
dsmith on
Friday, 15 May, 2015 - 15:07
OK, so the subtitle comment on the forum says that bug reports don't belong here, but the SourceForge bug tracker won't let me submit a bug report without being authorised by the project admin. So, how do I submit a bug report?
copy and paste
Submitted by
jhuang22 on
Sunday, 14 June, 2015 - 09:25
I have used jEdit to create web code file in HTML for several years. I met this problem recently and do not know why. When I copy a paragraph and try to paste in jEdit, the whole paragraph become one long line. I paste the same thing to other text editor like Microsoft word or open office writer, it do not have this problem. I do not have this problem in jEdit before, I even can not remember when this problem started.
Please help.
Caret move to first/last visible line bug?
Submitted by
jhaefner on
Wednesday, 17 June, 2015 - 05:26
Hi,
I use ubuntu 14.04 lts, jEdit version 5.1
$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu0.14.04.2)
OpenJDK Server VM (build 24.79-b02, mixed mode)
I have strange behavior of caret moves near the top and bottom of visible lines. Specifically, "go to first visible line" goes to the fourth from the top, and "go to last visible line" goes to the 4th from bottom. Further, "go to next line down", when within the top 4 visible lines jumps to the 4th line. It works correctly when the caret is positioned w/in the middleof the text.
Any one else see this?
Sidekick parser
Submitted by
zslevi on
Monday, 29 June, 2015 - 14:01
How can I create a new Sidekick parser? Can I do it from Beanshell, or does it have to be Java?
This is all the docs I have found:
http://plugins.jedit.org/plugindoc/SideKick/#implement-sidekick-parser
But most of the links don't work.
FTP plugin not displaying remote files, error message
I have used the FTP plugin for years to work on files remotely and now I get this error when I try to connect:
java.lang.NoSuchMethodError: com.jcraft.jsch.Session.setConfig(Ljava/lang/String;Ljava/lang/String;)V
at ftp.SFtpConnection.(SFtpConnection.java:136)
at ftp.ConnectionManager.getConnection(ConnectionManager.java:524)
at ftp.FtpVFS.getConnection(FtpVFS.java:529)
at ftp.FtpVFS._canonPath(FtpVFS.java:199)
at org.gjt.sp.jedit.browser.ListDirectoryBrowserTask._run(ListDirectoryBrowserTask.java:73)
at org.gjt.sp.util.Task.run(Task.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
I am using Jedit 5.2 and jdk 8.51. All of this started happening after I upgraded my Mac to Yosemite and had to install Java 6 to keep an older version of Photoshop running. I uninstalled Java 6 after I upgraded my version of photoshop and installed Java 8, but the FTP plugin in Jedit has never worked the same since then and I am going crazy.
Please help!
Thanks
Kristen