DART on Googlen avoimen lähdekoodin ohjelmointikieli, joka toimii verkkosivuilla ja servereissä, ja jolla voi JavaScriptiä paremmin hoitaa suurten verkkosovellusten koodaamisen. DART kielen kehitys aloitettiin 9/2011 ja 1.0-versio kielestä julkistettiin loppuvuodesta -2013. Nyt jo on olemassa lähes valmiit työkalut Chrome selainta varten. Blogger-blogien pitäjiä varten saamme ehkä kiintoisia Gadgetteja sivupalkkeihin ja muuta toiminnallisuutta verkkosivuille.
TÄMÄ blogi sisältää pääosin omia pohdintojani ja muistiinpanoja, eikä se varmaankaan tuo kovinkaan paljon uutta DART-kielen opiskeluun. Materiaali on pääosin KOPIOITU :( Dartlang-sivustoilta, josta kannattaa KÄYDÄ TARKISTAMASSA kielen viimeiset syntaksit.

keskiviikko 22. elokuuta 2012

Dart Editor 10994 Problem ... With Eclipse Workspace (?)

I have downloaded about 20 versions of DART editors to my 2 computers without big problems.
I Uploaded 22.8.2012  DartEditor 10994 to my HP Computer without much problems, Java just had to be updated to both computers.    

Settled partly:  Look at the end of my next blog post.  

For PB computer, Win 7, 64 Bit, i get problems.  They are maybe connected to either:
1.   Conflicting settings with Eclipse
I do have Eclipse/Java in my Public folder...

If Dart Editor and Eclipse share the same workspace directory, they'll save conflicting settings, resulting in warnings and errors from both Dart Editor and Eclipse. 
The fix: Don't use the Dart installation directory for any other Eclipse-based software.
Hmm. How is it done?

Or.   2     Missing DART settings directory in my personal Folder,  Public/ USER / DartEditor
       Folder is deleted by me.
- DART editor settings folder in <user's home directory>\DartEditor  Dont exist.


DART EDITOR.INI     File is like this in both computers:

-data
@noDefault
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m


CONFIG.INI  in  DART / Configuration is in both computers:

#Product Runtime Configuration File
eclipse.application=com.google.dart.tools.deploy.application
org.eclipse.update.reconcile=false
osgi.bundles.defaultStartLevel=4
eclipse.product=com.google.dart.tools.deploy.product
osgi.splashPath=platform:/base/plugins/com.google.dart.tools.deploy
osgi.bundles=org.eclipse.equinox.simpleconfigurator@1:start
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info

AND THIS CONFIGURATION FOLDER IS FULL OF ECLIPSE STUFF   WHY?


.Eclipseproduct file:

#Eclipse Product File
#Mon Aug 20 11:42:11 PDT 2012
version=1.0.0.201208201142
name=Dart Editor
id=com.google.dart.tools.deploy.product



=======================================================
When I try to run Dart Editor, I can see DART logo for 5 seconds,  then I get error log :

!SESSION 2012-08-22 17:40:03.005 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.7.0_01
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fi_FI
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -data @noDefault

!ENTRY com.google.dart.tools.deploy 4 0 2012-08-22 17:40:12.126
!MESSAGE The folder "C:\Users\  *MY_OWN_DIRECTORY_*    \DartEditor\.metadata" is read-only.
!STACK 0

*   *    *    *    *     And much other stuff here.....

========================================================

The File:   C:\Users\  *MY_OWN_DIRECTORY_*    \DartEditor\.metadata" is read-only...
BECAUSE...   I have deleted The directory.     Why?
BECAUSE...   I had problems with Java and coult not run editor...
Got Java updated, and NOW editor could run,  BUT...

...   There is a conflict with   ECLIPSE..??   wich  I dont want, and wich  I dont need.

IT SEEMS THAT DART EDITOR CANT RECOVER FROM THIS.
Maybe Dart Editor cant create new     User\DartEditor    folder....
It cant do itself a new metadata....

In case that this could bring problem to other users, i had to make this public. 
Trying to find answer:

1.  I hope that someone who knows things, reads this, and could gave the right solution.

2.  Maybe I wait for the new editor version to solve this....
     Check this 64 or 32 bit system in your computer, and load THAT editor.
      Load bleeding edge versio every day, and try it...    23.8. it did not help.

3. Should I file a BUG or ask in Google+/DART?  When I know exactly WHAT to ask.

4. Try to UNDELETE that METADATA-file....    No possible. 
     Copied it from another computer, no succes. 

5. Compare DART in my HP-computer to DART in my PB-Computer, and....

6.  Forget this and load DartEditor to LINUX-system in my PB-Computer..    Works.
      But I did not forget this....

7.  Read these and other articles....
http://blog.dartwatch.com/2011/10/step-by-step-building-dart-eclipse-ide.html

https://plus.google.com/107675318329982835686/posts/W73PjjuZ7Qi

8.   Delete   ALL DART FOLDERS AND FILES  and hope that new installation will correct things.
      So that it acts like a new application....  Start from new....  Did not work. 
22.8.2012  klo  21.46   UIT +2  Helsinki  Time:
I DELETED  *ALL*  DART FILES AND FOLDERS FROM MY COMPUTER.  LOADED DART AGAIN.  RUN IT.   FAIL.   What then...  Go to  Ubuntu.... ?
      Maybe Dart should have an Uninstaller  ??

9    Try with other windows user profile.     No succes.  Same errors.

10.  Find OLDER VERSION of editor and hope that it makes directories, where all Dart Editor settings are saved.  And THEN the new versio...

11.   Delete temporarily Dart-settings directory in my other, HP-computer. Do I get an error? 

12   http://code.google.com/p/dart/issues/list?can=2&q=label%3AArea-Editor
       Did read it, no help.

13.   Is there a "first run" -option in Dart Editor?

14.   Loadeddart to my personal folder.  No Succes.
        Deleted all Java-Eclipse applications.  No Succes.
 
15.  Be clever and try to think something new answer.

And if i can make some useful material out of this for other users, so I must  File BUG /  Ask it in Stack Overflow /  or  ask in Dart Discussion..  so. collect all facts concerning this case..
But first I must understand what is essential in this matter.

In Linux / Ubuntu  Dart Editor loaded and run without problems in my PB-computer.  But it does not solve this problem.   But before I start disturbing Dart group programmers, I really must read everything in here:   http://www.dartlang.org/docs/editor/getting-started/
I wish I had more time and patience.   :(

I tried to send FeedBack to DartEditor team, from my HP-Computer, where DART is functioning.
I can not send FeedBack from Dart Editor!!  Is 2 pages too much?    Even 3 rows cant be sent.
And error message box is put UNDER text, so that I cant quit it... Without going to Windows Work-Control.

Now it seems I have very little that I can try...    exept to stop trying...
I mus do another blogtext,  some text have already disappeared from this file....


27.8.    FOUND THIS:      http://code.google.com/p/dart/issues/detail?id=702
Dart Editor as an Eclipse plugin [+10]
Is this accidentally  loaded to my PB-computer.  I read this and I must have pressed link.  !!    And now Editor thinks it is Eclipse Plugin?!

https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/XQMT0FVLt_A
Dart Editor Plugin for Eclipse (Alpha) 15 viestiä 8 käyttäjältä ryhmässä Dart Discussion

27.8 Deleted all ALL!  *DART*  material from PB-computer.  New Download.  No Work.  :(  

28.8.  So the problem might be there in the  "Other, quick installation", The "Second Click".  Seems that  in PB i do not have that   MyPersonalWindowsAccount \ darteditor folder...  .metadata ...
When in UBUNTU it works, so this might be  WINDOWS-related problem ?  

By asking in Dart Discussion croup I wanted to close away some alternatives...
https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/os00Yjx_UVs
Maybe I did not quite success....

Altogether, this must be something very simple and stupid mistake here, but I just cant figure it out.

Disabled Windows Defender.  No help.  New Editor 11397, same Problem.
DartEditor dont now make this  "Settings Directory.
!MESSAGE The folder "C:\Users\   <user's home directory>  \DartEditor\.metadata" is read-only.
!STACK 0
java.io.IOException: The folder "C:\Users\   <user's home directory>           \DartEditor\.metadata" is read-only.  







1 kommentti: