Menu

doesn't work

Help
2004-05-24
2013-03-22
1 2 > >> (Page 1 of 2)
  • Rubén Osorio P.

    i downloaded it and copied to the jars directory, but nothing happened. I tried calling it from the plugins menu and using a shortcut key, but neither worked.
    Do you have the sources? maybe would be easier to follow the code

    thanks

    Ruben

     
    • Anonymous

      Anonymous - 2004-06-27

      Can't make it work either. Is there a shortcut to pop up the list?

       
    • komi

      komi - 2004-07-15

      same problem!
      i have jedit 4.1final.
      the menu entry is here, but it doesn't work

       
    • matteo galiazzo

      matteo galiazzo - 2004-07-20

      Take a look at the activity log:
      Utilities -> troubleshooting -> Activity log
      while calling the pop up and post it here.

      In the Global options pane a section called PhpCompletion Option must appear with all the plugin configuration options. Isn't?

      And what OS are you using? (windows | linux | others)

       
    • komi

      komi - 2004-07-22

      i use fedora core 2
      in the activity log nothing changes while i calling the popup( i tried the shortcut and the menu item to call the popup)
      the options pane is here, i have all item checked

      maybe this few lines from the activity log help you:
      [message] Log: java.version=1.4.2_05
      [message] Log: java.vm.version=1.4.2_05-b04
      [message] Log: java.runtime.version=1.4.2_05-b04
      [message] Log: java.vendor=Sun Microsystems Inc.
      [message] Log: java.compiler=null
      [message] Log: os.name=Linux
      [message] Log: os.version=2.6.5-1.358
      [message] Log: os.arch=i386
      ...
      [debug] jEdit: Scanning JAR file: /home/komi/.jedit/jars/phpCompletion.jar
      ...
      [notice] JARClassLoader: Starting plugin Php Completion (version 0.1)
      [debug] EditPlugin$JAR: -- startup took 0 milliseconds

       
    • matteo galiazzo

      matteo galiazzo - 2004-07-25

      Um, in the activity logs is there no exceptions?

      Um, are you editing a php file, inside a php section? I mean inside a <?  ?> section?

      In my installation the pop up pops up even in a totally new blank file, but some object parsed elements writes in the log stuff like that:

      [notice] AWT-EventQueue-0: judgeContext: prefix: $this->
      [notice] AWT-EventQueue-0: judgeContext after replace: prefix: $this->

      You must write a little php object, with some field, then create an instance and call the completer after having typed the ->, and the pop up must show the object fields and write in the logs.
      If you are interested I can e-mail you a file to test this, or a more verbose jar to find out what happen to your installation

       
      • komi

        komi - 2004-07-25

        hi again!

        ok now i have a change in the activity log.
        but only when i when i want to use the -> operator on an object
        when i want to complete a variable or a function, nothing changes

        i get this:
        [notice] AWT-EventQueue-0: instanceName: $props

        but thers is no popup

         
    • komi

      komi - 2004-07-25

      PS:
      if you have IRC, you can meet me at xia.irc.xwars.de in #icd
      my nick is always something like komi

       
    • matteo galiazzo

      matteo galiazzo - 2004-07-28

      sorry I never used IRC.

      I think the only way to find out what happen is to run a more verbose jar.
      Let me know if you are interested

       
    • komi

      komi - 2004-07-28

      shure, I'm interested!
      send it to komi@gmx.at

       
    • matteo galiazzo

      matteo galiazzo - 2004-07-31

      I made a more verbose jar
      You can download from
      http://www.maltesenarrazioni.it/phpCompletion-0.0.1-verbose.zip

      and then post me what you read in the logs
      my mail is matteo@maltesenarrazioni.it

       
      • Anonymous

        Anonymous - 2004-08-01

        Hello.

        I tried completion for php source like this
        <?
        class foo {
            function foo(){
               
            }
            function bar(){
               
            }
        }
        $f = new foo();
        $f->
        ?>

        After "$f->", I expect popup like the intellisense which contains foo(), bar().
        Nothing happens is my misunderstanding?

        Activity log shows as below.

        [debug] ActionSet: Loading actions from jeditresource:/phpCompletion-0.0.1-verbose.jar!/actions.xml
        [notice] AWT-EventQueue-0: PhoCompletionPlugin:showPrompt() - START
        [notice] AWT-EventQueue-0: PhpCompletionPlugin:getListBuilder():text=<?
        [notice] AWT-EventQueue-0: class foo {
        [notice] AWT-EventQueue-0:  function foo(){
        [notice] AWT-EventQueue-0:  
        [notice] AWT-EventQueue-0:  }
        [notice] AWT-EventQueue-0:  function bar(){
        [notice] AWT-EventQueue-0:  
        [notice] AWT-EventQueue-0:  }
        [notice] AWT-EventQueue-0: }
        [notice] AWT-EventQueue-0: $f = new foo();
        [notice] AWT-EventQueue-0: $f->
        [notice] AWT-EventQueue-0: ?>
        [notice] AWT-EventQueue-0: PhpCompletionPlugin:getListBuilder():caretPos=83
        [notice] AWT-EventQueue-0: PhpCompletionPlugin:getListBuilder():prefix=foo();
        [notice] AWT-EventQueue-0: $f->
        [notice] AWT-EventQueue-0: judgeContext: prefix: foo();
        [notice] AWT-EventQueue-0: $f->
        [notice] AWT-EventQueue-0: judgeContext after replace: prefix: foo();
        [notice] AWT-EventQueue-0: $f->
        [notice] AWT-EventQueue-0: instanceName: foo();
        [notice] AWT-EventQueue-0: $f
        [notice] AWT-EventQueue-0: PhoCompletionPlugin:showPrompt() - listBuilder: it.eilart.jedit.completion.php.PhpListBuilder@ed662d
        [notice] AWT-EventQueue-0: PhoCompletionPlugin:showPrompt() - END

        Sincerely.

        Win2KPro SP4
        jEdit 4.2 pre15
        JRE 1.5.0 beta2

         
    • matteo galiazzo

      matteo galiazzo - 2004-08-02

      Thank to all.
      Now I have something to work upon.
      In a few day I'll try to release another version.

      For megalink:

      with more distances between the elements it works:

      <?

      class foo {

      function foo(){

      }
      function bar(){

      }

      }

      $f=new foo();
      $f->

      ?>

      So there's something wrong in the parser.I'll try to find out

       
    • matteo galiazzo

      matteo galiazzo - 2004-08-03

      I've found that the problem is the distance of the cursor from the end of the file.
      If you insert blank lines after the '$f->' the pop up pops up.

      So there's something wrong with the position marker in the parser, the parser thinks that the cursor is out of the file.

      I'll try to fix.
      Thanks to all again

       
    • matteo galiazzo

      matteo galiazzo - 2004-08-03

      I can't upload the 0.0.8 'cos sourceforge is full
      You can download from http://www.maltesenarrazioni.it/phpCompletion-0.0.8.zip.
      It seem that this fix the problem, but maybe it enters new ones.

      let me know

       
      • MirLach

        MirLach - 2004-11-13

        I tried several versions of phpCompletion (phpCompletion-0.0.8 too), but no one works for me.
        nor classes, nor methods / functions, nor variables pop ups. I tried set many different keyboard shortcuts, blank lines, calling it from the plugins menu etc., but still it does not works for me. Nothing happens.

        I am using Windows 2000 Proffesional SP 4, jEdit 4.2 final and j2re1.4.2

        I don't understand Java, but if I could do something to help you with fixing it, I'll do it.

         
        • matteo galiazzo

          matteo galiazzo - 2004-11-15

          Thank you to you and all the people that tried my pluging and parteipate to this feed-back.
          I know that my plugin doesn't work in all installations, but at this time I havent' understood what's wrong, because in all my installation (two Slackware 9.1 and a Window Server 2003, with jEdit 4.1 final and 4.2 final) it works fine.
          The fact is that I haven't the time for a deep search. The only hope is that another java-developer with a non working installation take the issue in his hands and resolve the problem.
          Or maybe in some month I'll find the time.
          In the meantime if you want to send me the logs (Utilities/Troubleshooting/Activity Log) of the non working installations, maybe I'll have an illumination.

          Many thk to all

           
          • komi

            komi - 2004-11-15

            hi!

            to matteogaliazzo:
            dj_quip wrote:
            "I don't understand Java, but if I could do something to help you with fixing it, I'll do it."
            I'm not shure, but for me it sounds like he wants to use your plugin for writing java code. and i think this wouldn't work...

            Sorry, if I'm wrong...

             
            • matteo galiazzo

              matteo galiazzo - 2004-11-15

              I think you are wrong:
              The plugin is written in java, and java knowledge will help in debugging and understanding what's going on.

               
          • MirLach

            MirLach - 2004-11-16

            Today I tried clean instal of jEdit on my second PC. Just jEdit (with default plugin QuickNotepad) and phpCompletion 0.0.8 with same result - does not work.

            Activity Log:

            [debug] ActionSet: Loading actions from jeditresource:/phpCompletion-0.0.8.jar!/actions.xml
            [notice] AWT-EventQueue-0: judgeContext: prefix: ?php
            [notice] AWT-EventQueue-0: judgeContext after replace: prefix: ?php
            [debug] WorkThread: Running in work thread: [id=55,run=sidekick.SideKick$ParseRequest@727896]
            [debug] EditBus: SideKickUpdate[source=null]
            [notice] AWT-EventQueue-0: judgeContext: prefix: ?php
            [notice] AWT-EventQueue-0: array_
            [notice] AWT-EventQueue-0: judgeContext after replace: prefix: ?php
            [notice] AWT-EventQueue-0: array_
            [debug] WorkThread: Running in work thread: [id=57,run=sidekick.SideKick$ParseRequest@1fcc7a9]
            [debug] EditBus: SideKickUpdate[source=null]
            [debug] WorkThread: Running in work thread: [id=59,run=org.gjt.sp.jedit.buffer.BufferIORequest[type=AUTOSAVE,buffer=Untitled-1 (H:\www.quip.cz\www_root\work\vysivky\lib\core\)]]

            [notice] AWT-EventQueue-0: judgeContext: prefix: ?php
            [notice] AWT-EventQueue-0: mysql_
            [notice] AWT-EventQueue-0: judgeContext after replace: prefix: ?php
            [notice] AWT-EventQueue-0: mysql_

             
            • MirLach

              MirLach - 2004-12-30

              Now I found the one and only way, where phpCompletion plugin works (pops up)

              It works only on the same line as PHP open tag (<? or <?php).
              example:
              [comp] is place, where I hit the keyboard shortcut for phpCompletion plugin

              <?php mysql_q[comp]
              it results in
              <?php mysql_query(query,link_identifier,result_mode)

              <?php mysql_c[comp]
              example above gives me a popup

              But if I try the same with newline between PHP open tag and function name, nothing happens.

              example:
              <?php
              mysql_q[comp]

              it did nothing.

              <?php mysql_c
              ---------------- activity log -----------------
              [notice] AWT-EventQueue-0: judgeContext: prefix: mysql_c
              [notice] AWT-EventQueue-0: judgeContext after replace: prefix: mysql_c

              <?php
              mysql_c
              ---------------- activity log -----------------
              [notice] AWT-EventQueue-0: judgeContext: prefix: ?php
              [notice] AWT-EventQueue-0: mysql_c
              [notice] AWT-EventQueue-0: judgeContext after replace: prefix: ?php
              [notice] AWT-EventQueue-0: mysql_c

               
    • Oshima

      Oshima - 2004-09-06

      Heya,

      my browser says:  www.maltesenarrazioni.it can not be found :-(

       
    • Nemec

      Nemec - 2005-05-17

      I manged to isolate the problem. It seems that completion requires you to have atleast one " " (ie. space) before your object.

      That explains also why:
      <?php $class->
      works and why
      <?php
      $class
      or
      <?php
      (tab)$class
      doesn't.

       
    • matteo galiazzo

      matteo galiazzo - 2005-05-17

      Thanks to matti.
      I' working on 0.1.1, I hope to release it in a few days.
      There'll be also a new action:  jump to... the place where a class/method is defined.

       
    • Nemec

      Nemec - 2005-05-17

      Original was:
      for (String nn = view.getTextArea().getText(position, 1); !nn.equals(" ")  &&  !nn.equals(_EOL_)  && position > 0; nn = view.getTextArea().getText(--position, 1)) {

      Changed to:
      for (String nn = view.getTextArea().getText(position, 1);
          !nn.equals("\r") &&!nn.equals("\n")
          &&!nn.equals(" ") && !nn.equals("\t")
          && !nn.equals(_EOL_)
          && position > 0    ;
          nn = view.getTextArea().getText(--position, 1)
      ) {

      Btw. I couldn't wait so I fixed it myself. With this modification in PhpCompletion.java I can get it to work without any spaces or whatever before classname (if someone is so stupid to do that),

      The problem was quite easy once I found it, but you have to remember that you can't trust  !nn.equals(_EOL_) because buffers might have different line endings than users system. \n\r on win files, \n on linux files and so on.

      Nice to hear that progress is on the way. I have tried so many IDE's and editors in search for this kind of functionality. Some had it but were not as good as jEdit in everything else. So keep up the good work.

       
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.