pulse00 / Twig-Eclipse-Plugin

Eclipse plugin for the twig templating language.
twig.dubture.com
MIT License
107 stars 24 forks source link

PHPStructuredEditor Selection changed job encountered a problem #52

Closed francodacosta closed 12 years ago

francodacosta commented 12 years ago

Since the last update that I keep getting this error message when editing twig files

Here are the full details of the error popup message :

An internal error occurred during: "PHPStructuredEditor selection changed job". Invalid thread access

My eclipse installation details:

Eclipse EGit 1.3.0.201202151440-r org.eclipse.egit.feature.group Eclipse EGit Eclipse EGit Mylyn GitHub Feature 1.3.0.201202151440-r org.eclipse.mylyn.github.feature.feature.group Eclipse EGit Eclipse SDK 3.7.2.M20120208-0800 org.eclipse.sdk.ide null EGit Mylyn 1.3.0.201202151440-r org.eclipse.egit.mylyn.feature.group Eclipse EGit JavaScript Development Tools 1.3.2.v201201112313-7G78FZvFC7sRekSz-g-nAlz org.eclipse.wst.jsdt.feature.feature.group Eclipse Web Tools Platform Markdown Text Editor Feature 0.9.0 thinktank.markdown.feature.feature.group Winterwell Associates PDT Extensions Feature 1.0.8.201203010852 com.dubture.pdt.feature.feature.group https://github.com/pulse00 PHP CodeSniffer 1.3.0.R20111119000000 org.phpsrc.eclipse.pti.tools.codesniffer.feature.group Sven Kiera PHP Copy/Paste Detection 0.2.2.R20100414000000 org.phpsrc.eclipse.pti.tools.phpcpd.feature.group Sven Kiera PHP Depend 0.3.3.R20110627000000 org.phpsrc.eclipse.pti.tools.phpdepend.feature.group Sven Kiera PHP Development Tools (PDT) Runtime Feature 3.0.3.201202282258 org.eclipse.php.feature.group Eclipse.org PHP Mess Detector 0.1.0.R20110628000000 org.phpsrc.eclipse.pti.tools.phpmd.feature.group Dejan Spasic PHP PEAR Library 1.2.2.R20120127000000 org.phpsrc.eclipse.pti.library.pear.feature.group Sven Kiera PHP Tool Integration Core 1.6.0.R20111119000000 org.phpsrc.eclipse.pti.core.feature.group Sven Kiera PHPUnit 0.8.0.R20111119000000 org.phpsrc.eclipse.pti.tools.phpunit.feature.group Sven Kiera Symfony Feature 1.0.59.201203010828 com.dubture.symfony.feature.feature.group https://github.com/pulse00 YEdit Feature 0.0.12 org.dadacoalition.yedit.feature.group YEdit Project

Please let me know if you need more information to pinpoint the problem

thanks

nuno costa

pulse00 commented 12 years ago

the full stack trace would be great.

francodacosta commented 12 years ago

Here it is (I could not find a way to attach a file)

https://gist.github.com/1956512

rmoreas commented 12 years ago

Hi,

Same problem here:

An internal error occurred during: "PHPStructuredEditor selection changed job". Invalid thread access

pulse00 commented 12 years ago

can you paste the twig template where this happens? also, please note where the cursor is placed exactly when this occurs.

rmoreas commented 12 years ago

It happens on all templates and all places within the templates. I tested with all the templates of the AcmeDemoBundle distributed with the Standard Symfony distribution.

pulse00 commented 12 years ago

@rmoreas @francodacosta can't reproduce this here. my setup:

