Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPStructuredEditor Selection changed job encountered a problem #52

Closed
francodacosta opened this issue Mar 1, 2012 · 34 comments
Closed
Labels

Comments

@francodacosta
Copy link

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
Copy link
Owner

pulse00 commented Mar 1, 2012

the full stack trace would be great.

@francodacosta
Copy link
Author

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

https://gist.github.com/1956512

@rmoreas
Copy link

rmoreas commented Mar 1, 2012

Hi,

Same problem here:

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

@pulse00
Copy link
Owner

pulse00 commented Mar 1, 2012

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

@rmoreas
Copy link

rmoreas commented Mar 1, 2012

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
Copy link
Owner

pulse00 commented Mar 2, 2012

@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
Copy link

rmoreas commented Mar 2, 2012

My 2 setups:

@francodacosta
Copy link
Author

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
Copy link

kgilden commented Mar 4, 2012

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
Copy link

peshi commented Mar 5, 2012

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
Copy link
Owner

pulse00 commented Mar 5, 2012

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
Copy link

peshi commented Mar 5, 2012

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
Copy link

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

@francodacosta
Copy link
Author

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

@pulse00
Copy link
Owner

pulse00 commented Mar 6, 2012

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

@alexlafreniere
Copy link

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

@corlo
Copy link

corlo commented Mar 7, 2012

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
Copy link
Author

@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
Copy link
Author

@pulse00 With Juno I don't get the error

Version: 4.2.0 Build id: I20120127-1145

@janeklb
Copy link

janeklb commented Mar 8, 2012

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
Copy link

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

  • I've juste use Help / Check for updates a minute ago, and it seems fixed by a new version : 1.0.97.201203010852 *
    [edit] Well actually it didn't, I didn't pay attention that eclipse have probably recorded my choice to open *.twig files with PHP editor. And as the displays looked like each others, it confuse me.
    Sorry for false hopes. [/edit]

@janeklb
Copy link

janeklb commented Mar 8, 2012

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

@pulse00
Copy link
Owner

pulse00 commented Mar 8, 2012

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
Copy link
Contributor

maoueh commented Mar 8, 2012

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

@corlo
Copy link

corlo commented Mar 8, 2012

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

ty francodacosta for the tip ;)

pulse00 added a commit that referenced this issue Mar 8, 2012
Fixed InvalidThreadAccess when trying to set selection (GH-52)
@pulse00
Copy link
Owner

pulse00 commented Mar 8, 2012

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

@peshi
Copy link

peshi commented Mar 9, 2012

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

@pulse00 pulse00 closed this as completed Mar 9, 2012
@francodacosta
Copy link
Author

it is fixed for me also!

Thanks

@corlo
Copy link

corlo commented Mar 9, 2012

Everything is now fine since the update !
Thanks

@rmoreas
Copy link

rmoreas commented Mar 9, 2012

The update fixed the issue for me too!
Thanks!

@maoueh
Copy link
Contributor

maoueh commented Mar 9, 2012

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

@pulse00
Copy link
Owner

pulse00 commented Mar 9, 2012

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

@maoueh
Copy link
Contributor

maoueh commented Mar 9, 2012

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
Copy link
Owner

pulse00 commented Mar 9, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests