in reply to Eclipse IDE with add on EPIC; Errors on the code

You haven't told us what kind of error is reported.

Does the file compile with perl -c ?

It's not uncommon that syntax parsing is causing hiccups. Normally this goes away after further edits.

You could also pipe your file thru perltidy and see if the problem persists.

Otherwise... Not enough data to tell what's happening, if the IDE is causing the problem it might be related to confusion about your regexes.

I'm using Emacs, the "mother of all IDEs" and it runs well on my phone.

But like VIM I don't recommend it to people who don't wanna invest time in learning and configuration.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Eclipse IDE with add on EPIC; Errors on the code
by karlgoethebier (Abbot) on Nov 19, 2024 at 16:46 UTC

    … Emacs, the "mother of all IDEs"…

    I use emacs since 1997 or 1998. To be precise: I started with XEmacs on Windows NT and emacs-nox on SuSE-Linux. That was a big shock for my colleagues who used MacOS 9 - for them, BBEdit was the greatest thing since sliced bread. In between I've had forays into Eclipse (free and commercial versions) and IntelliJ, as well as various others whose names I've forgotten or blocked out. The most amazing experience I recently had with emacs was with rust with rustic, rust-analyzer and company. A real IDE - in blink-shell with mosh on my IPad. I use a Magic Keyboard - without a real keyboard I think emacs on the IPad is hell. So, now I'm trying to imagine how you do it on the iPhone 🤪😎. Not a bad performance, I'd say.

      Not iPhone but Android+Termux and only short code examples.

      Customization is key.

      Edit

      PS: I'm using Emacs since my second semester at university.

      There are for sure better and more intuitive IDEs, but they come and go.

      Emacs runs everywhere and stays.

      I customized it to my needs, it's actually not an IDE but an IDE construction set.

      Update

      In hindsight, modal editing in vi style might be more appropriate for mobile keyboards. 🤔

      So I will probably learn it, and take the extra step to activate vim emulation inside Emacs ;)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery

Re^2: Eclipse IDE with add on EPIC; Errors on the code
by jmClifford (Beadle) on Nov 22, 2024 at 07:41 UTC

    Hi. Thanks. There is so much information with this site. I think I am responding mainly to soonix and LanX.

    What happens if you add another Newline before the "}"?

    I tried this and the Line X (previous email) error went away but the Line X plus 300 still remained. I got curious about the other white space type of characters. Here is a presentation from the offending code/comment some of which I can remove, and have no errors from Eclipse (and EPIC).

    ; # print $result; } This is a ascii dump of the above (compliments of Notepad++) 3B0D0A0D0A09092320207072696E7420 24726573756C743B09090D0A097D The ascii characters 3B => ; 0D => CR 0A => LF 09 => Tab 23 => # 20 => space 70 => p 74 => t 7D => }

    I found nothing suspicious with the above. Oddly there are 2 tabs after comment "print $result;"

    Does the file compile with perl -c ?

    Yes it does.

    C:\u\Perl_Eclipse_IDE\OBD2_control>perl -c OBD2_control_test_02.pl OBD2_control_test_02.pl syntax OK C:\u\Perl_Eclipse_IDE\OBD2_control>

    This seems to suggest my problems are an issue with Eclipse (and EPIC). I feel I am up for a learning curve with EMACs. It difficult to appreciate an editor having the function of an IDE. Are there any first suggestions for someone running perl on windoms 10 ?? (where best to Emac download from)

    Regards JC......

      If you go the emacs way, make sure to set cperl-mode as standard when opening .pl files.

      Otherwise consider VSCode, Komodo IDE, and CamelCade.

      • Komodo IDE should be free to use now, maybe ask Grandfather
      • CamelCade ... no idea, ask StevieB
      • VsCode, no personal experience. It's free and comes with multiple Perl related LSP plugins, If they play well on windows is another question,
      • regarding Emacs, haj is the maintainer of cperl-mode now.
      Maybe have a look at my IDE criteria thread or the video of my talk and ask yourself which features are essential for you.

      Hope this helps! :)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      see Wikisyntax for the Monastery