please provide this info so i can narrow the problem down. (the plugin versions can be found in "About Eclipse SDK -> Installation Details -> Plugins". I need every version from plugins within the ID com.dubture.*

rmoreas commented 12 years ago

My 2 setups:

francodacosta commented 12 years ago

With me it happens even with empty twig files

My setup:

eclipse SDK Version: 3.7.2 Build id: M20120208-0800 Fedora 16 kernel 3.2.7-1.fc16.i686 java version 1.6.0_27 (Java(TM) SE Runtime Environment (build 1.6.0_27-b07)) http://twitpic.com/8qyfvk

kgilden commented 12 years ago

I'm having the same issue.

Setup: Java(TM) SE Runtime Environment (build 1.6.0_29-b11) openSUSE 11.4 (x86_64) 2.6.37.6-0.11-desktop

This is everything I have installed currently:

Eclipse Platform    3.7.2.M20120208-0800    org.eclipse.platform.ide
PHP Development Tools (PDT) Runtime Feature 3.0.3.201202282258  org.eclipse.php.feature.group
Twig Editor Feature 1.0.97.201203010852 com.dubture.twig.feature.feature.group
YEdit Feature   0.0.11  org.dadacoalition.yedit.feature.group

Here's the stack trace

peshi commented 12 years ago

I have the same issue here, Running Windows 7, x64

Default clean installation Zend Studio 9.0.2 with the Symfony Eclipse Plugin available from 'Welcome page' Twig Editor Feature 1.0.97.201202102125

pulse00 commented 12 years ago

sorry guys, i am unable to reproduce this at the moment on osx, and am very busy with a couple of projects atm. i hope i can look into this more thoroughly in the next couple of days. as a workaround, you can open your twig files with the html editor in the meanwhile, to get rid of that annoying popup.

peshi commented 12 years ago

Odd, if I drag a .twig file into my editing area or use Open with.. > Twig Editor I receive the error mentioned above, if I use F3(open)/double click on a file or use PHP Editor, I can work normally with all the magic the plugin offers. ;)

max-mykhailenko commented 12 years ago

peshis, thanks. pulse00, I have the same issue too,

francodacosta commented 12 years ago

@peshis nice tip, opening in the php editor works for me. Now I can edit twig files in a nice way

pulse00 commented 12 years ago

good to hear there's a workaround for you guys.

alexlafreniere commented 12 years ago

I get the same error, with version 1.0.97.201202291547 on OSX.

corlo commented 12 years ago

I've got the qame issue with all the same plugin version that you have on th screenshot Pulse00. on win7 64bit with eclipe 3.7.2 Build id: M20120208-0800

francodacosta commented 12 years ago

@corlo right click on the file and choose open with, then select php editor

if you don't see the php editor there choose Other and then choose php editor from the list

francodacosta commented 12 years ago

@pulse00 With Juno I don't get the error

Version: 4.2.0 Build id: I20120127-1145

janeklb commented 12 years ago

Same issue on Ubuntu, Eclipse 3.7.2.

eclipse.buildId=M20120208-0800 java.version=1.6.0_27 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_GB Command-line arguments: -os linux -ws gtk -arch x86

Opening up .twig files in the PHP Editor lets you get around the issue - thanks @corlo

olaurendeau commented 12 years ago

Getting the same issue on Windows 7 64 bit - Eclipse 3.7.2 32 bit.

janeklb commented 12 years ago

glad you resolved it @olaurendeau, unfortunately updating to 1.0.97.201203010852 did not fix it on my end

pulse00 commented 12 years ago

i hope i can find some time this weekend to get to the root of the problem. still not able to reproduce it here.

maoueh commented 12 years ago

@pulse00 In can't either but the PR I just sent should do the trick, I hope :)

corlo commented 12 years ago

I've update to 1.0.97.201203010852 and still have the problem like janeklb

ty francodacosta for the tip ;)

pulse00 commented 12 years ago

please upgrade to 1.0.98 - it contains @maoueh's PR which should solve this issue.

peshi commented 12 years ago

@pulse00, @maoueh - Indeed! Thanks a million.

francodacosta commented 12 years ago

it is fixed for me also!

Thanks

corlo commented 12 years ago

Everything is now fine since the update ! Thanks

rmoreas commented 12 years ago

The update fixed the issue for me too! Thanks!

maoueh commented 12 years ago

Glad it works, I'm gonna update the plugin on my machine too :)

pulse00 commented 12 years ago

@maoueh did you receive my github messages? i've sent you a private one ;)

maoueh commented 12 years ago

Yes I just answered ;) Private one does not appear in the notification on GitHub, at least I didn't find an option for this yet :)

pulse00 commented 12 years ago

@maoueh you're right, weird. the private ones don't shop up in the header.